Skip to content

chore: build changed clients script without scope option #3034

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

Merged
merged 1 commit into from
Nov 17, 2021

Conversation

AllanZhengYP
Copy link
Contributor

@AllanZhengYP AllanZhengYP commented Nov 17, 2021

Description

This change fixes a bug when changed client packages are sometimes not included in the client building scope.

Given the situation: The only changed package since last release is middleware-sdk-ec2.
I expect the changed packages are middleware-sdk-ec2 AND client-ec2, because of dependency.
And lerna returns the right result with lerna changed --since.
However, if I scope the changed packages to be clients only(e.g. lerna changed --since --scope '@aws-sdk/client-*'), lerna won't return any package
Because the lerna --scope filter is applied BEFORE detecting the changed packages. It won't detect the change in middleware-sdk-ec2, and hence cannot load the client-ec2 which contains this dependency.

The current change uses command line operation to filter the changed clients and libs and set them as scope.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@AllanZhengYP AllanZhengYP requested a review from a team as a code owner November 17, 2021 19:17
@AllanZhengYP AllanZhengYP requested a review from trivikr November 17, 2021 19:18
@codecov-commenter
Copy link

codecov-commenter commented Nov 17, 2021

Codecov Report

Merging #3034 (7df1e8c) into main (82745a5) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3034   +/-   ##
=======================================
  Coverage   58.76%   58.76%           
=======================================
  Files         567      567           
  Lines       30360    30360           
  Branches     7483     7483           
=======================================
  Hits        17841    17841           
  Misses      12519    12519           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 82745a5...7df1e8c. Read the comment docs.

@AllanZhengYP AllanZhengYP merged commit 76c6093 into aws:main Nov 17, 2021
@github-actions
Copy link

github-actions bot commented Dec 2, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants