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

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open

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 81.46%. Comparing base (6d834c0) to head (2ff0222).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #33022   +/-   ##
=======================================
  Coverage   81.46%   81.46%           
=======================================
  Files         224      224           
  Lines       13748    13748           
  Branches     2412     2412           
=======================================
  Hits        11200    11200           
  Misses       2273     2273           
  Partials      275      275           
Flag Coverage Δ
suite.unit 81.46% <ø> (ø)

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

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

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 0d53a1e
  • Result: FAILED
  • Build Logs (available for 30 days)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS. p2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants