Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buildkite: Try same-named branches when cloning core repos, for PRs originating from official dlang repos #452

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kinke
Copy link
Contributor

@kinke kinke commented Jan 31, 2022

No description provided.

@@ -10,7 +10,12 @@ fi
if [ $# -eq 2 ]; then
origin_target_branch="$2"
else
origin_target_branch="${BUILDKITE_PULL_REQUEST_BASE_BRANCH:-$BUILDKITE_BRANCH}"
if [[ "${BUILDKITE_PULL_REQUEST_REPO:-}" =~ ^git@github\.com:dlang/ ]]; then
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I hope this is the source repo of the PR. I.e., kinke/druntime when opening a druntime PR from my fork. https://buildkite.com/docs/pipelines/environment-variables#bk-env-vars-buildkite-pull-request-repo isn't too clear.

@kinke
Copy link
Contributor Author

kinke commented Jan 31, 2022

Looks alright from what I can tell - this is a PR from an official dlang repo itself, BUILDKITE_PULL_REQUEST_REPO='git://github.com/dlang/ci.git', and CI checks out the same-named DMD and druntime branches (dlang/dmd#13593 and dlang/druntime#3718). LDC failing is to be expected, as this breaking change affects the frontend itself.

@RazvanN7
Copy link
Contributor

RazvanN7 commented Feb 1, 2022

Is the buidkite ldc failure going away after dlang/dmd#13593 is merged?

@kinke
Copy link
Contributor Author

kinke commented Feb 1, 2022

Not really - it depends on whether Buildkite does a full or shallow git clone of dmd AFAICT. If it's a shallow clone without .git subdir, the compiler defines __VERSION__ as 2099 with that DMD PR, and enables the opEquals fix. That fix breaks older (read: all current) frontends, so LDC needs to be prepared (ldc-developers/ldc#3910) and then the Buildkite ref bumped to master. I was thinking of doing that in a separate PR here (this PR should be green after merging, won't test the fix22717 branches anymore).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants