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

workflows: Allow urls-check to write issues #20166

Merged
merged 2 commits into from
Mar 13, 2024
Merged

workflows: Allow urls-check to write issues #20166

merged 2 commits into from
Mar 13, 2024

Conversation

martinpitt
Copy link
Member

Commit bc7e2bf was wrong: This workflow only doesn't need any permissions if all URLs are valid. But if not, then it wants to update/create an issue to notify us about that.


Fixes this failure which started to happen 3 weeks ago.

Commit bc7e2bf was wrong: This workflow only doesn't need any
permissions if all URLs are valid. But if not, then it wants to
update/create an issue to notify us about that.
@martinpitt martinpitt added the no-test For doc/workflow changes, or experiments which don't need a full CI run, label Mar 13, 2024
@martinpitt
Copy link
Member Author

The manual run against this branch, and it passed again. It filed #20167

@martinpitt martinpitt added the .github-changes Set by a reviewer just before landing to acknowledge that a PR changes github workflows label Mar 13, 2024
This might tell us what's wrong about that dmtf.org URL when running in
GitHub (issue #20167).
@github-actions github-actions bot removed the .github-changes Set by a reviewer just before landing to acknowledge that a PR changes github workflows label Mar 13, 2024
@martinpitt
Copy link
Member Author

#20167 is bogus. I added another commit here to get some more data, and triggered another run

@martinpitt
Copy link
Member Author

martinpitt commented Mar 13, 2024

OK, that must have been a transient network issue then .. the last check was ok, see #20168. To test the second commit, I deliberately damaged that URL in the source (/sites/stes), and got:

Checking: https://www.dmtf.org/stes/default/files/standards/documents/DSP0134_2.7.1.pdf
Checked 177 URLs out of which 1 is/are invalid:
    https://www.dmtf.org/stes/default/files/standards/documents/DSP0134_2.7.1.pdf: 404 Not Found

@martinpitt martinpitt added the .github-changes Set by a reviewer just before landing to acknowledge that a PR changes github workflows label Mar 13, 2024
failed.append(url)
except urllib.error.URLError:
failed.append(url)
failed.append(f"{url} : {resp.getcode()} {resp.reason}")
Copy link
Member Author

Choose a reason for hiding this comment

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

As this looks a bit unusual/asymmetric, I tested this code path as well, by changing the 400 to 200, and then got:

Checked 177 URLs out of which 1 is/are invalid:
    https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_2.7.1.pdf: 200 OK

@martinpitt martinpitt merged commit 0c69347 into main Mar 13, 2024
26 of 34 checks passed
@martinpitt martinpitt deleted the fix-urls-check branch March 13, 2024 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
.github-changes Set by a reviewer just before landing to acknowledge that a PR changes github workflows no-test For doc/workflow changes, or experiments which don't need a full CI run,
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants