Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix cyclic package dependencies #33022

Merged
merged 22 commits into from
Jan 25, 2025
Merged

chore: fix cyclic package dependencies #33022

merged 22 commits into from
Jan 25, 2025

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Jan 20, 2025

We can't upgrade Lerna/NX anymore because we have cyclic dependencies between our packages that the old NX wasn't able to detect, but the new one is.

Remove those cyclic dependencies and upgrade NX.

Depends-On: #33016


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

In a recent upgrade of the SDKv3, the INI credential provider has gotten
a private copy of the STS Client, to make AssumeRole calls with. This
means the STS Client used by the INI provider is now unmockable.

In #31702, we migrated the tests of the credentials chain mostly to
using mocks, as opposed to what it was doing in the past: intercepting
network traffic and emulating a fake STS Endpoint. These tests now start
failing due to an SDK upgrade.

Fortunately, most of the old code was still there, so in this change
I'm ripping out the STS Mocking and doing a couple minor changes;
the tests now pass again.
We can't upgrade Lerna/NX anymore because we have cyclic dependencies
between our packages that the old NX wasn't able to detect, but the new
one is.

Remove those cyclic dependencies and upgrade NX.
@aws-cdk-automation aws-cdk-automation requested a review from a team January 20, 2025 14:37
@github-actions github-actions bot added the p2 label Jan 20, 2025
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Jan 20, 2025
@rix0rrr rix0rrr requested a review from a team as a code owner January 20, 2025 15:48
Copy link

codecov bot commented Jan 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.79%. Comparing base (097caaa) to head (9831fb7).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #33022   +/-   ##
=======================================
  Coverage   80.79%   80.79%           
=======================================
  Files         232      232           
  Lines       14110    14110           
  Branches     2453     2453           
=======================================
  Hits        11400    11400           
  Misses       2430     2430           
  Partials      280      280           
Flag Coverage Δ
suite.unit 80.79% <ø> (ø)

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

Components Coverage Δ
packages/aws-cdk 79.53% <ø> (ø)
packages/aws-cdk-lib/core 82.17% <ø> (ø)

@aws-cdk-automation aws-cdk-automation added the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Jan 24, 2025
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 9831fb7
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@rix0rrr rix0rrr merged commit 06144d9 into main Jan 25, 2025
18 checks passed
@rix0rrr rix0rrr deleted the huijbers/lerna-cycles branch January 25, 2025 13:38
Copy link

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
contribution/core This is a PR that came from AWS. p2 pr/needs-maintainer-review This PR needs a review from a Core Team Member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants