Skip to content

test(e2e): give project create 10 minutes on Windows - #2969

Open
jariy17 wants to merge 1 commit into
v1.xfrom
test/windows-e2e-create-timeout
Open

jariy17 wants to merge 1 commit into
v1.xfrom
test/windows-e2e-create-timeout

Conversation

@jariy17

@jariy17 jariy17 commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Description

Raises TIMEOUT_MS.PROJECT_CREATE from 3 to 10 minutes on Windows only.

e2eTest/project/harness.test.ts creates its project in beforeAll with the PROJECT_CREATE budget. On the Windows runner, create --template empty takes longer than 3 minutes while the other E2E files run alongside it, so the hook fails with Hook timed out in 180000ms and all 17 harness tests are skipped. The Windows E2E leg has failed this way on every v1.x push since 11/24, for example https://github.com/aws/agentcore-cli/actions/runs/46492288234/job/142107945561. macOS and Linux keep the 3-minute budget.

The runtime template tests also create projects on Windows and pass, because their timeout covers create, dev, deploy and invoke together. They get the extra 7 minutes too, which only loosens an already-passing budget.

Not addressed here: why create is that slow on Windows.

Related Issue

None filed.

Documentation PR

Not applicable.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Other (please describe): E2E test timeout only

Testing

How have you tested the change?

  • I ran bun test
  • I ran the relevant end-to-end tests with bun run test:e2e, or explained why they are not applicable
    (CI does not run them for you): the Windows E2E leg runs on push to v1.x
  • I ran bun run typecheck
  • I ran bun run lint:check
  • I ran bun run format:check (on the changed file)
  • I ran bun run audit
  • I ran bun run secrets:check
  • I ran bun run build
  • If I modified src/assets/, I updated affected snapshots with bun test <test-file> --update-snapshots and committed them
  • If I re-recorded fixtures or golden files, every change beyond account identifiers is explained
    by this PR
  • This PR does not change command.md (the release workflow regenerates it)

Checklist

  • I have read the CONTRIBUTING document
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • I have added an appropriate example to the documentation to outline the feature, or no new docs are needed
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the
terms of your choice.

The harness suite's beforeAll runs `create --template empty` with the 3-minute
PROJECT_CREATE budget. On the Windows runner that create takes longer while the
other E2E files run alongside it, so the hook times out and every harness test
is skipped. It has failed this way on every v1.x push since 11/24.
@jariy17
jariy17 requested a review from a team November 30, 2026 19:58
@github-actions github-actions Bot added the size/xs PR size: XS label Nov 30, 2026
@agentcore-devx-automation agentcore-devx-automation Bot added agentcore-harness-reviewing AgentCore Harness review in progress claude-security-reviewing Claude Code /security-review in progress labels Nov 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Package Tarball

aws-agentcore-1.4.0.tgz

How to install

gh release download pr-2969-tarball --repo aws/agentcore-cli --pattern "*.tgz" --dir /tmp/pr-tarball
npm install -g /tmp/pr-tarball/aws-agentcore-1.4.0.tgz

@agentcore-devx-automation

Copy link
Copy Markdown
Contributor

Claude Security Review: no high-confidence findings. (run)

@agentcore-devx-automation agentcore-devx-automation Bot removed the claude-security-reviewing Claude Code /security-review in progress label Nov 30, 2026

@agentcore-devx-automation agentcore-devx-automation Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

AgentCore Harness Review

Verdict: Looks good

Single-line E2E timeout change; I found nothing that needs to change before merge.

What I checked:

  • e2eTest/timeouts.ts:2 is the only consumer-facing change. PROJECT_CREATE is used in exactly two places — e2eTest/project/harness.test.ts:77 (the beforeAll hook timeout that was failing) and the summed per-test budget in e2eTest/project/templates.test.ts:166 — so the blast radius is just those two, and the second only gets a looser budget on Windows, as the description says.
  • CliRunner.run (e2eTest/helpers/run.ts) has no internal deadline of its own, and vitest.e2e.config.ts sets no global testTimeout/hookTimeout, so the per-hook argument is genuinely the limit being hit — raising it is the right lever.
  • The Windows job in .github/workflows/e2e-test.yml has no timeout-minutes, so the extra 7 minutes stays well inside the 360-minute default; no risk of trading a hook timeout for a job timeout.
  • process.platform === "win32" is evaluated in the vitest worker, not in the config module (the config only imports constants.ts), so the branch resolves against the actual runner OS. The same guard pattern already exists at e2eTest/project/prebuilt-runtime.test.ts:53.
  • The added comment states why the Windows branch exists (slow create under parallel E2E files timing out beforeAll) rather than restating the expression, so it earns its place.
  • No command.md, fixture, or golden-file churn; no source behavior change.

Worth noting for follow-up (not blocking): this masks rather than fixes the underlying Windows create slowness, which the description already calls out as out of scope. If it recurs on another step, a Windows-wide multiplier applied across TIMEOUT_MS may be preferable to adding more per-key conditionals.

@agentcore-devx-automation agentcore-devx-automation Bot removed the agentcore-harness-reviewing AgentCore Harness review in progress label Nov 30, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.73%. Comparing base (a6f14f3) to head (f23462e).

Additional details and impacted files
@@           Coverage Diff           @@
##             v1.x    #2969   +/-   ##
=======================================
  Coverage   96.73%   96.73%           
=======================================
  Files         747      747           
  Lines       62845    62845           
=======================================
  Hits        60793    60793           
  Misses       2052     2052           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/xs PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants