Skip to content

fix(update): assert against the active dist-tag, not hardcoded "latest" - #2243

Merged
tejaskash merged 1 commit into
release/v1.0.0-rc.1from
fix/update-tests-dist-tag
Sep 4, 2026
Merged

fix(update): assert against the active dist-tag, not hardcoded "latest"#2243
tejaskash merged 1 commit into
release/v1.0.0-rc.1from
fix/update-tests-dist-tag

Conversation

@jariy17

@jariy17 jariy17 commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • CI on release/v1.0.0-rc.1 fails in src/handlers/update/update.test.ts because two assertions hardcode the latest dist-tag, while the handler on this branch now resolves the tag from the local prerelease (rc for 1.0.0-rc.1). Route both assertions through distTag() so the test follows whichever tag the current version resolves to.
  • Failing run for reference: https://github.com/aws/agentcore-cli/actions/runs/33923566119

Test plan

  • bun test src/handlers/update/update.test.ts — 11 pass, 0 fail locally on this branch
  • CI green on Linux, Windows, macOS

…est"

The update handler was changed to pick the npm dist-tag from the local
prerelease (rc/preview/latest), but two assertions in update.test.ts still
hardcoded "latest", so CI on 1.0.0-rc.1 fails: the handler installs
@aws/agentcore@rc while the tests expect @aws/agentcore@latest.

Route both assertions through distTag() so the test tracks whichever tag
the current version resolves to.
@tejaskash
tejaskash merged commit 873eea7 into release/v1.0.0-rc.1 Sep 4, 2026
@tejaskash
tejaskash deleted the fix/update-tests-dist-tag branch September 4, 2026 22:10
tejaskash pushed a commit that referenced this pull request Sep 4, 2026
* chore(release): v1.0.0-rc.1

* fix(update): assert against the active dist-tag, not a hardcoded "latest" (#2243)

The update handler was changed to pick the npm dist-tag from the local
prerelease (rc/preview/latest), but two assertions in update.test.ts still
hardcoded "latest", so CI on 1.0.0-rc.1 fails: the handler installs
@aws/agentcore@rc while the tests expect @aws/agentcore@latest.

Route both assertions through distTag() so the test tracks whichever tag
the current version resolves to.

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Trirmadura J Ariyawansa <tjariy@amazon.com>
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.

2 participants