Skip to content

chore: Add initial codebuild specs for automating release #243

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
May 6, 2021

Conversation

farleyb-amazon
Copy link
Contributor

Description of changes:
For now, these specs only deal with validation. However, I'm using the structure that includes a place for the release itself (currently a no-op) so that we can easily add that once we're ready.

Unlike in the Python ESDK, I made separate files for validation of prod vs staging releases, since the steps to hit the staging repository are a pretty big delta from hitting normal public repos.

Testing:
I've tested both the prod and release targets, including staging a version not on public maven to make extra sure that the staging validation is actually hitting the staging repository.

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

For now, these specs only deal with validation. However, I'm using the
structure that includes a place for the release itself (currently a no-op)
so that we can easily add that once we're ready.
Copy link
Contributor

@robin-aws robin-aws left a comment

Choose a reason for hiding this comment

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

Excellent progress!

variables:
JAVA_ENV_VERSION: openjdk8
JAVA_NUMERIC_VERSION: 8
image: aws/codebuild/standard:3.0
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Interestingly, it does not, because 3.0 is the only one that supports openjdk: https://docs.aws.amazon.com/codebuild/latest/userguide/available-runtimes.html

Given that 3.0 is deprecated, we'll need to think about what our long term support plan is for openjdk.

Comment on lines +5 to +6
SONA_USERNAME: Sonatype-Team-Account:Username
SONA_PASS: Sonatype-Team-Account:Password
Copy link
Contributor

Choose a reason for hiding this comment

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

These aren't actually used since the release steps themselves are no-ops, correct? I'm fine with leaving these here for now but worth a comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct, I've left them in with the expectation that we'll shortly be making use of them.

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, and I haven't found a good way to add comments in codebuild specs :(

Copy link
Contributor

Choose a reason for hiding this comment

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

Darn. I can live without them.

Comment on lines +17 to +18
-Dmaven.compiler.target=$JAVA_NUMERIC_VERSION \
-Dmaven.compiler.source=$JAVA_NUMERIC_VERSION
Copy link
Contributor

Choose a reason for hiding this comment

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

Are these two properties necessary? Given you're running on either 8 or 11 based on the runtime version config, wouldn't it better represent the common customer experience to stick to the default?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They actually are necessary, because the pom currently defaults these to 11. So if you're running in the Java 8 environment but this project is trying to compile to Java 11, it gets unhappy.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah okay, it's another consequence of using a single consumer to test both version then.

@farleyb-amazon farleyb-amazon merged commit ffd69c5 into aws:master May 6, 2021
@farleyb-amazon farleyb-amazon deleted the release-improvements branch May 6, 2021 20:45
robin-aws pushed a commit to robin-aws/aws-encryption-sdk-java that referenced this pull request May 26, 2021
For now, these specs only deal with validation. However, I'm using the
structure that includes a place for the release itself (currently a no-op)
so that we can easily add that once we're ready.
robin-aws pushed a commit that referenced this pull request May 26, 2021
For now, these specs only deal with validation. However, I'm using the
structure that includes a place for the release itself (currently a no-op)
so that we can easily add that once we're ready.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants