-
Notifications
You must be signed in to change notification settings - Fork 36
Fix metadata desynchronization #28
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
Conversation
06eace5 to
80ab948
Compare
bb3c28e to
f7d5b7b
Compare
- Adds a script that queries the GH repository and sets the state of metadata database to match. - Add NixOS service. - Add integration tests that check that the write part of the script writes correctly, and doesn't touch the database at all if an exception occurs.
68a6f13 to
8ebf937
Compare
- All NixOS module configurations allowed the configuration of user, but never actually used that option. Fix this to allow the user to configure the name of the user used when running the systemd service.
rvl
left a comment
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.
So this is a script to slurp all the metadata json files from a registry git repo into the database?
|
Yep. And it exists because the webhook is flaky. A number of times a PR has been merged, a notification has been sent to the webhook, but then the webhook fails to retrieve the metadata entry from GitHub (usually it seems unable to reach the github API, but the reasons have varied). This leaves the Postgres database in a different state to the repo. This script is just a quick fix to that problem, because we don't have the time to dedicate to a proper solution. |
|
OK fair enough. |
rvl
left a comment
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.
🚢
|
bors r+ |
28: Fix metadata desynchronization r=sevanspowell a=sevanspowell - Adds a script that queries the GH repository and sets the state of metadata database to match. - Add NixOS service. - Add integration tests that check that the write part of the script writes correctly, and doesn't touch the database at all if an exception occurs. Co-authored-by: Samuel Evans-Powell <mail@sevanspowell.net>
|
Timed out. |
metadata database to match.
writes correctly, and doesn't touch the database at all if an
exception occurs.