-
Notifications
You must be signed in to change notification settings - Fork 2
misc: artifact size metrics actions #150
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
base: main
Are you sure you want to change the base?
Conversation
upload: | ||
description: Whether the metrics should be uploaded to S3/Cloudwatch | ||
release_metrics: | ||
description: Whether the metrics are coming from a release build |
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.
correctness: configure type: boolean
# Check for large diff | ||
if [ "$percent" -gt 5 ]; then | ||
large_diff=true | ||
fi |
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.
Are we no longer using the significantChangeThresholdPercentage
configured in the plugin?
Lines 103 to 106 in 56de883
/** | |
* The threshold for an acceptable artifact size increase (percentage) | |
*/ | |
var significantChangeThresholdPercentage: Double = 5.0 |
Let's delete it there if it's no longer being used
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.
Oops, forgot to delete all that. We never really changed the value from 5% so it doesn't seem necessary.
echo "Artifact, Size (Bytes)" > "$output_file" | ||
|
||
# Find all JARs (exclude sources and javadoc) | ||
# TODO: Calculate KN artifacts sizes |
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 have an internal task for this?
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.
We have an older task for it: SDK-KT-771
if [ "$GITHUB_REPOSITORY" = "aws-sdk-kotlin" ]; then | ||
# FIXME: Enable K/N builds | ||
./gradlew build -Paws.kotlin.native=false build --parallel --max-workers 16 | ||
./gradlew -Paws.kotlin.native=false publish --parallel --max-workers 16 |
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.
Shouldn't this be publishAllPublicationsToTestLocalRepository
?
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.
It should be the same, our publishing configuration applies to AbstractPublishToMaven
tasks. I can do some more testing and update this if needed.
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.
Changed this to publishAllPublicationsToTestLocalRepository
in the codebuild job btw
// Minimize the comment | ||
await github.graphql(` | ||
mutation { | ||
minimizeComment(input: {subjectId: "${commentId}", classifier: RESOLVED}) { } | ||
} | ||
`) |
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.
Are we always minimizing the comment now?
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.
Yes, we rarely have to actually look at the metrics. If we do, it's really easy to just un-minimize a comment.
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.
Aren't the artifact sizes logged in the CI output? Maybe we don't need the comment at all
Issue #, if available:
N/A
Description of changes:
Adds actions that can be used downstream to deal with artifact size metrics
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.