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

Make archiver tests read-only by default #207

Merged
merged 8 commits into from
Sep 4, 2024
Merged

Conversation

PgBiel
Copy link
Contributor

@PgBiel PgBiel commented Sep 4, 2024

Part of #202, also previously mentioned here #176 (comment)

This change ensures running archiver tests won't update existing archive files unless the env var HAYAGRIVA_ARCHIVER_UPDATE=1 is specified. By default, the tests will only check if the files are up-to-date, aborting (and suggesting specifying HAYAGRIVA_ARCHIVER_UPDATE=1) if not.

Currently, CI won't detect missing changes to the archive, as the files would just be updated on each CI run (which doesn't matter since the filesystem in CI is ephemeral).

The idea for future PRs is to not check for archive changes in CI anyway to keep it immutable. Rather, we'd have a recurring (perhaps weekly) check to ensure things are up-to-date, and then manually update the files as needed.

@PgBiel PgBiel marked this pull request as ready for review September 4, 2024 03:08
@PgBiel PgBiel merged commit b7dbdc2 into main Sep 4, 2024
4 checks passed
@PgBiel PgBiel deleted the read-only-archiver-test branch September 4, 2024 22:53
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.

1 participant