Skip to content

Commit

Permalink
apacheGH-38363: [Release][CI] Omit tests for main/maintenance branche…
Browse files Browse the repository at this point in the history
…s on RC branch (apache#38365)

### Rationale for this change

Tests of deb package names for the following patterns are only for main/maintenance branches:

* `dev/release/post-11-bump-versions.sh 14.1.0 15.0.0` (minor release -> major release)
* `dev/release/post-11-bump-versions.sh 14.0.1 15.0.0` (patch release -> major release)

### What changes are included in this PR?

Omit these patterns.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* Closes: apache#38363

Authored-by: Sutou Kouhei <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
  • Loading branch information
kou authored and JerAguilon committed Oct 25, 2023
1 parent b447883 commit 2ccb13b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions dev/release/post-11-bump-versions-test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ def bump_versions(*targets)
end
env = env.merge(additional_env)
case bump_type
when :minor_on_main, :patch_on_main
when :minor, :patch
previous_version_components = @previous_version.split(".")
case bump_type
when :minor_on_main
when :minor
previous_version_components[1].succ!
when :patch_on_main
when :patch
previous_version_components[2].succ!
end
sh(env,
Expand Down Expand Up @@ -323,8 +323,9 @@ def test_version_post_tag
"Output:\n#{stdout}")
end

data(:bump_type, [nil, :minor_on_main, :patch_on_main])
data(:bump_type, [nil, :minor, :patch])
def test_deb_package_names
omit_on_release_branch unless bump_type.nil?
current_commit = git_current_commit
stdout = bump_versions("DEB_PACKAGE_NAMES")
changes = parse_patch(git("log", "-p", "#{current_commit}.."))
Expand Down

0 comments on commit 2ccb13b

Please sign in to comment.