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

Consistently default stable-only to true #321

Merged
merged 1 commit into from Aug 8, 2022

Conversation

wjt
Copy link
Contributor

@wjt wjt commented Aug 8, 2022

Previously, gnomechecker would default stable-only to true, but
anityachecker and pypichecker defaulted it to false.

true is the sensible default.

@coveralls
Copy link

coveralls commented Aug 8, 2022

Coverage Status

Coverage decreased (-0.05%) to 92.391% when pulling 6faaa82 on stable-only-should-default-to-true into b2b2086 on master.

@gasinvein
Copy link
Collaborator

Makes sense.

Codepath where stable_only is False is uncovered now. Can you please set stable-only: false on some of the modules in tests/org.flatpak.Flatpak.yml where stable-only isn't set?

Previously, gnomechecker would default stable-only to true, but
anityachecker and pypichecker defaulted it to false.

true is the sensible default, in my opinion: it is more common to want
stable release only than it is to track prereleases.

Update the test suite to exercise all three paths: true, false and
unset. (We don't actually make any assertions about what the default
is; it is hard to do so without a mock anitya.)
@wjt wjt force-pushed the stable-only-should-default-to-true branch from a3dc51f to 6faaa82 Compare August 8, 2022 20:29
@wjt
Copy link
Contributor Author

wjt commented Aug 8, 2022

How's that?

@gasinvein
Copy link
Collaborator

Now the codepath where neither constraints are set, nor stable-only is requested, is uncovered. But it's dead simple anyway (there we just get a single latest_version field from Anitya), should be fine.

@gasinvein gasinvein merged commit a76f98a into master Aug 8, 2022
@gasinvein gasinvein deleted the stable-only-should-default-to-true branch August 8, 2022 20:37
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.

None yet

3 participants