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

misc: gradle mirror #1486

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

misc: gradle mirror #1486

wants to merge 8 commits into from

Conversation

0marperez
Copy link
Contributor

Issue #

Description of changes

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

@0marperez 0marperez added the no-changelog Indicates that a changelog entry isn't required for a pull request. Use sparingly. label Jan 6, 2025
Copy link

github-actions bot commented Jan 6, 2025

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK

This comment has been minimized.

@0marperez 0marperez marked this pull request as ready for review January 6, 2025 21:00
@0marperez 0marperez requested a review from a team as a code owner January 6, 2025 21:00
Copy link

github-actions bot commented Jan 7, 2025

A new generated diff is ready to view.

Copy link

github-actions bot commented Jan 7, 2025

Affected Artifacts

Changed in size
Artifact Pull Request (bytes) Latest Release (bytes) Delta (bytes) Delta (percentage)
configservice-jvm.jar closure 12,855,542 12,855,548 -6 -0.00%
s3-jvm.jar closure 12,350,750 12,350,756 -6 -0.00%
inspector2-jvm.jar closure 12,002,721 12,002,727 -6 -0.00%
rekognition-jvm.jar closure 11,798,327 11,798,333 -6 -0.00%
computeoptimizer-jvm.jar closure 10,919,236 10,919,242 -6 -0.00%
storagegateway-jvm.jar closure 10,624,295 10,624,301 -6 -0.00%
georoutes-jvm.jar closure 10,594,104 10,594,110 -6 -0.00%
snowball-jvm.jar closure 9,156,615 9,156,621 -6 -0.00%
glacier-jvm.jar closure 9,091,321 9,091,327 -6 -0.00%
elasticloadbalancing-jvm.jar closure 9,068,445 9,068,451 -6 -0.00%
greengrass-jvm.jar closure 10,449,487 10,449,494 -7 -0.00%
resourcegroups-jvm.jar closure 8,820,790 8,820,796 -6 -0.00%
secretsmanager-jvm.jar closure 8,694,470 8,694,476 -6 -0.00%
identitystore-jvm.jar closure 8,610,801 8,610,807 -6 -0.00%
cognitosync-jvm.jar closure 8,483,279 8,483,285 -6 -0.00%
sts-jvm.jar closure 8,265,783 8,265,789 -6 -0.00%
applicationcostprofiler-jvm.jar closure 8,156,399 8,156,405 -6 -0.00%
sagemakeredge-jvm.jar closure 8,083,700 8,083,706 -6 -0.00%
personalizeruntime-jvm.jar closure 8,052,467 8,052,473 -6 -0.00%
appconfigdata-jvm.jar closure 8,027,040 8,027,046 -6 -0.00%
servicecatalogappregistry-jvm.jar closure 8,708,459 8,708,466 -7 -0.00%
scheduler-jvm.jar closure 8,523,444 8,523,451 -7 -0.00%
savingsplans-jvm.jar closure 8,444,651 8,444,658 -7 -0.00%
ssooidc-jvm.jar closure 8,148,066 8,148,073 -7 -0.00%
iotsecuretunneling-jvm.jar closure 8,189,853 8,190,098 -245 -0.00%
supplychain-jvm.jar closure 8,738,529 8,738,851 -322 -0.00%
supplychain-jvm.jar 881,405 881,723 -318 -0.04%
iotsecuretunneling-jvm.jar 332,729 332,970 -241 -0.07%

Comment on lines 86 to 87
- name: Configure Gradle
run: gradle wrapper --gradle-distribution-url ${{ secrets.CUSTOM_GRADLE_DISTRIBUTION_URL }}/gradle-8.5-bin.zip
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: All this repetition means we'll have to update the version number in a bunch of places. This seems like a good candidate for either a custom action or possibly integrating into our common build setup.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even better, add the custom action to aws-kotlin-repo-tools like I did for kat

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would hamper our ability to upgrade Gradle versions independently across the repos. Couldn't that also cause issues that wouldn't be caught until the next run of CI?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great suggestion, thanks

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be caught when you go to upgrade the version of aws-kotlin-repo-tools you're using

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I can turn it into an action with inputs to specify the gradle version we want to use. That way we can move it to repo tools

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specify the Gradle version where? In each action that uses Gradle? Doesn't that defeat the goal of commonizing the version in a single place?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh you're right, nvm

Comment on lines 86 to 87
- name: Configure Gradle
run: gradle wrapper --gradle-distribution-url ${{ secrets.CUSTOM_GRADLE_DISTRIBUTION_URL }}/gradle-8.5-bin.zip
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: Why make the distribution URL a secret?

Copy link
Contributor Author

@0marperez 0marperez Jan 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think someone could use it and possibly perform some sort of attack. I doubt someone will but theoretically they could take down our CI or just run up our AWS bill

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the full command (and the Gradle distribution URL) will still be visible in the CI's logs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see it hidden as ***

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moving conversation offline.

distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: Why standardize on 8.5? Why not use the latest release, 8.12?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Iirc there are some soon to be deprecated features we're using. I'll try using 8.12 and see if everything works okay

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it works👍

Copy link

sonarqubecloud bot commented Jan 7, 2025

Copy link

github-actions bot commented Jan 7, 2025

A new generated diff is ready to view.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog Indicates that a changelog entry isn't required for a pull request. Use sparingly.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants