Repository navigation
[DO NOT MERGE] test(e2e): Run the e2e suites in parallel, deploy the LangChain Box template in CI, and drop duplicate Python deploys - #2959
Draft
mquang-amazon wants to merge 10 commits into
Draft
mquang-amazon wants to merge 10 commits into
mquang-amazon wants to merge 10 commits into
Conversation
…enTelemetry's context noise in the runtime log check
…, so Vitest runs them in parallel
… 3.14, and run three e2e files at a time on macOS
…ploys of a run stay under CloudFormation's rate limit
… tests in the runtime templates file
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## box-integration #2959 +/- ##
================================================
Coverage 96.94% 96.94%
================================================
Files 780 780
Lines 70806 70848 +42
================================================
+ Hits 68645 68687 +42
Misses 2161 2161 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…ncurrent tests in the runtime templates file" This reverts commit 2d6e116.
…d test them under a tui tag
mquang-amazon
marked this pull request as draft
November 30, 2026 19:25
Contributor
Author
|
Marked do not merge for now: this branch is about to get a commit that brings back the |
This branch has not been deployed
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
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
The macOS and Linux-arm64 e2e jobs ran every test file one suite after another: with all tags, about 72 minutes, past the one-hour session of the e2e credentials, so their last tests failed with an expired token. This PR runs the e2e suites in parallel and trims the tests that repeat others.
Parallel suites. Vitest runs the
describesuites of one file one after another, and separate files at the same time.e2eTest/project/templates.test.tsis now one file per suite group:runtimeTemplates.test.ts(non-Box runtime templates),boxTemplates.test.ts(the Box deploy flow and Box dev),boxEgress.test.ts(both egress suites), andboxScenarios.test.ts. Their shared helpers, constants and agents are intemplates-test-support.ts. Every suite, test and tag is the same.withDevPorttakes a lock directory in the temporary folder, not an in-memory queue, so the dev tests of separate files (separate Vitest workers) still take turns on box's fixed ingress ports. The egress-under-dev test now takes the lock too.vitest.e2e.config.ts:maxWorkers8, and 3 on macOS, whose runner has three CPUs that box sandboxes, installs and dev servers need (with 8, box dev on macOS timed out). Each file runs at most three concurrent tests (maxConcurrency: 3), so a run stays under CloudFormation's rate limit: with five, a run's own deploys gotThrottling: Rate exceededpast the CDK's retries. A run with four macOS workers and five concurrent runtime template tests was faster on macOS (30–45 min), but got that throttling in us-east-2, so this PR keeps three and three.Fewer duplicate deploys. The CodeZip Box template deploys on Python 3.10, the oldest the CodeZip Runtime supports, beside 3.14, its default, which the Box tests cover. It no longer deploys on 3.11, 3.12 and 3.13.
LangChain Box deploy in CI. CI left out the deploy of
agent-python-langchain-box, because its runtime log holds OpenTelemetry'sFailed to detach contextat ERROR level. The log check now ignores that line (RUNTIME_LOG_NOISE), and the template deploys in CI. Every otherERROR,blocked by egress controlandAccessDeniedline still fails the test.Related Issue
Closes #
Documentation PR
No documentation change.
.github/workflows/e2e-test.ymlnames the new support file in a comment.Type of Change
Testing
How have you tested the change?
I ran
bun test: no change to unit tests or shipped code.I ran the relevant end-to-end tests with
bun run test:e2e, in CI with all tags andl3Ref=box-integration:beforeAlltimeout that also fails onbox-integrationThat run is this head's configuration. The runs with four macOS workers and five concurrent runtime template tests, in us-east-1, us-west-2 and us-east-2 (https://github.com/aws/agentcore-cli/actions/runs/46347755757, https://github.com/aws/agentcore-cli/actions/runs/46347847381, https://github.com/aws/agentcore-cli/actions/runs/46347850153), took 30–45 min on macOS and 17–33 min elsewhere, but two us-east-2 tests failed with
Throttling: Rate exceeded; their other failures were the Windows harness timeout and a429 Too Many Requestsfrom public ECR on the Linux container template's image pull. So the last commit reverts to three and three.I ran
bun run typecheckI ran
bun run lint:checkI ran
bun run format:checkI ran
bun run auditI ran
bun run secrets:checkI ran
bun run buildIf I modified
src/assets/, I updated affected snapshots: no change tosrc/assets/.If I re-recorded fixtures or golden files, every change beyond account identifiers is explained by this PR: none re-recorded.
This PR does not change
command.md(the release workflow regenerates it)Checklist