Skip to content

Conversation

@thecoop
Copy link
Member

@thecoop thecoop commented Feb 20, 2024

Add an option to bump transport and index version ids on a new release, controlled by the build automation

Relates #105295

@thecoop thecoop added :Core/Infra/Core Core issues without another label >refactoring labels Feb 20, 2024
@thecoop thecoop force-pushed the bump-release-version-ids branch from 94dcfe3 to 8086265 Compare February 20, 2024 15:01
return Optional.of(versionJava);
}

private static final int VERSION_ADDITION = 1000;
Copy link
Member

Choose a reason for hiding this comment

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

This won't be correct for bugfix version, right? It would need to be a patch?

static Optional<CompilationUnit> addVersionId(CompilationUnit java, Version releaseVersion) {
TypeDeclaration<?> type = java.getType(0);

String newVersionField = "RELEASE_" + releaseVersion.toString().replace('.', '_');
Copy link
Member

Choose a reason for hiding this comment

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

This name doesn't seem appropriate. It might end up being the release version, but other versions might be added before release. Could we instead name it something like "INITIAL_WHATEVER"? The version collapsing can then rename the constant as appropriate for what is actually released.

writeOutNewContents(transportVersionJava, modifiedTv.get());
}

Path indexVersionJava = rootDir.resolve(INDEX_VERSIONS_FILE_PATH);
Copy link
Member

Choose a reason for hiding this comment

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

I thought we were only going to bump transport versions on release?

@thecoop
Copy link
Member Author

thecoop commented Feb 4, 2025

This is an old PR, and somewhat out of date - it's an outline of what is needed, but more work is required to update it.

@thecoop thecoop closed this May 13, 2025
@thecoop thecoop deleted the bump-release-version-ids branch May 13, 2025 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Core/Infra/Core Core issues without another label >refactoring v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants