Skip to content

fix(toolkit-lib): synth time is not measured accurately#1121

Merged
aws-cdk-automation merged 3 commits intomainfrom
huijbers/not-measuring-synth-time
Feb 9, 2026
Merged

fix(toolkit-lib): synth time is not measured accurately#1121
aws-cdk-automation merged 3 commits intomainfrom
huijbers/not-measuring-synth-time

Conversation

@rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Feb 5, 2026

In multiple places the SYNTH span doesn't measure the time to synthesize the assembly, but rather the time to select stacks from an already-synthesized assembly.

Presumably this was done in order to avoid duplicating this line:

    const selectStacks = options.stacks ?? ALL_STACKS;

Instead, introduce a helper function that gets called from all places, and centralize the selectStacks logic so we don't fear duplication anymore.


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

In multiple places the `SYNTH` span doesn't measure the time to
synthesize the assembly, but rather the time to select stacks from an
already-synthesized assembly.

Presumably this was done in order to avoid duplicating this line:

```ts
    const selectStacks = options.stacks ?? ALL_STACKS;
```

Instead, introduce a helper function that gets called from all places,
and centralize the `selectStacks` logic so we don't fear duplication
anymore.
@rix0rrr rix0rrr requested a review from a team February 5, 2026 14:30
@github-actions github-actions bot added the p2 label Feb 5, 2026
@aws-cdk-automation aws-cdk-automation requested a review from a team February 5, 2026 14:31
@codecov-commenter
Copy link

codecov-commenter commented Feb 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.71%. Comparing base (3e25a4e) to head (06de9d0).
⚠️ Report is 13 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1121   +/-   ##
=======================================
  Coverage   87.71%   87.71%           
=======================================
  Files          72       72           
  Lines       10116    10116           
  Branches     1336     1336           
=======================================
  Hits         8873     8873           
  Misses       1217     1217           
  Partials       26       26           
Flag Coverage Δ
suite.unit 87.71% <ø> (ø)

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.

@aws-cdk-automation aws-cdk-automation added this pull request to the merge queue Feb 9, 2026
Merged via the queue into main with commit da376fd Feb 9, 2026
30 checks passed
@aws-cdk-automation aws-cdk-automation deleted the huijbers/not-measuring-synth-time branch February 9, 2026 11:04
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