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

add INSTANCE_TYPE integration settings and lessen integration log spams #5988

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

a-dubs
Copy link
Collaborator

@a-dubs a-dubs commented Jan 27, 2025

Proposed Commit Message

N/A

Separate commits, plz rebase 💙

Additional Context

This will allow for manually specifying instance types when needing to reproduce certain bugs or test certain instance types (like Baremetal!)

Also, put some duct tape over the metaphorical mouths of urllib3 and botocore for integration tests to lessen log spam.

Test Steps

Run an integration test locally with INSTANCE_TYPE specified:

CLOUD_INIT_INSTANCE_TYPE="m6in.32xlarge" tox -e integration-tests -- tests/integration_tests/modules/test_hotplug.py::test_multi_nic_hotplug_vpc

Merge type

  • Squash merge using "Proposed Commit Message"
  • Rebase and merge unique commits. Requires commit messages per-commit each referencing the pull request number (#<PR_NUM>)

@a-dubs a-dubs force-pushed the more-integration-settings branch from 2a394b2 to f870470 Compare January 27, 2025 16:30
@a-dubs a-dubs requested a review from holmanb January 27, 2025 16:31
@a-dubs a-dubs force-pushed the more-integration-settings branch from f870470 to ab318ff Compare January 27, 2025 16:34
@github-actions github-actions bot added the documentation This Pull Request changes documentation label Jan 27, 2025
@a-dubs
Copy link
Collaborator Author

a-dubs commented Jan 27, 2025

documented this new setting in doc/rtd/development/integration_tests.rst too!

@@ -15,6 +15,9 @@
# Run tests marked as unstable. Expect failures and dragons.
RUN_UNSTABLE = False

# Instance type - is cloud specific. E.g., m6in.32xlarge on AWS/EC2
INSTANCE_TYPE: Optional[str] = None
Copy link
Member

Choose a reason for hiding this comment

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

I'm confused, what's up with line 35? I recall this being added before, but I never used it.

@a-dubs a-dubs force-pushed the more-integration-settings branch from ab318ff to 730b9ed Compare January 27, 2025 16:39
Copy link
Member

@holmanb holmanb left a comment

Choose a reason for hiding this comment

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

Thanks @a-dubs!

@holmanb holmanb force-pushed the more-integration-settings branch from 6d34fed to fcb534a Compare January 29, 2025 16:33
@holmanb
Copy link
Member

holmanb commented Jan 30, 2025

One of the commits was already merged in a different PR so I removed it. Thanks for this @a-dubs!

@holmanb holmanb merged commit d436782 into canonical:main Jan 30, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation This Pull Request changes documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants