Skip to content

[AURON #2444] Add build branch and build reversion info - #2445

Open
zhaohehuhu wants to merge 1 commit into
apache:masterfrom
zhaohehuhu:dev-0730
Open

[AURON #2444] Add build branch and build reversion info#2445
zhaohehuhu wants to merge 1 commit into
apache:masterfrom
zhaohehuhu:dev-0730

Conversation

@zhaohehuhu

@zhaohehuhu zhaohehuhu commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #2444

Rationale for this change

Auron build information currently includes component versions and build timestamp, but it does not identify the Git branch or commit used to produce the artifact. This makes it harder to trace a running application or built package back to the exact source revision.

What changes are included in this PR?

This PR adds Git branch and revision information to the Auron build info file.

Are there any user-facing changes?

No.

How was this patch tested?

Rebuild

Was this patch authored or co-authored using generative AI tooling?

  • Yes
  • No

Signed-off-by: zhaohehuhu <luoyedeyi@163.com>
@zhaohehuhu zhaohehuhu changed the title [Auron #2444]add build branch and build reversion info [Auron #2444] add build branch and build reversion info Jul 30, 2026
@zhaohehuhu zhaohehuhu changed the title [Auron #2444] add build branch and build reversion info [AURON #2444] add build branch and build reversion info Jul 30, 2026
@zhaohehuhu zhaohehuhu changed the title [AURON #2444] add build branch and build reversion info [AURON #2444] Add build branch and build reversion info Jul 30, 2026
@slfan1989 slfan1989 self-assigned this Jul 31, 2026
Comment thread auron-build.sh
JAVA_VERSION=$(java -version 2>&1 | head -n 1 | awk '{print $3}' | tr -d '"')
PROJECT_VERSION=$(./build/mvn help:evaluate -N -Dexpression=project.version -Pspark-${SPARK_VER} -q -DforceStdout 2>/dev/null)
RUST_VERSION=$(rustc --version | awk '{print $2}')
BUILD_BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the contribution! In the release workflows, actions/checkout checks out ${{ github.event.pull_request.head.sha }}, which leaves the repository in detached HEAD state. In that case, git rev-parse --abbrev-ref HEAD records HEAD rather than the actual source branch, so the branch metadata will not be useful for CI-built artifacts. Could we support an explicit build-branch environment variable, populated from github.head_ref/github.ref_name, and fall back to Git only for local builds? Please also make sure the value is forwarded into Docker builds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Git branch and revision information to Auron build info

2 participants