-
Notifications
You must be signed in to change notification settings - Fork 50
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(ci): fix codegen diff #1063
Conversation
A new generated diff is ready to view.
|
A new generated diff is ready to view. |
A new generated diff is ready to view. |
Kudos, SonarCloud Quality Gate passed! |
A new generated diff is ready to view.
|
- uses: actions/checkout@v4 | ||
with: | ||
repository: 'awslabs/smithy-kotlin' | ||
fetch-depth: 0 | ||
path: 'smithy-kotlin' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we also need aws-crt-kotlin?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically smithy-kotlin
could need a branch version of aws-crt-kotlin
. However, in this case we mostly care about codegen output so I don't think we care.
Issue #
fixes #732
upstream support: awslabs/aws-kotlin-repo-tools#16
Description of changes
Removes CRT builder from the equation as it is only good for building at the current HEAD. We need to be able to get dependencies at the correct base ref as well to generate accurate diffs. As such I've added some utility code to repo-tools and refactored the diff preview workflow to use that instead. Now we explicitly checkout our dependencies and rely on our builtin composite build (by having
smithy-kotlin
a sibling of the sdk directory).This should now correctly handle not only
xyz-branch
->main
but also if you have long running feature branches across repos:and:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.