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

arm jobs failing with corrupted workspace #2983

Closed
richardlau opened this issue Jul 1, 2022 · 6 comments
Closed

arm jobs failing with corrupted workspace #2983

richardlau opened this issue Jul 1, 2022 · 6 comments

Comments

@richardlau
Copy link
Member

e.g. https://ci.nodejs.org/job/node-test-commit-arm-debug/nodes=ubuntu1804-arm64/2813/console

11:02:25 Caused by: hudson.plugins.git.GitException: Command "git fetch --no-tags --progress -- git@github.com:nodejs/node.git +refs/heads/*:refs/remotes/origin/* +refs/heads/v12.x-staging:refs/remotes/origin/_jenkins_local_branch" returned status code 128:
11:02:25 stdout: 
11:02:25 stderr: error: object file .git/objects/7f/6fe877ea2c2c0726ed1b10c6f946d0176e5c39 is empty
11:02:25 error: object file .git/objects/7f/6fe877ea2c2c0726ed1b10c6f946d0176e5c39 is empty
11:02:25 fatal: loose object 7f6fe877ea2c2c0726ed1b10c6f946d0176e5c39 (stored in .git/objects/7f/6fe877ea2c2c0726ed1b10c6f946d0176e5c39) is corrupt
11:02:25 

Looks to have been happening on

Although it looks like we haven't had a build on test-equinix-ubuntu1804_sharedlibs_container-arm64-2 (the other container on the first Altra docker host) since yesterday so that could possibly also be affected.

@richardlau richardlau changed the title node-test-commit-arm-debug jobs failing with corrupted workspace arm jobs failing with corrupted workspace Jul 1, 2022
@richardlau
Copy link
Member Author

@sxa
Copy link
Member

sxa commented Jul 1, 2022

Do you think it's possible that this has happened when the machine has fallen over at some point?

@richardlau
Copy link
Member Author

Do you think it's possible that this has happened when the machine has fallen over at some point?

Yes. The likeliest explanation is the machine restarted while jobs were executing a git checkout/fetch operation.

@richardlau
Copy link
Member Author

Also these containers are all on the machine that I had to rescue (i.e. unstick from the UEFI prompt) yesterday: #2894 (comment)

@richardlau
Copy link
Member Author

bash-fu:

iojs@test-equinix-ubuntu2004-docker-arm64-1:~$ find . -type d -name ".git" -exec bash -c "export ws=\`dirname {}\` && cd \$ws && if ! git status >/dev/null;
 then echo \$ws ; fi " \;
error: object file .git/objects/f0/50af1aba95dbdfcf15b2338d3b59415381345f is empty
error: object file .git/objects/f0/50af1aba95dbdfcf15b2338d3b59415381345f is empty
error: object file .git/objects/f0/50af1aba95dbdfcf15b2338d3b59415381345f is empty
fatal: loose object f050af1aba95dbdfcf15b2338d3b59415381345f (stored in .git/objects/f0/50af1aba95dbdfcf15b2338d3b59415381345f) is corrupt
./test-equinix-ubuntu2004_container-armv7l-1/build/workspace/node-test-commit-arm
error: object file .git/objects/dd/4174dff1f80d5a492441f2a666aacfff9d2444 is empty
error: object file .git/objects/dd/4174dff1f80d5a492441f2a666aacfff9d2444 is empty
error: object file .git/objects/dd/4174dff1f80d5a492441f2a666aacfff9d2444 is empty
fatal: loose object dd4174dff1f80d5a492441f2a666aacfff9d2444 (stored in .git/objects/dd/4174dff1f80d5a492441f2a666aacfff9d2444) is corrupt
./test-equinix-ubuntu1804_sharedlibs_container-arm64-3/build/workspace/node-test-commit-arm-debug
error: object file .git/objects/f0/50af1aba95dbdfcf15b2338d3b59415381345f is empty
error: object file .git/objects/f0/50af1aba95dbdfcf15b2338d3b59415381345f is empty
error: object file .git/objects/f0/50af1aba95dbdfcf15b2338d3b59415381345f is empty
fatal: loose object f050af1aba95dbdfcf15b2338d3b59415381345f (stored in .git/objects/f0/50af1aba95dbdfcf15b2338d3b59415381345f) is corrupt
./test-equinix-rhel8_container-arm64-1/build/workspace/node-test-commit-arm
error: object file .git/objects/f0/50af1aba95dbdfcf15b2338d3b59415381345f is empty
error: object file .git/objects/f0/50af1aba95dbdfcf15b2338d3b59415381345f is empty
error: object file .git/objects/f0/50af1aba95dbdfcf15b2338d3b59415381345f is empty
fatal: loose object f050af1aba95dbdfcf15b2338d3b59415381345f (stored in .git/objects/f0/50af1aba95dbdfcf15b2338d3b59415381345f) is corrupt
./test-equinix-ubuntu1804_sharedlibs_container-arm64-1/build/workspace/node-test-commit-arm-debug
iojs@test-equinix-ubuntu2004-docker-arm64-1:~$

Removing above workspaces:

 find . -type d -name ".git" -exec bash -c "export ws=\`dirname {}\` && cd \$ws && if ! git status >/dev/null; then cd - && rm -rf \$ws ; fi " \;

After:

iojs@test-equinix-ubuntu2004-docker-arm64-1:~$ find . -type d -name ".git" -exec bash -c "export ws=\`dirname {}\` && cd \$ws && if ! git status >/dev/null; then echo \$ws ; fi " \;
iojs@test-equinix-ubuntu2004-docker-arm64-1:~$

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

No branches or pull requests

2 participants