-
Notifications
You must be signed in to change notification settings - Fork 10
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
Parse comments to build bottles for new distros #556
Conversation
Comment "build bottle --keep-old" to build bottles for new macOS versions only if the homebrew-simulation pull request doesn't change the package version. Signed-off-by: Steve Peters <[email protected]>
f5ea749
to
94a00c0
Compare
Signed-off-by: Steve Peters <[email protected]>
After initial testing with |
Signed-off-by: Steve Peters <[email protected]>
along with merging this, we should update the documentation at https://github.com/osrf/homebrew-simulation/blob/master/README.md |
This increases a little bit the management of building bottles at our end since the person building them should now about the flags and when to use them. I was wondering if we somehow we can infer the use of the flags from changes in PR, code in formula or other methods (or even run the flags unconditionally) or the human factor to decide is crucial to employ them. |
most of the time, people should just use |
and I tested it with osrf/homebrew-simulation#1677 |
Signed-off-by: Steve Peters <[email protected]>
Thanks for the details, help to understand the new use case. It seems to me that we are trying to support the build of bottles in new platforms, which requires to use the
|
This reverts commit 2120c48. Signed-off-by: Steve Peters <[email protected]>
we could also combine the flags like
The better solution than cosmetic changes to signal which formula to build would be to specify the formula name as a parameter to the jenkins job. This would require a new jenkins job and we'd probably have to trigger it directly from build.osrfoundation.org, then it would run the build and open a pull request with the pr-bottle-hash-update. I didn't do this at first since it was easier for me to abuse the existing job than figure out how to create a new one |
we lose old bottles when we bump the revision number. I don't know if there are still people using bottles for old macOS versions, but it seems a shame to invalidate them if it's not necessary. Also, it saves some CI time to keep the |
what if I just automatically set |
sounds like a good idea to me.
+1 How about if we use something different than the cli parameter syntax to send command to brew bot, something like: |
I'm flexible on the syntax; I just want it to be not too complex to parse. My idea with CLI arguments was to avoid whitespace complexities, but I think it shouldn't be too hard to parse I'll give it a try |
Use brew-bot-tag: build-for-new-distro- instead of --keep-only and --only- Signed-off-by: Steve Peters <[email protected]>
I'll open a new homebrew-simulation pull request to test it |
testing with osrf/homebrew-simulation#1694 after deplying the DSL from this branch and reconfiguring the bottle builder job to use this branch |
|
I've added documentation for the new syntax in osrf/homebrew-simulation#1695 |
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.
good to go, IMHO. Thanks for iterating Steve, cool stuff.
Comment "build bottle --keep-old" to build bottles for new macOS versions only if the homebrew-simulation pull request doesn't change the package version. This is a partial fix for #555 that doesn't allow specifying a single version of macOS. As such it only works for packages that have no current bottle for any currently supported version (such as
simbody
andignition-math4
) at this time.Update: you can now comment
build bottle --keep-old --only-big_sur
to build new bottles for Big Sur. This allows us to keep existing bottles while adding bottles for newly supported distributions. Any macOS version is supported (i.e.--only-catalina
) using the distro name used in the bottle blocks.