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

Change the way Java stackdriver version is being represented #441

Merged
merged 1 commit into from
Nov 2, 2021

Conversation

dmikusa
Copy link
Contributor

@dmikusa dmikusa commented Nov 2, 2021

Summary

The Google Stackdriver Java agent is using a date-based version. Previously, this action would take the date part and stuff that into the major version field, followed by the RC number as the minor version. This resulted in the buildpack bumping a major version for every release unless it's manually corrected.

This PR changes the transformation of the date to a version such that the major version won't change nearly as often. It takes the year from the date and sets that to the major version, the month to the minor version and the patch version becomes the combination of the date and the RC number. Ex: 2021.11.100.

It's not perfect, but we need a version in that format and this will ensure that we're not bumping major versions every time a new release drops.

Use Cases

Checklist

  • I have viewed, signed, and submitted the Contributor License Agreement.
  • I have linked issue(s) that this PR should close using keywords or the Github UI (See docs)
  • I have added an integration test, if necessary.
  • I have reviewed the styleguide for guidance on my code quality.
  • I'm happy with the commit history on this PR (I have rebased/squashed as needed).

The Google Stackdriver Java agnet is using a date based version. Previously, this action would take the date part and stuff that into the major version field, followed by the RC number as the minor version. This resulted in the buildpack bumping a major version for every release, unless it's manually corrected.

This PR changes the transformation of the date to a version such that the major version won't change nearly as often. It takes the year from the date and sets that to the major version, the month to the minor version and the patch version becomes the combination of the date and the RC number. Ex: 2021.11.100.

It's not perfect, but we need a version in that format and this will ensure that we're not bumping major versions every time a new release drops.

Signed-off-by: Daniel Mikusa <dmikusa@vmware.com>
@dmikusa dmikusa added type:bug A general bug semver:patch A change requiring a patch version bump labels Nov 2, 2021
@dmikusa dmikusa requested a review from a team November 2, 2021 13:42
@dmikusa dmikusa merged commit 641a3f8 into main Nov 2, 2021
@dmikusa dmikusa deleted the google-s branch November 2, 2021 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:patch A change requiring a patch version bump type:bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant