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

Default to CI-appropriate settings when running on CI #4152

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

DRMacIver
Copy link
Member

After one too many complaints about Hypothesis being unsuitable for CI usage, I finally got around to making it so that the trivial configuration for making it deterministic on CI happens out of the box for you. Now if you set the CI environment variable it will run deterministically (as long as your test code is deterministic).

@DRMacIver DRMacIver force-pushed the DRMacIver/ci-config branch from 7d21980 to e8bce25 Compare October 31, 2024 12:21
@DRMacIver DRMacIver force-pushed the DRMacIver/ci-config branch from 655a4bb to 13c3785 Compare October 31, 2024 17:03
@DRMacIver
Copy link
Member Author

Phew. Finally a green build. It turns out it's surprisingly hard to make changes to brittle code that affects literally every single test!

@DRMacIver
Copy link
Member Author

Note for later: I'd like it if when people define their own CI profile they could reliably expect it to run on a CI server. This is not, I think, currently the case, because you need to load a profile after registering it. I think if you reregister the currently loaded profile it should automatically load the new one, but I don't want to do it in this PR because it's another change to brittle code.

@Zac-HD Zac-HD merged commit 4a702a9 into master Nov 1, 2024
48 checks passed
@Zac-HD Zac-HD deleted the DRMacIver/ci-config branch November 1, 2024 04:21
lazka added a commit to lazka/pycairo that referenced this pull request Nov 15, 2024
hypothesis broke API in HypothesisWorks/hypothesis#4152
by changing the documented settings defaults to a different type
(it's a good change though)

Since the upstream change is trying to make good defaults for CI remove our
CI specific settings adjustments and just use the new defaults.
lazka added a commit to lazka/mutagen that referenced this pull request Nov 25, 2024
hypothesis broke API in HypothesisWorks/hypothesis#4152 by changing the documented settings defaults to a different type (it's a good change though)

Since the upstream change is trying to make good defaults for CI remove our CI specific settings adjustments and just use the new defaults.
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