libelektra icon indicating copy to clipboard operation
libelektra copied to clipboard

Uninstall: target fails without failed CI runs

Open mpranj opened this issue 4 years ago • 3 comments

I noticed on cirrus (🍎 FULL), that the uninstall tests are failing without the build to fail/turn red.

See build log here, "Run tests" section.

I don't know since when this is happening.

mpranj avatar Apr 14 '21 15:04 mpranj

Thank you so much for reporting this! It is important that we have a look if our tests are actually testing what we think they do.

markus2330 avatar Apr 30 '21 18:04 markus2330

I mark this issue stale as it did not have any activity for one year. I'll close it in two weeks if no further activity occurs. If you want it to be alive again, ping the issue by writing a message here or create a new issue with the remainder of this issue. Thank you for your contributions :sparkling_heart:

stale[bot] avatar Sep 21 '22 01:09 stale[bot]

@mpranj Is this still happening?

kodebach avatar Sep 21 '22 17:09 kodebach

Yes, it is.

mpranj avatar Sep 25 '22 17:09 mpranj

Based on the way the uninstall command is written in .cirrus.yml, it will never fail.

https://github.com/ElektraInitiative/libelektra/blob/5ebc9a4ba5215950f990f7dca948ce310f764079/.cirrus.yml#L202

The command basically says: Run the cmake command and only if it fails, print the output. But that also means this build step only fails, if printf fails.

What we want is probably something like:

output="$(cmake --build "$BUILD_DIR" --target uninstall 2>&1)"; ret=$?; if [ $ret != 0 ]; then printf '%s' "$output"; exit $ret; fi

But I'd just go with the much simpler:

cmake --build "$BUILD_DIR" --target uninstall 2>&1

Because it doesn't really matter, if the CI jobs produces some unless output

kodebach avatar Sep 25 '22 18:09 kodebach

I mark this stale as it did not have any activity for one year. I'll close it in two weeks if no further activity occurs. If you want it to be alive again, ping by writing a message here or create a new issue with the remainder of this issue. Thank you for your contributions :sparkling_heart:

github-actions[bot] avatar Sep 29 '23 01:09 github-actions[bot]

I closed this now because it has been inactive for more than one year. If I closed it by mistake, please do not hesitate to reopen it or create a new issue with the remainder of this issue. Thank you for your contributions :sparkling_heart:

github-actions[bot] avatar Jan 08 '24 01:01 github-actions[bot]