Skip to content

Conversation

@rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Mar 18, 2025

Monorepo dependencies were using carets ^; for most of these it didn't matter because the resulting artifact was bundled anyway, but for at least one it does matter:

Also making the cloud-assembly-schema references exact; probably doesn't matter since we're bundling most of these but it does show the intention of shipping exactly one version.


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

@rix0rrr rix0rrr requested a review from mrgrain March 18, 2025 10:54
@github-actions github-actions bot added the p2 label Mar 18, 2025
@aws-cdk-automation aws-cdk-automation requested a review from a team March 18, 2025 10:55
@mrgrain mrgrain disabled auto-merge March 18, 2025 10:56
@mrgrain
Copy link
Contributor

mrgrain commented Mar 18, 2025

I'm just worried this will affect the release process, read: bump and unbump and if the repo is considered unchanged afterwards.

@codecov-commenter
Copy link

codecov-commenter commented Mar 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.03%. Comparing base (a139c52) to head (4ea903f).
Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #246      +/-   ##
==========================================
- Coverage   85.03%   85.03%   -0.01%     
==========================================
  Files         206      218      +12     
  Lines       35202    36530    +1328     
  Branches     4533     4569      +36     
==========================================
+ Hits        29934    31062    +1128     
- Misses       5116     5318     +202     
+ Partials      152      150       -2     
Flag Coverage Δ
suite.unit 85.03% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 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.

.projenrc.ts Outdated
Comment on lines 1062 to 1063
cloudAssemblySchema.customizeReference({ exactVersion: true }),
cloudFormationDiff.customizeReference({ exactVersion: true }),
Copy link
Contributor

Choose a reason for hiding this comment

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

That's not right. Toolkit Library intentionally uses dependency ranges. In fact it should probably be wider and declare the actual minimal version and not just ^current.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll happily roll these back to carets, but I don't think it makes sense to use lower versions than current.

  • For a fresh install: ^x will use the highest possible version greater than x. It doesn't matter if we write ^x or ^y, if y is available it will be installed.
  • For an npm upgrade: by default it will upgrade everything, so same scenario as fresh install.
  • For an npm upgrade toolkit-only: the use case is that a user wants a new version of the toolkit, but explicitly wants to hold back versions of dependency packages? Do we think that is realistic?

@rix0rrr rix0rrr force-pushed the huijbers/exact-deps branch from f995133 to 32c0b68 Compare March 18, 2025 13:53
@rix0rrr rix0rrr force-pushed the huijbers/exact-deps branch from 15c1395 to 6a01f80 Compare March 19, 2025 16:03
@rix0rrr rix0rrr temporarily deployed to integ-approval March 19, 2025 16:03 — with GitHub Actions Inactive
aws-cdk-automation pushed a commit that referenced this pull request Mar 19, 2025
(Stacked PR on top of #246)

---
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache-2.0 license
@rix0rrr rix0rrr force-pushed the huijbers/exact-deps branch from a792b5c to 6a01f80 Compare March 19, 2025 18:18
@rix0rrr rix0rrr temporarily deployed to integ-approval March 19, 2025 18:18 — with GitHub Actions Inactive
Monorepo dependencies were using carets `^`; for most of these it
didn't matter because the resulting artifact was bundled anyway,
but for a couple it did matter:

* `cdk -> aws-cdk`: should use the exact same version, otherwise
  running `npx [email protected]` may accidentally execute `[email protected]`.
@rix0rrr rix0rrr force-pushed the huijbers/exact-deps branch from f9df8bf to 4ea903f Compare March 20, 2025 09:50
@rix0rrr rix0rrr temporarily deployed to integ-approval March 20, 2025 09:50 — with GitHub Actions Inactive
@rix0rrr rix0rrr added this pull request to the merge queue Mar 20, 2025
Merged via the queue into main with commit 4635d02 Mar 20, 2025
20 checks passed
@rix0rrr rix0rrr deleted the huijbers/exact-deps branch March 20, 2025 12:00
github-merge-queue bot pushed a commit that referenced this pull request Mar 20, 2025
This adds in the code for `@aws-cdk/integ-runner`, which is being
removed from the original `aws-cdk` repository here:
aws/aws-cdk#33835

Process:

* The removal PR should be merged first
* Then this should be merged
* Then we need to find [the latest released
version](https://www.npmjs.com/package/@aws-cdk/integ-runner) and add a
tag named `@aws-cdk/[email protected]` (or whatever the latest
version is) on the parent commit of this commit.

This proposed to drop the `-alpha` release tag of this package, which
seems fine. We've been running this for years, it hasn't changed much,
and future updates will be easier to consume if we drop the prerelease
tags.

(Stacked PR on top of #246)

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

---------

Signed-off-by: github-actions <[email protected]>
Co-authored-by: github-actions <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants