Skip to content

Conversation

@sevanspowell
Copy link
Contributor

  • 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.

@sevanspowell sevanspowell requested review from piotr-iohk and rvl May 18, 2021 04:41
@sevanspowell sevanspowell self-assigned this May 18, 2021
@sevanspowell sevanspowell force-pushed the feature/ADP-895-fix-desync branch from 06eace5 to 80ab948 Compare May 18, 2021 06:00
@sevanspowell sevanspowell force-pushed the feature/ADP-915-decimals-minimal branch from bb3c28e to f7d5b7b Compare May 19, 2021 01:11
@sevanspowell sevanspowell changed the base branch from feature/ADP-915-decimals-minimal to master May 19, 2021 01:36
- 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.
@sevanspowell sevanspowell force-pushed the feature/ADP-895-fix-desync branch from 68a6f13 to 8ebf937 Compare May 21, 2021 01:14
- 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.
Copy link
Contributor

@rvl rvl left a 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?

@sevanspowell
Copy link
Contributor Author

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.

@rvl
Copy link
Contributor

rvl commented May 25, 2021

OK fair enough.

Copy link
Contributor

@rvl rvl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@sevanspowell
Copy link
Contributor Author

bors r+

iohk-bors bot added a commit that referenced this pull request May 25, 2021
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>
@iohk-bors
Copy link

iohk-bors bot commented May 25, 2021

Timed out.

@sevanspowell sevanspowell merged commit cc4ab92 into master May 25, 2021
@iohk-bors iohk-bors bot deleted the feature/ADP-895-fix-desync branch May 25, 2021 05:01
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.

3 participants