Skip to content

Conversation

@mrgrain
Copy link
Contributor

@mrgrain mrgrain commented Jan 14, 2026

Fixes #1007

Integration tests were incorrectly reporting success even when assertions failed. The test output would show assertion failures in the CloudFormation stack outputs (with "status":"fail" messages), but the integ-runner would still report the test as passed.

This happened because the integ-runner wasn't passing the outputsFile option through to the toolkit-lib deploy method. Without this, assertion results were never written to disk and couldn't be evaluated by the test runner. The fix ensures the outputsFile path is properly resolved to an absolute path and passed through to the deploy method, allowing the runner to correctly detect and report assertion failures.


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

@github-actions github-actions bot added bug effort/medium 1-3 days of effort p1 labels Jan 14, 2026
@mrgrain mrgrain changed the title fix(integ-runner): report assertion failures instead of passing tests with errors fix(integ-runner): assertion failures are incorrectly passing tests Jan 14, 2026
@aws-cdk-automation aws-cdk-automation requested a review from a team January 14, 2026 10:14
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.72%. Comparing base (2e92d71) to head (576e907).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1024   +/-   ##
=======================================
  Coverage   87.72%   87.72%           
=======================================
  Files          72       72           
  Lines       10087    10087           
  Branches     1330     1330           
=======================================
  Hits         8849     8849           
  Misses       1213     1213           
  Partials       25       25           
Flag Coverage Δ
suite.unit 87.72% <ø> (ø)

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 Jan 14, 2026
Merged via the queue into main with commit 647111e Jan 14, 2026
41 checks passed
@aws-cdk-automation aws-cdk-automation deleted the mrgrain/fix/integ-runner-assert branch January 14, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug effort/medium 1-3 days of effort p1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(integ-runner): succeeds with errors

4 participants