Skip to content

Conversation

@staticfloat
Copy link
Member

Our CI system checks commits out as a detached head, which breaks our
Base.GIT_VERSION_INFO.branch information.

Our CI system checks commits out as a detached head, which breaks our
`Base.GIT_VERSION_INFO.branch` information.
@DilumAluthge
Copy link
Member

I would first check for BUILDKITE_TAG, and then check BUILDKITE_BRANCH, and then fall back to calling git.

@DilumAluthge
Copy link
Member

Needs backport to 1.8?

@staticfloat
Copy link
Member Author

I would first check for BUILDKITE_TAG, and then check BUILDKITE_BRANCH, and then fall back to calling git.

We record the branch name independently from whether it's tagged or not. The git describe --tags --exact-match call should always work, so I think what is here should be sufficient.

@staticfloat staticfloat added backport 1.6 Change should be backported to release-1.6 backport 1.7 backport 1.8 Change should be backported to release-1.8 labels Jul 15, 2022
Copy link
Member

@DilumAluthge DilumAluthge left a comment

Choose a reason for hiding this comment

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

It would be nice to have a check that checks if branch is equal to the string HEAD, and if it is, echo a warning to stderr.

But that's not strictly necessary.

@staticfloat staticfloat merged commit d117975 into master Jul 15, 2022
@staticfloat staticfloat deleted the sf/buildkite_branch_name branch July 15, 2022 20:43
KristofferC pushed a commit that referenced this pull request Jul 17, 2022
* Allow `BUILDKITE_BRANCH` to provide branch name

Our CI system checks commits out as a detached head, which breaks our
`Base.GIT_VERSION_INFO.branch` information.

* Fix typo

(cherry picked from commit d117975)
KristofferC pushed a commit that referenced this pull request Jul 20, 2022
* Allow `BUILDKITE_BRANCH` to provide branch name

Our CI system checks commits out as a detached head, which breaks our
`Base.GIT_VERSION_INFO.branch` information.

* Fix typo

(cherry picked from commit d117975)
@KristofferC KristofferC removed the backport 1.8 Change should be backported to release-1.8 label Aug 7, 2022
ffucci pushed a commit to ffucci/julia that referenced this pull request Aug 11, 2022
* Allow `BUILDKITE_BRANCH` to provide branch name

Our CI system checks commits out as a detached head, which breaks our
`Base.GIT_VERSION_INFO.branch` information.

* Fix typo
pcjentsch pushed a commit to pcjentsch/julia that referenced this pull request Aug 18, 2022
* Allow `BUILDKITE_BRANCH` to provide branch name

Our CI system checks commits out as a detached head, which breaks our
`Base.GIT_VERSION_INFO.branch` information.

* Fix typo
KristofferC pushed a commit that referenced this pull request Dec 21, 2022
* Allow `BUILDKITE_BRANCH` to provide branch name

Our CI system checks commits out as a detached head, which breaks our
`Base.GIT_VERSION_INFO.branch` information.

* Fix typo

(cherry picked from commit d117975)
KristofferC pushed a commit that referenced this pull request Dec 21, 2022
* Allow `BUILDKITE_BRANCH` to provide branch name

Our CI system checks commits out as a detached head, which breaks our
`Base.GIT_VERSION_INFO.branch` information.

* Fix typo

(cherry picked from commit d117975)
staticfloat added a commit that referenced this pull request Dec 23, 2022
* Allow `BUILDKITE_BRANCH` to provide branch name

Our CI system checks commits out as a detached head, which breaks our
`Base.GIT_VERSION_INFO.branch` information.

* Fix typo

(cherry picked from commit d117975)
KristofferC pushed a commit that referenced this pull request Oct 10, 2023
* Allow `BUILDKITE_BRANCH` to provide branch name

Our CI system checks commits out as a detached head, which breaks our
`Base.GIT_VERSION_INFO.branch` information.

* Fix typo

(cherry picked from commit d117975)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 1.6 Change should be backported to release-1.6

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants