Skip to content

[BEAM-4496] Fix #3 for branch fetch failure on job_PostCommit_Website_Publish - #6544

Merged
swegner merged 3 commits into
apache:masterfrom
alanmyrvold:website_branch_fail
Oct 2, 2018
Merged

[BEAM-4496] Fix #3 for branch fetch failure on job_PostCommit_Website_Publish#6544
swegner merged 3 commits into
apache:masterfrom
alanmyrvold:website_branch_fail

Conversation

@alanmyrvold

Copy link
Copy Markdown
Member

Still failing:
https://builds.apache.org/job/beam_PostCommit_Website_Publish/57/
05:01:02 git fetch https://gitbox.apache.org/repos/asf/beam.git asf-site
05:01:02 Starting process 'command 'sh''. Working directory: /home/jenkins/jenkins-slave/workspace/beam_PostCommit_Website_Publish/src/website Command: sh -c git fetch https://gitbox.apache.org/repos/asf/beam.git asf-site
05:01:02 Successfully started process 'command 'sh''
05:01:02 From https://gitbox.apache.org/repos/asf/beam
05:01:02 * branch asf-site -> FETCH_HEAD
05:01:02 :beam-website:commitWebsite (Thread[Task worker for ':' Thread 11,5,main]) completed. Took 1.494 secs.
05:01:02
05:01:02 FAILURE: Build failed with an exception.
05:01:02
05:01:02 * Where:
05:01:02 Build file '/home/jenkins/jenkins-slave/workspace/beam_PostCommit_Website_Publish/src/website/build.gradle' line: 130
05:01:02
05:01:02 * What went wrong:
05:01:02 Execution failed for task ':beam-website:commitWebsite'.
05:01:02 > org.eclipse.jgit.api.errors.RefNotFoundException: Ref asf-site cannot be resolved
05:01:02

Post-Commit Tests Status (on master branch)

LangSDKApexDataflowFlinkGearpumpSamzaSpark
GoBuild Status------------------
JavaBuild StatusBuild StatusBuild StatusBuild StatusBuild StatusBuild StatusBuild Status
PythonBuild Status---Build Status
Build Status
Build Status---------

@alanmyrvold

Copy link
Copy Markdown
MemberAuthor

+R: @swegner PTAL? Still failing. Mysterious why it succeeds as a pull request.

@swegner

Copy link
Copy Markdown
Contributor

I was able to reproduce this by doing a single-branch clone of beam and then running the build:

git clone --single-branch --branch master git@github.com:apache/beam.git .
./gradlew :beam-website:commitWebsite -x :beam-website:testWebsite --scan

https://gradle.com/s/7zo63xrlmsomg

It seems asf-site cannot be resolved unless it is an existing branch. I suspect there's no mapping for it in the remote config. Let me try some more git kung-fu.. https://github.com/alanmyrvold/beam/pull/4

fixup! Ensure git fetch command works even without remote mapping config
@swegner
swegner merged commit 9d65ee9 into apache:masterOct 2, 2018
@swegner

Copy link
Copy Markdown
Contributor

cc @Ardagan

Sign up for freeto 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

@alanmyrvold@swegner