Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] Move step to get workflow job id before test step in linux (pyto…
…rch#111483) We’ve been strugging to get the job id since 9/28/2023 12:03 pm. Before this we had almost 0 problems getting job id, but after, we get a lot of `Recieved status code '502' when attempting to retrieve https://api.github.com/repos/pytorch/pytorch/actions/runs/6551579728/jobs?per_page=100:\n", 'Bad Gateway\n\nheaders=Server: GitHub.com\nDate: Tue, 17 Oct 2023 20:32:52 GMT\nContent-Type: application/json\nContent-Length: 32\nETag: "652eed15-20"\nVary: Accept-Encoding, Accept, X-Requested-With\nX-GitHub-Request-Id: EC62:7EE0:166AAF5:2D51A8E:652EEF6A\nconnection: close\n\n` ex https://github.com/pytorch/pytorch/actions/runs/6551579728/job/17793898278#step:18:22 Recently, it has been happening around 1/4 of the time, possibly more. I think this happens almost only on linux. I believe this is somehow caused by a test, since distributed tests seems to be disproportionately affected, so I move the step to get the job id before the test step. This also has the benefit of the test step being able to get the job id now if we want it. Regardless of whether this works or not, its a pretty harmless change that might make things easier in the future. Pull Request resolved: pytorch#111483 Approved by: https://github.com/huydhn
- Loading branch information