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

Bug 1773262 - Relax glean_parser version requirement to "all compatible releases" #2086

Merged
merged 2 commits into from
Aug 10, 2022

Conversation

badboy
Copy link
Member

@badboy badboy commented Jun 8, 2022

In pip ~=V.N is equivalent to >= V.N, == V.*
So we essentially allow everything from the specified minor version
upwards until the next major version (excluded).
As long as glean_parser is careful to not introduce breaking changes
before that this will simplify work a lot by allowing small bug fixes
without requiring subsequent Glean releases to bump versions all the
time.

@badboy badboy requested a review from a team as a code owner June 8, 2022 11:13
@badboy badboy requested review from chutten and hackebrot and removed request for a team June 8, 2022 11:13
@badboy badboy force-pushed the relax-gleanparser-requirements branch from 609632c to 99724af Compare June 8, 2022 18:20
bin/update-glean-parser-version.sh Outdated Show resolved Hide resolved
@badboy badboy added the blocked Blocked pull requests and issues label Jun 14, 2022
@badboy badboy force-pushed the relax-gleanparser-requirements branch from 99724af to c41f4aa Compare June 14, 2022 08:43
@badboy badboy force-pushed the relax-gleanparser-requirements branch from c41f4aa to a5d4abc Compare July 20, 2022 12:25
@badboy badboy removed the blocked Blocked pull requests and issues label Jul 20, 2022
@badboy badboy force-pushed the relax-gleanparser-requirements branch from a5d4abc to 3ca6efa Compare July 20, 2022 13:20
@badboy badboy force-pushed the relax-gleanparser-requirements branch 2 times, most recently from 38f9741 to c13e062 Compare August 10, 2022 09:22
badboy added 2 commits August 10, 2022 11:22
Previously it was in theory possible that it queries the Pypi index for
packages if it can't find anything in the cache or wheels directory.
In pip `~=V.N` is equivalent to `>= V.N, == V.*`
So we essentially allow everything from the specified minor version
upwards until the next major version (excluded).
As long as glean_parser is careful to not introduce breaking changes
before that this will simplify work a lot by allowing small bug fixes
without requiring subsequent Glean releases to bump versions all the
time.

This also relaxed the version check in the Glean Gradle Plugin.
We always upgrade if in online mode.
We allow semver-compatible versions in offline mode (we do the semver
check ourselves to avoid more dependencies).
@badboy badboy force-pushed the relax-gleanparser-requirements branch from c13e062 to b70a6c1 Compare August 10, 2022 09:22
@badboy badboy merged commit ae7743d into main Aug 10, 2022
@badboy badboy deleted the relax-gleanparser-requirements branch August 10, 2022 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants