Skip to content

ci: fix test (check) flake caused by older md2man#1987

Open
kolyshkin wants to merge 2 commits intocontainers:mainfrom
kolyshkin:md2man
Open

ci: fix test (check) flake caused by older md2man#1987
kolyshkin wants to merge 2 commits intocontainers:mainfrom
kolyshkin:md2man

Conversation

@kolyshkin
Copy link
Collaborator

Sometimes (but not always) make wants to re-generate the man pages
in CI while the sources haven't changed in fact. Sometimes the man
pages are actually changed, so CI needs to check if the generated
man pages is updated accordingly.

Either way, it fails because Ubuntu has an older version of go-md2man.

This is not easy to fix in a decent manner but the not-so-decent is
to install the latest md2man from source, this is what this patch does.

(the decent way would be to run man page generation in a fedora container, I guess, but it seems like too much)

Sometimes (but not always) make wants to re-generate the man pages
in CI while the sources haven't changed in fact. Sometimes the man
pages are actually changed, so CI needs to check if the generated
man pages is updated accordingly.

Either way, it fails because Ubuntu has an older version of go-md2man.

This is not easy to fix in a decent manner but the not-so-decent is
to install the latest md2man from source, this is what this patch does.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
It allows the test to exit with an error in case there are changes.

The command right after should do the same but maybe it has some extra
checks, so I'm not removing it.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@gemini-code-assist
Copy link

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

@kolyshkin
Copy link
Collaborator Author

@packit-as-a-service
Copy link

Ephemeral COPR build failed. @containers/packit-build please check.

@packit-as-a-service
Copy link

TMT tests failed. @containers/packit-build please check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant