Skip to content

Conversation

0marperez
Copy link
Contributor

@0marperez 0marperez commented Sep 18, 2025

Issue #

N/A

Description of changes

  • Configure minor-version-strategy rules (plannedRemoval)
  • GH workflow to run new rule

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 Sep 18, 2025

This comment has been minimized.

1 similar comment

This comment has been minimized.

This comment has been minimized.

@0marperez 0marperez marked this pull request as ready for review September 18, 2025 21:21
@0marperez 0marperez requested a review from a team as a code owner September 18, 2025 21:21

jobs:
minor-version-bump-check:
permissions: {}
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you need to specify this? Isn't the default "no permissions"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's best to specify it. The default is likely read and write, I ran into issues with this recently: https://github.com/smithy-lang/smithy-kotlin/security/code-scanning/93

We also do the same in other workflows for the same reason:
https://github.com/aws/aws-sdk-kotlin/blob/8716c234c59185fd09d819c65189ab6d4ede071d/.github/workflows/continuous-integration.yml#L7

Comment on lines 9 to 15
steps:
- name: Check branch name
run: |
# Only continue on branches starting with vX.X (e.g. v1.2, v1.2.3, v1.2-main)
if [[ ! "$GITHUB_HEAD_REF" =~ ^v\.[0-9]+\.[0-9]+.*$ ]]; then
exit 0
fi
Copy link
Contributor

@lauzadis lauzadis Sep 18, 2025

Choose a reason for hiding this comment

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

This whole step can be removed by using an if: configuration and checking github.ref

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As far as I know we can't use regex in conditionals but I'll give it a try.

Copy link
Contributor

Choose a reason for hiding this comment

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

If it's not simple to implement don't spend too much time getting it to work. It just looked like this could be replaced with an if on the step

This comment has been minimized.

This comment has been minimized.

Copy link

Affected Artifacts

Changed in size
Artifact Pull Request (bytes) Latest Release (bytes) Delta (bytes) Delta (percentage)
runtime-core-jvm.jar 834,767 834,754 13 0.00%
http-client-jvm.jar 347,817 347,830 -13 -0.00%

@0marperez 0marperez merged commit 452e2f4 into main Sep 22, 2025
21 checks passed
@0marperez 0marperez deleted the minor-version-strategy-smithy-kotlin branch September 22, 2025 17:38
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.

4 participants