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

TravisCI can't fetch rust-mozjs dependency #16787

Closed
jdm opened this issue May 9, 2017 · 12 comments
Closed

TravisCI can't fetch rust-mozjs dependency #16787

jdm opened this issue May 9, 2017 · 12 comments

Comments

@jdm
Copy link
Member

jdm commented May 9, 2017

$ ./mach build -d --verbose

cargo build -v

    Updating git repository `https://github.com/servo/rust-mozjs`

error: failed to load source for a dependency on `js`

Caused by:

  Unable to update https://github.com/servo/rust-mozjs#08af3654

Caused by:

  failed to fetch into /home/travis/build/servo/servo/.cargo/git/db/rust-mozjs-8611526964119dd6

Caused by:

  [9/-3] Object not found - no match for id (eb65ff7fc22c68210d1e113f76a2a1530fc1c070)

Build FAILED in 0:00:00

The command "./mach build -d --verbose" exited with 101.
@highfive
Copy link

highfive commented May 9, 2017

cc @aneeshusa

@jdm
Copy link
Member Author

jdm commented May 9, 2017

Looks similar to rust-lang/cargo#3561.

@metajack
Copy link
Contributor

cc @metajack

@alexcrichton
Copy link
Contributor

This may be a case where the git repo got corrupted and Cargo's not correctly detecting that, attempting to continue updating it. Is this happening repeatedly? If so, is it possible to inspect the caches? If inspection isn't possible, but it's repeatedly happening, does cleaning the caches help?

@metajack
Copy link
Contributor

Clearing caches can be done with https://travis-ci.org/servo/servo/caches on the TravisCI web UI.

Closing this since there is nothing for us to do here but remediate the problem when it happens.

@alexcrichton
Copy link
Contributor

@metajack if the issue here is indeed a corrupt git repo, then I'd definitely consider it a bug in Cargo if it's not handling it! If you see this happen feel free to ping me and I can try poking at it to see if I can zero in on what's happening.

@jdm
Copy link
Member Author

jdm commented May 11, 2017

It happens on every single travisci push for Servo...

@metajack
Copy link
Contributor

@jdm I cleared the caches and the build that was failing is not going fine. Or are you saying it reoccurs even if caches are cleared?

@jdm
Copy link
Member Author

jdm commented May 11, 2017

No, just clarifying how often is was occurring before clearing the caches.

@alexcrichton
Copy link
Contributor

Ok so sounds like it was definitely a corrupt repo somewhere. The error message came from here, bottoming out in a call to fetch.

This may be an error that Cargo can just recognize from that callsite, blowing away the git repo and falling back to a full clone. @jdm is there any way to inspect these repos manually?

@jdm
Copy link
Member Author

jdm commented May 11, 2017

https://gist.github.com/jedi4ever/7677d62f1414c28a1a8c might be a way to do it. We'll keep an eye out for it happening again in the future.

@jdm
Copy link
Member Author

jdm commented May 22, 2017

Looks like this might be happening in #16917 again (but for webrender).

bors-servo pushed a commit that referenced this issue May 29, 2017
Improve `clean-cargo-cache`

It won't delete pack files from `db` directory anymore, which cause #16787 and it will remove empty folders now.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17040)
<!-- Reviewable:end -->
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this issue May 30, 2017
…argo-cache); r=jdm

It won't delete pack files from `db` directory anymore, which cause servo/servo#16787 and it will remove empty folders now.

Source-Repo: https://github.com/servo/servo
Source-Revision: fecfd306c5e743a8fe8e558b1448e725e53cde7a

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : c772af762ddcab0e21c481a8189280c837c4d155
JerryShih pushed a commit to JerryShih/gecko-dev that referenced this issue May 30, 2017
…argo-cache); r=jdm

It won't delete pack files from `db` directory anymore, which cause servo/servo#16787 and it will remove empty folders now.

Source-Repo: https://github.com/servo/servo
Source-Revision: fecfd306c5e743a8fe8e558b1448e725e53cde7a
aethanyc pushed a commit to aethanyc/gecko-dev that referenced this issue May 30, 2017
…argo-cache); r=jdm

It won't delete pack files from `db` directory anymore, which cause servo/servo#16787 and it will remove empty folders now.

Source-Repo: https://github.com/servo/servo
Source-Revision: fecfd306c5e743a8fe8e558b1448e725e53cde7a
Manishearth pushed a commit to Manishearth/gecko-dev that referenced this issue Jun 11, 2017
…argo-cache); r=jdm

It won't delete pack files from `db` directory anymore, which cause servo/servo#16787 and it will remove empty folders now.

Source-Repo: https://github.com/servo/servo
Source-Revision: fecfd306c5e743a8fe8e558b1448e725e53cde7a
brendandahl pushed a commit to brendandahl/gecko that referenced this issue Jul 10, 2017
…argo-cache); r=jdm

It won't delete pack files from `db` directory anymore, which cause servo/servo#16787 and it will remove empty folders now.

Source-Repo: https://github.com/servo/servo
Source-Revision: fecfd306c5e743a8fe8e558b1448e725e53cde7a
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this issue Oct 1, 2019
…argo-cache); r=jdm

It won't delete pack files from `db` directory anymore, which cause servo/servo#16787 and it will remove empty folders now.

Source-Repo: https://github.com/servo/servo
Source-Revision: fecfd306c5e743a8fe8e558b1448e725e53cde7a

UltraBlame original commit: 8be1ec05e745ff5fe17f34cef8696f9f74b47bba
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this issue Oct 1, 2019
…argo-cache); r=jdm

It won't delete pack files from `db` directory anymore, which cause servo/servo#16787 and it will remove empty folders now.

Source-Repo: https://github.com/servo/servo
Source-Revision: fecfd306c5e743a8fe8e558b1448e725e53cde7a

UltraBlame original commit: 8be1ec05e745ff5fe17f34cef8696f9f74b47bba
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this issue Oct 1, 2019
…argo-cache); r=jdm

It won't delete pack files from `db` directory anymore, which cause servo/servo#16787 and it will remove empty folders now.

Source-Repo: https://github.com/servo/servo
Source-Revision: fecfd306c5e743a8fe8e558b1448e725e53cde7a

UltraBlame original commit: 8be1ec05e745ff5fe17f34cef8696f9f74b47bba
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

4 participants