Skip to content
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

generate-bundle fails at installing toml #18279

Conversation

@obyknovenius obyknovenius self-assigned this Sep 27, 2023
@obyknovenius obyknovenius added the Tools / Tests Tools in the Tools directory, build issues, test infrastructure, and bugs in test cases label Sep 27, 2023
@obyknovenius obyknovenius added the merge-queue Applied to send a pull request to merge-queue label Sep 27, 2023
@webkit-commit-queue
Copy link
Collaborator

Commit message contains (OOPS!) and no reviewer found, blocking PR #18279

@webkit-commit-queue webkit-commit-queue added merging-blocked Applied to prevent a change from being merged and removed merge-queue Applied to send a pull request to merge-queue labels Sep 27, 2023
Copy link
Member

@JonWBedard JonWBedard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't work and will end up in an infinite loop with a fresh install. We need #18232.

@obyknovenius
Copy link
Contributor Author

This won't work and will end up in an infinite loop with a fresh install. We need #18232.

While I agree that we need #18232, I can assure you that this works. You can try it by wiping out Tools/Scripts/libraries/autoinstalled directory and running generate-bundle --help.

@JonWBedard
Copy link
Member

This won't work and will end up in an infinite loop with a fresh install. We need #18232.

While I agree that we need #18232, I can assure you that this works. You can try it by wiping out Tools/Scripts/libraries/autoinstalled directory and running generate-bundle --help.

Sorry for blocking this temporarily. If you look at what AutoInstall.install(...) does, if first checks if the library we're installing is in a small list of libraries required for setup tools (and tomli is one of those libraries). The trouble with this is that this check actually happens before we install any dependencies of that library. So in tomli's case, we would normally expect that pyparsing is already installed, but that won't be true (or at least, wasn't true) because pyparsing wasn't one of the libraries required to use setup tools. I was mistaken about the infinite loop (perhaps that was older behavior?), but I do stand by this PR not doing what you thought it did without https://commits.webkit.org/268542@main. In any case, r+ed this now!

@JonWBedard JonWBedard removed the merging-blocked Applied to prevent a change from being merged label Sep 27, 2023
@JonWBedard
Copy link
Member

Wait, I'm sorry, this is toml, not tomli, I was completely wrong!

@JonWBedard JonWBedard added the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Sep 27, 2023
https://bugs.webkit.org/show_bug.cgi?id=262184

Reviewed by Jonathan Bedard.

After `268269@main` `pyparsing` must be specified as a implicit
dependency of `toml`.

* Tools/Scripts/webkitpy/__init__.py:

Canonical link: https://commits.webkit.org/268547@main
@webkit-commit-queue webkit-commit-queue force-pushed the fix/tools/generate-bundle/installing-toml branch from af387f0 to 3a33119 Compare September 27, 2023 23:57
@webkit-commit-queue
Copy link
Collaborator

Committed 268547@main (3a33119): https://commits.webkit.org/268547@main

Reviewed commits have been landed. Closing PR #18279 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit 3a33119 into WebKit:main Sep 27, 2023
@webkit-commit-queue webkit-commit-queue removed the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Sep 27, 2023
@obyknovenius
Copy link
Contributor Author

Wait, I'm sorry, this is toml, not tomli, I was completely wrong!

It is easy to get confused. Thank you for merging it!

@obyknovenius obyknovenius deleted the fix/tools/generate-bundle/installing-toml branch September 28, 2023 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tools / Tests Tools in the Tools directory, build issues, test infrastructure, and bugs in test cases
Projects
None yet
4 participants