Skip to content

Conversation

@mrgrain
Copy link
Contributor

@mrgrain mrgrain commented Apr 23, 2025

The cli-integ tests depend on the node-pty package for testing of interactive terminals. This package needs to be build at install time using node-gyp. Because previously cli-integ tests dependet on an old version of npm, we got an old version of node-gyp which is incomaptible with recent python versions.

To fix this, we upgrade the dependency to a more recent version of npm.

Fixes failing Python package release.

Proof this fix works: https://github.com/aws/aws-cdk-cli/actions/runs/14619849549/job/41016752989?pr=406


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

The `cli-integ` tests depend on the `node-pty` package for testing of interactive terminals. This package needs to be build at install time using `node-gyp`. Because previously `cli-integ` tests dependet on an old version of `npm`, we got an old version of `node-gyp` which is incomaptible with recent python versions.

To fix this, we upgrade the dependency to a more recent version of `npm`.
@codecov-commenter
Copy link

codecov-commenter commented Apr 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.04%. Comparing base (cd4ec06) to head (702018c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #407      +/-   ##
==========================================
+ Coverage   80.94%   81.04%   +0.10%     
==========================================
  Files          66       66              
  Lines        6879     6879              
  Branches      791      796       +5     
==========================================
+ Hits         5568     5575       +7     
+ Misses       1291     1283       -8     
- Partials       20       21       +1     
Flag Coverage Δ
suite.unit 81.04% <ø> (+0.10%) ⬆️

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.

@mrgrain mrgrain force-pushed the mrgrain/chore/fix-python-build branch from 046747d to 702018c Compare April 23, 2025 14:26
@mrgrain mrgrain added the pr/exempt-integ-test Skips the integ test steps if set. label Apr 23, 2025
@mrgrain mrgrain closed this Apr 23, 2025
auto-merge was automatically disabled April 23, 2025 14:27

Pull request was closed

@mrgrain mrgrain reopened this Apr 23, 2025
@github-actions
Copy link

Total lines changed 1570 is greater than 1000. Please consider breaking this PR down.

@mrgrain mrgrain enabled auto-merge April 23, 2025 14:33
@mrgrain mrgrain disabled auto-merge April 23, 2025 14:37
@mrgrain mrgrain added this pull request to the merge queue Apr 23, 2025
Merged via the queue into main with commit e4c1f15 Apr 23, 2025
21 of 26 checks passed
@mrgrain mrgrain deleted the mrgrain/chore/fix-python-build branch April 23, 2025 14:46
@mrgrain mrgrain self-assigned this Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

p2 pr/exempt-integ-test Skips the integ test steps if set.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants