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

feat: add durable support for overriding the bucket #2462

Merged
merged 3 commits into from
Aug 13, 2024

Conversation

andrewpollock
Copy link
Contributor

This is a more durable solution to the edge case we were trying to correct from, where the Bug in Datastore was from a GIT source (with a different path to the source file) than what we wanted to trigger reimporting for, and so various sanity checks and assumptions fail.

This adds support for overriding the bucket name (and optionally, the path within the bucket), which is normally self-determined from the existing record.

pipenv run python tools/datafix/reimport_gcs_record.py --verbose --no-dry-run --project oss-vdb --bucket cve-osv-conversion:osv-output CVE-2022-2816

This is a more durable solution to the edge case we were trying to
correct from, where the Bug in Datastore was from a GIT source (with a
different path to the source file) than what we wanted to trigger
reimporting for, and so various sanity checks and assumptions fail.

This adds support for overriding the bucket name (and optionally, the
path within the bucket), which is normally self-determined from the
existing record.

```
pipenv run python tools/datafix/reimport_gcs_record.py --verbose --no-dry-run --project oss-vdb --bucket cve-osv-conversion:osv-output CVE-2022-2816
```
@andrewpollock
Copy link
Contributor Author

This is instead of the quick hacks in 536d840

Adds an example to describe the more complex way of overriding the
bucket.
@andrewpollock andrewpollock changed the title Add durable support for overriding the bucket feat: add durable support for overriding the bucket Aug 13, 2024
@andrewpollock andrewpollock merged commit 203c853 into google:master Aug 13, 2024
11 checks passed
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