Skip to content

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

Merged
bors merged 1 commit into
rust-lang:masterfrom
aidanhs:aphs-debug-appveyor-cache
Apr 17, 2017
Merged

Add a comment for disabling errexit, try to debug appveyor cache#41157
bors merged 1 commit into
rust-lang:masterfrom
aidanhs:aphs-debug-appveyor-cache

Conversation

@aidanhs

@aidanhs aidanhs commented Apr 8, 2017

Copy link
Copy Markdown
Contributor

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
Comment thread src/ci/init_repo.sh Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

s/well/tell/

Comment thread appveyor.yml Outdated

@TimNN TimNN Apr 8, 2017

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor 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
Copy Markdown
Contributor 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

aidanhs commented Apr 8, 2017

Copy link
Copy Markdown
Contributor Author

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

@TimNN

TimNN commented Apr 9, 2017

Copy link
Copy Markdown
Contributor

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

aidanhs commented Apr 9, 2017

Copy link
Copy Markdown
Contributor Author

@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

TimNN commented Apr 10, 2017

Copy link
Copy Markdown
Contributor

@bors r+

Lets see how this goes.

@bors

bors commented Apr 10, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit c26c259 has been approved by TimNN

@bors

bors commented Apr 10, 2017

Copy link
Copy Markdown
Collaborator

⌛ Testing commit c26c259 with merge 37aa503...

@bors

bors commented Apr 10, 2017

Copy link
Copy Markdown
Collaborator

💔 Test failed - status-appveyor

@TimNN

TimNN commented Apr 10, 2017

Copy link
Copy Markdown
Contributor

@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

aidanhs commented Apr 10, 2017

Copy link
Copy Markdown
Contributor Author

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

@TimNN

TimNN commented Apr 10, 2017

Copy link
Copy Markdown
Contributor

@bors r+

@bors

bors commented Apr 10, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit 2b0652c has been approved by TimNN

@bors

bors commented Apr 10, 2017

Copy link
Copy Markdown
Collaborator

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

@bors

bors commented Apr 10, 2017

Copy link
Copy Markdown
Collaborator

💔 Test failed - status-appveyor

@aidanhs

aidanhs commented Apr 10, 2017

Copy link
Copy Markdown
Contributor Author
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

aidanhs commented Apr 14, 2017

Copy link
Copy Markdown
Contributor Author

@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

TimNN commented Apr 16, 2017

Copy link
Copy Markdown
Contributor

@bors r+ rollup

@bors

bors commented Apr 16, 2017

Copy link
Copy Markdown
Collaborator

📌 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

bors commented Apr 16, 2017

Copy link
Copy Markdown
Collaborator

⌛ 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

bors commented Apr 17, 2017

Copy link
Copy Markdown
Collaborator

☀️ 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