-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: message loading by fixing dependencies #6289
Conversation
(cherry picked from commit 334956b)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this branch picked up some erroneous sourcemap files that need to be removed.
Also, since this is being merged into master, I think the message files need to be rebuilt and added to the msg/
directory. But I'm not 100% sure of our policy on that.
I ran
and these are the files that were changed. So I'm assuming the map files are legitimate changes that just weren't checked in during the last rebuild when #6210 (or another PR) was merged... Otherwise how would I know which files to merge and which not? If the map files are accurate to the current build why wouldn't I check them in (I'm not being snarky, I'm genuinely confused about how we decide to check in which files) Similarly the message files being rebuilt. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think your explanation of the map files makes sense. It's just weird to me that they weren't checked in last time (I would also expect them to be checked in at the same time as the compressed files). I was assuming that the ones in this PR were erroneously generated. But if they work then go for it!
Your explanation of message files also makes sense. I thought that we did check in the uml-wrapped versions, but I guess not.
But just to be clear, when they are changed, you need to manually copy them over :/ Afaik checkin:built
does not handle the message files.
I don't really have a good way of knowing if the map files work or not, other than trusting that our build scripts generate useful output. :/ sourcemaps still load though. for messages, I don't think we have previously committed the wrapped versions, e.g. https://github.com/google/blockly/blob/c9329ea8eb39fa9b774ddc915b2357ec5137c6d1/msg/js/ab.js Another difference is that in the It's maybe kind of weird that we don't check in the packaged version, since we do with blockly_compressed et al. But this matches the historic behavior so I would rather keep that for now and consider changing it with a future mainline release. And then final note is there is no diff between So I think this is good to go but since I didn't verify this all until late this afternoon and I don't want to push on Friday we should do this on Monday morning. |
I concur that the map files should be checked in, as they have for other releases since they were first added in May 2020.
I concur.
The "Day of Release" docs say to run I would only add that it would be wise to run
@BeksOmega: can you clarify what you mean here? It appears to me that
We have not.
I think the preferable course of action for the future is to remove build output from the repository entirely. At the moment in the
I concur, bar one very small nit: shouldn't the title of this PR (and the resulting commit) be "release: …", not "fix: …"? |
Our internal docs say they need to be copied over manually, so I was just assuming that message files were not handled. If that is incorrect could you update the docs? |
I'm creating a patch release, so I can't run And this isn't really a |
I think the language recompilation procedure requires a rethink, because the
Oh, good point.
Yeah, that would have been preferable: checking |
This is a patch release of #6219 into master.
#6210 was already merged into master, containing part one of the fix. We previously released a beta version of blockly
8.0.4-beta.1
that included both the patch in this PR and the previous patch, but we haven't yet released them as a minor release to widely fix the problems with message loading in #6123 and some of the problems reported in #4369 (though may not fix the React code splitting / lazy loading issues as that may be separate)This does not update package.json because in master package.json already is set to version
8.0.4
and a previous PR included the rebuilt compressed files containing that version change.