Upload failing randomly during getOptions
See original GitHub issueMost of the time the upload task works fine, but occasionally it’ll fail with the following error :
[error] "2020-06-12T05:29:37.644Z" 'error from getOptions'
##[error]Error: Command failed: git cat-file -p 33288473e4a7b9bc7218c6bd08387c30cad92176
fatal: Not a valid object name 33288473e4a7b9bc7218c6bd08387c30cad92176
CI yaml in question : https://github.com/microsoft/azuredatastudio/blob/master/.github/workflows/ci.yml#L57
Failing run : https://github.com/microsoft/azuredatastudio/pull/10879/checks?check_run_id=764299238
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
java - Error when upload a photo tacken from the camera
( Android version 9 ) 2- when i upload a photo from the gallery the app works fine , but when I use...
Read more >"Upload Failed" randomly happens -- any cause?
I'm using Word 2013, writing normal documents with my browser and PowerPoint open. Every once in a while (at least once or twice...
Read more >Common errors on importing WooCommerce product images
Troubleshooting common errors on importing WooCommerce product images and their respective workarounds are explained in detail.
Read more >NetSuite Applications Suite - CSV Import Error Reporting
Uploading Data Using CSV in the Quality Management Tablet Interface ... Workflow Actions Did Not Execute Example · Workflow Fails Randomly ...
Read more >aria2c(1) — aria2 1.36.0 documentation
It supports downloading a file from HTTP(S)/FTP /SFTP and BitTorrent at the same time, while the data downloaded from HTTP(S)/FTP/SFTP is uploaded to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just documenting for posterity in case others are running into this. For me this was happening because the right ENV variables weren’t being set. There’s a bunch of remapping that happens inside Coveralls that made it confusing.
The fix was the following:
In short: Between the uploading of the PR and GitHub CI getting around to running it, there were about 3 hours during which
main
got 3 more commits. The GITHUB_SHA was set 3 hours before the run started and when the run did start, it checked out with the newermain
. So it failed becausemain
rolled forward while waiting for CI to begin.In order to run CI, GitHub attempted to create a merge branch between that one and the branch into which you are merging, which is called
main
in your repo. GitHub runs CI not on the copy that you upload but rather on the code that you upload after merging withmain
. So it created a merge commit for you. I can see theGITHUB_SHA
of it in the coveralls error message. It isaeddbe81c641cd03a55ac10a5f50987128d56666
. I can read more about the commit there:git fetch origin aeddbe81c641cd03a55ac10a5f50987128d56666 ; git checkout aeddbe81c641cd03a55ac10a5f50987128d56666 ; git show
Merge a3af28e325aa832cfb6d94c55a156b6c6c3e628c into 4322234d0b016b214bd768ce20d5599dc0153e99
The first SHA is the copyright fixes. The second one in the history of
main
, committed by alanren@. So that was the plan for the CI. If you look at Alan’s commit, the date is just a little before “copyright fixes”. So it makes sense.However, maybe the CI was very busy with other tasks and did get around to launch for you until later. The raw logs show that it only started at
2020-06-12T02:08:05.5905251Z
. But theGITHUB_SHA
’s date is:Thu Jun 11 23:12:42 2020 +0000
(check the log ofaeddbe81c641cd03a55ac10a5f50987128d56666
).So there were ~3 hours between the creation of the job and it’s actual run. During that time,
main
rolled forward toa7110d89160e25cf914030dd467f3d85c0292692
, which was the latestmain
at the time of github checkout,Thu Jun 11 17:54:30 2020 -0700
, by Benjin.So the timeline is:
main
at Alan’s commit. GITHUB_SHA is set.checkout@v1
pulls the latest GitHub merge from CI, which is Arvind’s copyright fix merged into Benjin’smain
.