-
Notifications
You must be signed in to change notification settings - Fork 903
Implement manpage checker in CI #1374
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
Conversation
0048b26 to
8143d10
Compare
| **--cert-dir** _path_ Use certificates at _path_ (*.crt, *.cert, *.key) to connect to the registry. | ||
| **--help**, **-h** | ||
|
|
||
| **--tls-verify** _bool-value_ Require HTTPS and verify certificates when talking to container registries (defaults to true). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to make sure this isn’t lost, there’s been a fairly long discussion / research around the --tls-verify flag, #1350 (comment) .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oof, yeah, "long" is right. Would you mind opening an issue about it? I feel that might be a better way to ensure the discussion isn't lost, since addressing it in this (or that #1350) PR seems onerous.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The thing is, this PR is mostly blocked on that discussion — without fixing --help, enforcing correspondence between --help and man pages would make the state of documentation worse.
But contrary to the bleak mood of most of that discussion, there might be a fairly clean way forward now: #1369 . It definitely needs an independent review, but looks promising.
ebcda72 to
4cd39c1
Compare
4cd39c1 to
f115516
Compare
|
DO NOT MERGE: Holding for #1375 |
I'm hoping that's just some kind of flake (I already re-ran it once). Is "update" and "upgrade" the same thing? |
|
|
|
Hmmm, so it sounds like we should do an |
I think ideally we should do neither: the images we deploy should be frequently refreshed with the latest Homebrew, and we would just do
No idea. As a very wild guess this just looks like an infrastructure issue, either at the Homebrew’s sponsor that provides hosting for downloads, or within the current Cirrus image, and especially if it’s the latter it might be one that isn’t encountered frequently enough to be handled quite correctly. Checking reports in https://github.com/homebrew/ might be informative, but it’s too late for me today. |
For Mac, this is somewhat out of our control as the images are managed by Cirrus (I believe they're rebuilt/refreshed at some interval). Same story for Windows. The only viable alternatives for automated Mac testing involve either less control and added code duplication (github actions) or TONs more scripting and plumbing work (Cirrus + paid MacStadium account). Basically...it would be better for humanity if Apple behaved more like Linux 😁
Travis routinely was taking an hour to start running a 5-minute job, as well as severely limiting the total minutes-quota available for FOSS projects to use. So it's not really a choice to leave for something else, we really needed to drop Travis to avoid severe impacts to development.
This was the case, I re-ran the job today and it passed. Still, it's concerning that (the tool) doesn't throw a non-zero exit on a fatal error. It's possible, thought I highly doubt Cirrus-CI is not setting +e for the shell (they're pretty careful about that stuff elsewhere). |
f115516 to
16232b7
Compare
|
(rebase) |
|
I was absolutely not suggesting this as a reason to return to Travis; I just wanted to point at the Lines 62 to 66 in 146af8c
It’s was not immediately clear to me (OTOH I hadn’t looked into the history at all deeply when writing my previous comment) whether the Cirrus version was doing |
No worries, at least we can rely on git/github to keep a record of stuff of our failing memories 😁 |
This is the script that runs 'skopeo COMMAND --help' and cross-checks that all the option flags are documented in man pages, and vice-versa (all options listed in man pages appear in COMMAND's --help message). Copied from podman, with changes for skopeo-land (removing the rst checks, and conforming to skopeo conventions). Signed-off-by: Ed Santiago <santiago@redhat.com>
16232b7 to
e2aefcf
Compare
|
I believe this is ready to go. @edsantiago and @mtrmac PTAL. |
|
note-to-self: Need to copy-paste the |
mtrmac
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CI automation part looks plausible to me, but I only very minimally understand it and I’ll happily defer to experts.
What about the --tls-verify part, #1374 (comment) ?
@edsantiago Could you see whether there are any obvious holes in #1369 that I might have missed, please? You probably understand the gotchas of Cobra better than I do.
(If that plan works, I’d be perfectly fine with merging this PR first, and taking on the work to actually update man pages in the other PR myself.)
Signed-off-by: Chris Evich <cevich@redhat.com>
e2aefcf to
02bacf5
Compare
My overarching goal is for it to be at least somewhat approachable for everyone. I'm not always around to fix/maintain things and am deliberately attempting to not be a bottleneck. I realized that automation is somewhat of a niche specialization, but if I can help make it any clearer with comments or different names or links to docs or anything, please let me know. |
There's no bot setup here. |
It was removed in containers/skopeo#1374 . Signed-off-by: Miloslav Trmač <mitr@redhat.com>
No worries; I feel reasonably confident in making targeted small changes, it’s primarily an “I don’t know what I don’t know” worry. |
Taking over #1350