-
Notifications
You must be signed in to change notification settings - Fork 521
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
tough: update to v0.10.0 #1190
tough: update to v0.10.0 #1190
Conversation
Testing complete, updated in PR text. |
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.
I haven't looked through everything, but wanted to get this note out.
rebase develop. this will not compile. ignore. |
This probably compiles. Updates everything to use the |
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.
The simplification is so nice!
Update to the latest sha of the tough PR for re-testing. |
Testing re-verified at 9179da3 |
This push is a rebase. This push is in a broken state, but should help to isolate the changes that are due to rebasing from other changes that I will push. |
I reran all of the testing. |
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.
Changes look good to me.
Can you do a few more additional tests?
cargo make check-repo-expirations
: Example:cargo make -e PUBLISH_REPO="2020-07-07" -e BUILDSYS_VARIANT="aws-k8s-1.18" -e BUILDSYS_ARCH="x86_64" check-repo-expirations
cargo make validate-repo
: Example:cargo make -e PUBLISH_REPO="2020-07-07" -e BUILDSYS_VARIANT="aws-k8s-1.18" -e BUILDSYS_ARCH="x86_64" validate-repo
cargo make refresh-repo
: Example:cargo make -e PUBLISH_REPO="your-repo-with signing-key-defined-in-infra.toml" -e BUILDSYS_VARIANT="aws-k8s-1.18" -e BUILDSYS_ARCH="x86_64" refresh-repo
It worked!
It worked!
It worked!
|
rebase |
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.
I'm still really happy about this simplification!
This version of tough changes the interface of the Repository struct and its load function. The usage sites have been updated to use the new interface. updog: The query parameter mechanism needed to be changed to accommodate the fact that Repository now owns a Transport instead of holding a reference. This is done by holding an Arc pointer to the query params both inside and outside of the custom Transport. pubsys: A custom Transport is no-longer necessary (its purpose was to support both http and file transport, which DefaultTransport now does). Additionally, the new TransportError gives pubsys the information it needs to know whether a repo already exists or not. update_metadata and migrator: no significant changes.
Use |
Issue number:
N/A
Description of changes:
This PR is a companion to awslabs/tough#256 which changes the interface for loading a tough Repository.
Testing done:
[x]
cargo make
works and unit tests work.[x]
cargo make repo
works when creating a new repo.[x]
cargo make repo
works when adding to an existing repo.[x] did an upgrade/downgrade with migration
[x]
updog
integ tested, working[x]
migrator
integ tested, working (created a fake migration, did upgrade/downgrade in Bottlerocket and it worked)[x] inspected s3 bucket logs and observed update query params (from
updog
)Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.