generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 26
feat: move testsys interface from twoliter to testsys repo #1013
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
Draft
gthao313
wants to merge
201
commits into
bottlerocket-os:develop
Choose a base branch
from
gthao313:testsys-interface
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Co-authored-by: Zac Mrowicki <[email protected]> Co-authored-by: Tom Kirchner <[email protected]>
If the user doesn't define a root role and key themselves in Infra.toml, we'll generate them so it's easier to get started building images and repos. The user should update Infra.toml with more permanent resources and locations, but this makes it much easier to get started handling your own builds. Note: this changes the format of Infra.toml to make root roles and keys specific to a repo. Roles and keys are necessarily tied to a repo, so this is simpler than having to specify PUBLISH_REPO *and* PUBLISH_KEY (and manually changing the root.json file, which wasn't configurable before). Co-authored-by: Zac Mrowicki <[email protected]> Co-authored-by: Tom Kirchner <[email protected]>
Without this, a user could have an old-format Infra.toml files with root role and key defined at the top level, and pubsys wouldn't error, so the user might think they're being used. With this change, we give a clear error so the user knows what to update. Co-authored-by: Zac Mrowicki <[email protected]> Co-authored-by: Tom Kirchner <[email protected]>
If the user has no Infra.toml, we can continue with defaults most of the time. For making an AMI, only passing PUBLISH_REGIONS is required. For making a repo, we can use a default configuration and write it under 'default'. SSM still requires Infra.toml.
This adds everything needed to support VMware specific configuration, including credentials.
Adds binary (and supporting files) to automatically spin up TUF infra (S3 Bucket+Policy, KMS Keys, and populated root.json) across multiple regions in a single account. Edits pubsys-config (and supporting files) to accomodate new infrasys fields in Infra.toml.
Runs cargo-fmt over all first-party source code.
Path dependencies without a specified version will be treated as a wildcard dependency and cause an error, so add the version to each. Block multiple versions of crates, but skip the existing cases. The goal is to prevent new instances from coming in unnoticed. Signed-off-by: Ben Cressey <[email protected]>
Signed-off-by: Ben Cressey <[email protected]>
Signed-off-by: Ben Cressey <[email protected]>
Clippy warnings about a redundant closure. The closure just makes a call to a function that would take the passed argument anyway, so we should remove the closure and just provide the function directly. Signed-off-by: Sean McGinnis <[email protected]>
Adds support for ecs variants testing. Everything works the same way as aws-k8s variants except ECS clusters are created instead of EKS, and there is not supported conformance testing for ecs variants.
buildsys: extend `external-files` to vendor go modules
With the 1.63.0 versions of rustc/cargo, there is a clippy error due to `return` being used when it is not needed. This removes the return statement to make the linter happy. Signed-off-by: Sean McGinnis <[email protected]>
Also bumps coldsnap, indicatif, tough, tough-kms, and tough-ssm.
This update was partially completed in #2392. Image locations have been updated and e2e repo config for sonobuoy agents has been added.
Add declarative testing for `cargo make test` this allows users to setup configuration once and use `cargo make -e BUILDSYS_ARCH=<MY-ARCH> -e BUILDSYS_VARIANT=<MY-VARIANT> test` without any other needed variables.
Add declarative testing for `cargo make test` this allows users to setup configuration once and use `cargo make -e BUILDSYS_ARCH=<MY-ARCH> -e BUILDSYS_VARIANT=<MY-VARIANT> test` without any other needed variables.
testsys the cli was able to handle using the `starting_image_id` argument, but with `cargo make`, the env variable `TESTSYS_STARTING_COMMIT` is always passed in, so the conflicting args made `TESTSYS_STARTING_IMAGE_ID` un-usable. This fix removes the conflicts with, and uses the `TESTSYS_STARTING_IMAGE_ID` whenever it is provided.
TestSys uses labels on the crd's to determine which ec2 resources rely on a specific cluster. If a new instance provider requires a cluster that is already created, TestSys marks the new instance provider as conflicting with all other ones which prevents the new instances from being created until the other instance providers have been deleted.
Signed-off-by: Kush Upadhyay <[email protected]>
Update rust toolchain to the latest nightly release. Address lints and license clarifications as a result. Signed-off-by: Gavin Inglis <[email protected]>
Signed-off-by: Patrick J.P. Culp <[email protected]>
Testsys added support for custom EBS volumes when launching EC2 instances. This change enables passing custom EBS volume parameters to TestSys. Additionally, this upgrades TestSys to version 0.0.16 since this change requires updates introduced in that version.
Testsys added support for custom EBS volumes when launching EC2 instances. This change enables passing custom EBS volume parameters to TestSys. Additionally, this upgrades TestSys to version 0.0.16 since this change requires updates introduced in that version.
TestSys now supports adding license tokens to vSphere cluster templates. To retrieve these license tokens, TestSys must assume AWS IAM roles. This update enables the passing of assume_role parameters to TestSys, allowing it to acquire the necessary role permissions.
Signed-off-by: Kush Upadhyay <[email protected]>
Fix type mismatches and dependency conflicts that arose from the testsys interface migration, ensuring compatibility with the testsys repository structure and dependencies. This change also deprecates the metal k8s test functionality in the testsys interface.
58be7d4
to
e123c61
Compare
24c5e14
to
7e54006
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of changes:
Move testsys interface components from twoliter repository to testsys repository to enable standalone execution within the testsys codebase. This migration allows testsys to run independently without external dependencies on twoliter infrastructure.
Meanwhile, fix type mismatches and dependency conflicts that arose from the testsys interface migration, ensuring compatibility with the testsys repository structure and dependencies. This change also deprecates the metal k8s test functionality in the testsys interface.
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.