Skip to content

Conversation

@KyungHwanKim-devs
Copy link

@KyungHwanKim-devs KyungHwanKim-devs commented Jan 3, 2026

Fixes #5557

Description

  • Honor SpecContext cancellation by routing Environment Eventually/Consistently through the active context.
  • Set the scale suite environment context from SpecContext and reset before cleanup.
  • Merge SpecContext with the base test context to preserve logger/GitRef values.
  • Add unit tests for context merge and cancellation.

How was this change tested?

  • go test ./test/pkg/environment/common -run TestMergeContexts
  • Not run (scale tests require AWS scale test environment).

Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, issue opened: #
  • No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@KyungHwanKim-devs KyungHwanKim-devs requested a review from a team as a code owner January 3, 2026 19:07
@KyungHwanKim-devs
Copy link
Author

/label test
/label kind/bug
/label area/testing

Copy link
Contributor

@DerekFrank DerekFrank left a comment

Choose a reason for hiding this comment

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

/karpenter scale

@github-actions
Copy link
Contributor

github-actions bot commented Jan 5, 2026

Preview deployment ready!

Preview URL: https://pr-8824.d18coufmbnnaag.amplifyapp.com

Built from commit e1bcfc4f10586321af99db5318b74ea0e6444077

@KyungHwanKim-devs
Copy link
Author

Hi @DerekFrank, I've fixed the compilation errors in the latest commit. The issue was with the gomega API usage - I've updated it to use .WithContext(ctx) instead of passing the context as the first argument. Could you please re-trigger the CI when you get a chance? Thank you!

@coveralls
Copy link

coveralls commented Jan 6, 2026

Pull Request Test Coverage Report for Build 20928340800

Details

  • 0 of 100 (0.0%) changed or added relevant lines in 4 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.3%) to 67.275%

Changes Missing Coverage Covered Lines Changed/Added Lines %
test/pkg/environment/common/setup.go 0 1 0.0%
test/pkg/environment/aws/expectations.go 0 5 0.0%
test/pkg/environment/common/expectations.go 0 40 0.0%
test/pkg/environment/common/environment.go 0 54 0.0%
Files with Coverage Reduction New Missed Lines %
test/pkg/environment/common/environment.go 1 0.0%
Totals Coverage Status
Change from base Build 20928313099: -0.3%
Covered Lines: 7820
Relevant Lines: 11624

💛 - Coveralls

- Change gomega.Eventually(ctx, actual, intervals...) to
  gomega.Eventually(actual, intervals...).WithContext(ctx)
- Change gomega.Consistently(ctx, actual, intervals...) to
  gomega.Consistently(actual, intervals...).WithContext(ctx)
- Fix return type from ConsistentlyAssertion to AsyncAssertion

The previous syntax was not supported by the current gomega API.
@KyungHwanKim-devs
Copy link
Author

FYI: the latest workflow runs (CI/CI-TEST/CodeQL/DryRunGenPR/WebsitePreviewTrigger) are in 'action_required' because this is a fork. Could a maintainer approve and re-run the workflows when convenient?

@engedaam
Copy link
Contributor

Hey @KyungHwanKim-devs, seems like the CI run is failing. I think you just need to run make presubmit and once you push the changes that might be generated from that file, all the CI should pass

@KyungHwanKim-devs
Copy link
Author

Hi @engedaam thanks for the guidance. I ran make presubmit and pushed the missing license header for context_test.go. Could you approve and re-run the workflows when you have a chance? Thanks!

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.

Respect SpecContext in Scale Testing

4 participants