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

Add a comment for disabling errexit, try to debug appveyor cache #41157

Merged
merged 1 commit into from
Apr 17, 2017

Conversation

aidanhs
Copy link
Member

@aidanhs aidanhs commented Apr 8, 2017

Comments added as requested.

Also, lets add some cache debugging to appveyor. I think this is how to ignore errors in cmd.exe (and I did try it on my own machine), but I'm not 100% sure how appveyor runs them. In the worst case it'll fail but I guess that isn't the end of the world since the build has already failed by this point.

r? @TimNN

@aidanhs aidanhs changed the title Add an comment for disabling errexit, try to debug appveyor cache Add a comment for disabling errexit, try to debug appveyor cache Apr 8, 2017
@@ -41,6 +41,8 @@ if [ ! -f "$cache_valid_file" ]; then
rm -rf "$CACHE_DIR"
mkdir "$CACHE_DIR"
else
# Ignore errors while gathering information about the possible brokenness
# of the git repo since our gathered info will well us something is wrong
Copy link
Contributor

Choose a reason for hiding this comment

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

s/well/tell/

appveyor.yml Outdated
- cat %CD%\sccache.log
- cat C:\Users\appveyor\AppData\Local\Temp\1\build-cache-logs\*.log
- cat %CD%\sccache.log || exit 0
- cat C:\Users\appveyor\AppData\Local\Temp\1\build-cache-logs\*.log || exit 0
Copy link
Contributor

@TimNN TimNN Apr 8, 2017

Choose a reason for hiding this comment

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

Is this cat even useful here? Since the build itself may succeed, it's probably rarely execute.

Copy link
Member Author

Choose a reason for hiding this comment

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

To be honest I'm relying on the ar.exe errors to let me read this log (if it rarely executes because the ar.exe errors vanish, I wouldn't see that as the end of the world!). I'll probably remove it again once it's all fixed.

Copy link
Member Author

Choose a reason for hiding this comment

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

In fact, I'll move it elsewhere and then we can just try it rather than merging.

@aidanhs aidanhs force-pushed the aphs-debug-appveyor-cache branch 2 times, most recently from 40c2bb2 to 66ccc6f Compare April 8, 2017 21:38
@aidanhs
Copy link
Member Author

aidanhs commented Apr 8, 2017

@TimNN ok, think this is ready for a try (not an r+!) and should be pretty quick to run.

@TimNN
Copy link
Contributor

TimNN commented Apr 9, 2017

Unfortunately try doesn't work for rust-lang/rust :(

Could you just add an exit 1 or something to the appveyor script?

@aidanhs aidanhs force-pushed the aphs-debug-appveyor-cache branch 2 times, most recently from 1dce93d to c26c259 Compare April 9, 2017 23:04
@aidanhs
Copy link
Member Author

aidanhs commented Apr 9, 2017

@TimNN pushed a deliberate error to both travis and appveyor so this doesn't consume too much CPU time. I assume it's possible to r+ even if the travis PR test has failed?

@TimNN
Copy link
Contributor

TimNN commented Apr 10, 2017

@bors r+

Lets see how this goes.

@bors
Copy link
Contributor

bors commented Apr 10, 2017

📌 Commit c26c259 has been approved by TimNN

@bors
Copy link
Contributor

bors commented Apr 10, 2017

⌛ Testing commit c26c259 with merge 37aa503...

@bors
Copy link
Contributor

bors commented Apr 10, 2017

💔 Test failed - status-appveyor

@TimNN
Copy link
Contributor

TimNN commented Apr 10, 2017

@bors r-

cat C:\Users\appveyor\AppData\Local\Temp\1\build-cache-logs\*.log
*.log: 'C:\Users\appveyor\AppData\Local\Temp\1\build-cache-logs\*.log': No such file or directory

@aidanhs aidanhs force-pushed the aphs-debug-appveyor-cache branch from c26c259 to 2b0652c Compare April 10, 2017 10:49
@aidanhs
Copy link
Member Author

aidanhs commented Apr 10, 2017

Oh the joys of globs in cmd.exe. I've now wrapped it in bash instead.

@TimNN
Copy link
Contributor

TimNN commented Apr 10, 2017

@bors r+

@bors
Copy link
Contributor

bors commented Apr 10, 2017

📌 Commit 2b0652c has been approved by TimNN

@bors
Copy link
Contributor

bors commented Apr 10, 2017

⌛ Testing commit 2b0652c with merge 1e1071e...

@bors
Copy link
Contributor

bors commented Apr 10, 2017

💔 Test failed - status-appveyor

@aidanhs
Copy link
Member Author

aidanhs commented Apr 10, 2017

sh -c "cat /c/Users/appveyor/AppData/Local/Temp/1/build-cache-logs/*.log"
7-Zip [64] 16.04 : Copyright (c) 1999-2016 Igor Pavlov : 2016-10-04
Scanning the drive for archives:
1 file, 382926848 bytes (366 MiB)
Extracting archive: C:\Users\appveyor\AppData\Local\Temp\1\zqpkxdjw.sh4\611919de52bbda249e7468a0750b9e479f441c99.zip.001
--
Path = C:\Users\appveyor\AppData\Local\Temp\1\zqpkxdjw.sh4\611919de52bbda249e7468a0750b9e479f441c99.zip.001
Type = Split
Physical Size = 382926848
Volumes = 1
Total Physical Size = 382926848
----
Path = 611919de52bbda249e7468a0750b9e479f441c99.zip
Size = 382926848
--
Path = 611919de52bbda249e7468a0750b9e479f441c99.zip
Type = zip
ERRORS:
Unexpected end of archive
Physical Size = 647658498
Sub items Errors: 1
Archives with Errors: 1
Open Errors: 1
Sub items Errors: 1
611919de52bbda249e7468a0750b9e479f441c99.zip
ERRORS:
Unexpected end of archive
ERROR: Data Error : rustsrc\src\.git\modules\src\llvm\objects\pack\pack-318fb7026aaf070bb3b02502225d3fb47679a2e7.pack

Well that's disturbing. Maybe I'd better ask the appveyor people about this.

@aidanhs aidanhs force-pushed the aphs-debug-appveyor-cache branch from 2b0652c to bb84358 Compare April 14, 2017 14:30
@aidanhs
Copy link
Member Author

aidanhs commented Apr 14, 2017

@TimNN I've done my debugging, so for now I've updated this PR with the comment and a removal of a useless cat (since the glob doesn't apply). The || exit 0 has been added as a hint for future contributors so that they will actually be able to see their own on-failure command, rather than it bailing out if there are no sccache logs.

@shepmaster shepmaster added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 14, 2017
@TimNN
Copy link
Contributor

TimNN commented Apr 16, 2017

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Apr 16, 2017

📌 Commit bb84358 has been approved by TimNN

@TimNN TimNN added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 16, 2017
frewsxcv added a commit to frewsxcv/rust that referenced this pull request Apr 16, 2017
…r=TimNN

Add a comment for disabling errexit, try to debug appveyor cache

Comments added as requested.

Also, lets add some cache debugging to appveyor. I *think* this is how to ignore errors in cmd.exe (and I did try it on my own machine), but I'm not 100% sure how appveyor runs them. In the worst case it'll fail but I guess that isn't the end of the world since the build has already failed by this point.

r? @TimNN
@bors
Copy link
Contributor

bors commented Apr 16, 2017

⌛ Testing commit bb84358 with merge 5997806...

bors added a commit that referenced this pull request Apr 16, 2017
Add a comment for disabling errexit, try to debug appveyor cache

Comments added as requested.

Also, lets add some cache debugging to appveyor. I *think* this is how to ignore errors in cmd.exe (and I did try it on my own machine), but I'm not 100% sure how appveyor runs them. In the worst case it'll fail but I guess that isn't the end of the world since the build has already failed by this point.

r? @TimNN
@bors
Copy link
Contributor

bors commented Apr 17, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: TimNN
Pushing 5997806 to master...

@bors bors merged commit bb84358 into rust-lang:master Apr 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants