From Mageia wiki
Jump to: navigation, search


Summary

Add a command to mgarepo to cancel job submitted to our build system.

Owner

  • Name: Papoteur
  • Email: papoteur at mageia dot org

Resources

Developper for mgarepo (python) Web developper for https://pkgsubmit.mageia.org

Current status

  • Targeted release: Mageia 10
  • Last updated: 2023/12/30
  • Percentage of completion: 0%

Detailed Description

When a build is submitted, the submitter has at the moment no means to stop the build when it knows that it is erroneous (bad destination, further check...)

Pterjan said: "It is easy to do as iurt supports cancelling a build (and does so for other architectures when one fails) but we don't have web authentication so we can't just have a button.

We could probably add some support to mgarepo to ssh and run the right command (which would check that you are the submitter or in sysadmin group) but the main problem is probably to identify the specific build to cancel. I guess we could have a button in the UI giving you a command to paste like "mgarepo cancel cauldron/core/release/20231231235959.pterjan.duvel.424242".

Thus we can add a line in the Build system status page to get the command to execute, then the submitter copies it and executes. The build system checks that the command is from the submitter.

Why it would be good for Mageia to use it

Test case

Cancel a job

Tasks

  • Add the command in mgarepo
  • Add the displaying of the link in page https://pkgsubmit.mageia.org
  • Check that youri (or koji) check authorization and executes the cancellation.

Software / Packages Dependencies

  • mgarepo

What could disrupt development of this new feature

Security that the cancellation comes from the submitter

Planning

Contingency

All parts have to be ready

Release Notes

Not applicable.

Documentation

Packager comments