Flatpak rutime pipeline fail to publish
Background
The pipeline for apertis-flatpak-runtime fail at publish stage with
INFO:otpush.push:Connected local HTTP port 42217 to remote port 45801
INFO:otpush.receive:Remote commits:
INFO:otpush.receive: app/org.apertis.headless.curl/aarch64/v2024 0cbf57babe469eebbc7de09834163d22645f1fdaf57945ec9820aefaca043d17
INFO:otpush.receive: runtime/org.apertis.headless.curl.Sources/aarch64/v2024 dcdd88012041e7cd29e8dbfccb045056c891bf91a45655a10bfbde641c60b08b
INFO:otpush.receive:Current commits:
INFO:otpush.receive: app/org.apertis.headless.curl/aarch64/v2024 70c8d29dff1666a76669f8f96098dc730e7fd267001266693403bc5441166d85
INFO:otpush.receive: runtime/org.apertis.headless.curl.Sources/aarch64/v2024 1a009fb19033ffbbd78c5989f9bd2de9ed71207da72070afcb0e887a89178084
10 metadata, 2 content objects fetched; 6 KiB transferred in 0 seconds
INFO:otpush.receive:Updating repo metadata with flatpak build-update-repo /srv/images/public/flatpak/repo --sign-type=ed25519 --sign=<key #1 from /srv/images/conf/apertis-flatpak-sign-key>
error: Unknown option --sign-type=ed25519
Traceback (most recent call last):
File "/usr/bin/ostree-receive-1", line 33, in <module>
sys.exit(load_entry_point('ostree-push==1.0.1', 'console_scripts', 'ostree-receive-1')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/otpush/receive.py", line 729, in main
repo.receive(args.refs)
File "/usr/lib/python3/dist-packages/otpush/receive.py", line 678, in receive
self.update_repo_metadata()
File "/usr/lib/python3/dist-packages/otpush/receive.py", line 542, in update_repo_metadata
subprocess.check_call(cmd_prefix + sign_opts)
File "/usr/lib/python3.11/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['flatpak', 'build-update-repo', '/srv/images/public/flatpak/repo', '--sign-type=ed25519', '--sign=[MASKED]']' returned non-zero exit status 1.
Traceback (most recent call last):
File "/usr/bin/ostree-push", line 33, in <module>
sys.exit(load_entry_point('ostree-push==1.0.1', 'console_scripts', 'ostree-push')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/otpush/push.py", line 549, in main
push_refs(repo, args.dest, refs=args.refs,
File "/usr/lib/python3/dist-packages/otpush/push.py", line 376, in push_refs
ssh.run(cmd)
File "/usr/lib/python3/dist-packages/otpush/push.py", line 299, in run
return subprocess.run(run_cmd, check=check, **subprocess_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ssh', '-S', '/scratch/ostree-push-lm_nl5_i/socket', '-o', 'SetEnv=OSTREE_RECEIVE_CONF=/srv/images/conf/apertis-flatpak.conf', 'images.apertis.org', '/usr/bin/ostree-receive-1', '/srv/images/public/flatpak/repo', 'http://127.0.0.1:45801', 'runtime/org.apertis.headless.curl.Sources/aarch64/v2024', 'app/org.apertis.headless.curl/aarch64/v2024']' returned non-zero exit status 1.
section_end:1716261464:step_script
https://gitlab.apertis.org/infrastructure/apertis-flatpak-runtime/-/jobs/3202075
The error seems to be related to error: Unknown option --sign-type=ed25519
After retrying the pipeline success, but this is likely because it does not bother to push things
Reproducibility
How often the issue is hit when repeating the steps to reproduce and changing nothing?
Put the
-
✅ always - often, but not always
- rarely
Impact of bug
Flatpak runtime are not able to be published
Outcomes
TBD
Management data
This section is for management only, it should be the last one in the description.
/cc @andrunko @em @Balasubramanian @sudarshan @wlozano
Phabricator link: https://phabricator.apertis.org/T10513
Edited by Apertis CI robot