In a certain Flatpak repository PR, the CI check before merging into the master
branch gives the following error and CI fails.
I have looked into it and can’t find the cause. metainfo and desktop files have been modified in the PR, could there be a problem with the PR?
| Error: HTTP status client error (401 Unauthorized) for url (https://hub.flathub.org/api/v1/build/142003/extended)
|
| Stack backtrace:
| 0: anyhow::error::<impl core::convert::From<E> for anyhow::Error>::from
| 1: <flathub_hooks::config::RegularConfig as flathub_hooks::config::ValidateConfig>::get_build
| 2: flathub_hooks::review::do_review
| 3: flathub_hooks::main
| 4: std::sys_common::backtrace::__rust_begin_short_backtrace
| 5: std::rt::lang_start::{{closure}}
| 6: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once
| at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/core/src/ops/function.rs:284:13
| 7: std::panicking::try::do_call
| at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:504:40
| 8: std::panicking::try
| at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:468:19
| 9: std::panic::catch_unwind
| at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panic.rs:142:14
| 10: std::rt::lang_start_internal::{{closure}}
| at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/rt.rs:148:48
| 11: std::panicking::try::do_call
| at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:504:40
| 12: std::panicking::try
| at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:468:19
| 13: std::panic::catch_unwind
| at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panic.rs:142:14
| 14: std::rt::lang_start_internal
| at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/rt.rs:148:20
| 15: main
| 16: __libc_start_call_main
| at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
| 17: __libc_start_main_impl
| at ./csu/../csu/libc-start.c:392:3
| 18: _start
|
| Check status updated to Failed("Check command cd \"/tank/repo/builds/142003\" && FLAT_MANAGER_BUILD_ID=\"142003\" FLAT_MANAGER_JOB_ID=\"259169\" \"/usr/local/bin/flathub-hooks\" \"review\" \"-c\" \"/etc/flathub-hooks.json\" exited unsuccessfully: exit status: 1, stderr: [2024-11-04T13:51:44Z INFO flathub_hooks::utils] HTTP status client error (401 Unauthorized) for url (https://hub.flathub.org/api/v1/build/142003/extended)\n[2024-11-04T13:51:44Z INFO flathub_hooks::utils] Retrying (1/5) in 1 seconds...\n[2024-11-04T13:51:45Z INFO flathub_hooks::utils] HTTP status client error (401 Unauthorized) for url (https://hub.flathub.org/api/v1/build/142003/extended)\n[2024-11-04T13:51:45Z INFO flathub_hooks::utils] Retrying (2/5) in 2 seconds...\n[2024-11-04T13:51:47Z INFO flathub_hooks::utils] HTTP status client error (401 Unauthorized) for url (https://hub.flathub.org/api/v1/build/142003/extended)\n[2024-11-04T13:51:47Z INFO flathub_hooks::utils] Retrying (3/5) in 4 seconds...\n[2024-11-04T13:51:51Z INFO flathub_hooks::utils] HTTP status client error (401 Unauthorized) for url (https://hub.flathub.org/api/v1/build/142003/extended)\n[2024-11-04T13:51:51Z INFO flathub_hooks::utils] Retrying (4/5) in 8 seconds...\n[2024-11-04T13:51:59Z INFO flathub_hooks::utils] HTTP status client error (401 Unauthorized) for url (https://hub.flathub.org/api/v1/build/142003/extended)\n[2024-11-04T13:51:59Z INFO flathub_hooks::utils] Retrying (5/5) in 16 seconds...\n[2024-11-04T13:52:15Z INFO flathub_hooks::utils] HTTP status client error (401 Unauthorized) for url (https://hub.flathub.org/api/v1/build/142003/extended)\nError: HTTP status client error (401 Unauthorized) for url (https://hub.flathub.org/api/v1/build/142003/extended)\n\nStack backtrace:\n 0: anyhow::error::<impl core::convert::From<E> for anyhow::Error>::from\n 1: <flathub_hooks::config::RegularConfig as flathub_hooks::config::ValidateConfig>::get_build\n 2: flathub_hooks::review::do_review\n 3: flathub_hooks::main\n 4: std::sys_common::backtrace::__rust_begin_short_backtrace\n 5: std::rt::lang_start::{{closure}}\n 6: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once\n at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/core/src/ops/function.rs:284:13\n 7: std::panicking::try::do_call\n at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:504:40\n 8: std::panicking::try\n at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:468:19\n 9: std::panic::catch_unwind\n at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panic.rs:142:14\n 10: std::rt::lang_start_internal::{{closure}}\n at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/rt.rs:148:48\n 11: std::panicking::try::do_call\n at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:504:40\n 12: std::panicking::try\n at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:468:19\n 13: std::panic::catch_unwind\n at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panic.rs:142:14\n 14: std::rt::lang_start_internal\n at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/rt.rs:148:20\n 15: main\n 16: __libc_start_call_main\n at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16\n 17: __libc_start_main_impl\n at ./csu/../csu/libc-start.c:392:3\n 18: _start\n")
\ Job completed successfully
\ Check flathub-hooks has failed
Job failed: {'check_name': 'flathub-hooks', 'build_id': 142003, 'job_id': 259169, 'status': 3, 'status_reason': 'Check command cd "/tank/repo/builds/142003" && FLAT_MANAGER_BUILD_ID="142003" FLAT_MANAGER_JOB_ID="259169" "/usr/local/bin/flathub-hooks" "review" "-c" "/etc/flathub-hooks.json" exited unsuccessfully: exit status: 1, stderr: [2024-11-04T13:51:44Z INFO flathub_hooks::utils] HTTP status client error (401 Unauthorized) for url (https://hub.flathub.org/api/v1/build/142003/extended)\n[2024-11-04T13:51:44Z INFO flathub_hooks::utils] Retrying (1/5) in 1 seconds...\n[2024-11-04T13:51:45Z INFO flathub_hooks::utils] HTTP status client error (401 Unauthorized) for url (https://hub.flathub.org/api/v1/build/142003/extended)\n[2024-11-04T13:51:45Z INFO flathub_hooks::utils] Retrying (2/5) in 2 seconds...\n[2024-11-04T13:51:47Z INFO flathub_hooks::utils] HTTP status client error (401 Unauthorized) for url (https://hub.flathub.org/api/v1/build/142003/extended)\n[2024-11-04T13:51:47Z INFO flathub_hooks::utils] Retrying (3/5) in 4 seconds...\n[2024-11-04T13:51:51Z INFO flathub_hooks::utils] HTTP status client error (401 Unauthorized) for url (https://hub.flathub.org/api/v1/build/142003/extended)\n[2024-11-04T13:51:51Z INFO flathub_hooks::utils] Retrying (4/5) in 8 seconds...\n[2024-11-04T13:51:59Z INFO flathub_hooks::utils] HTTP status client error (401 Unauthorized) for url (https://hub.flathub.org/api/v1/build/142003/extended)\n[2024-11-04T13:51:59Z INFO flathub_hooks::utils] Retrying (5/5) in 16 seconds...\n[2024-11-04T13:52:15Z INFO flathub_hooks::utils] HTTP status client error (401 Unauthorized) for url (https://hub.flathub.org/api/v1/build/142003/extended)\nError: HTTP status client error (401 Unauthorized) for url (https://hub.flathub.org/api/v1/build/142003/extended)\n\nStack backtrace:\n 0: anyhow::error::<impl core::convert::From<E> for anyhow::Error>::from\n 1: <flathub_hooks::config::RegularConfig as flathub_hooks::config::ValidateConfig>::get_build\n 2: flathub_hooks::review::do_review\n 3: flathub_hooks::main\n 4: std::sys_common::backtrace::__rust_begin_short_backtrace\n 5: std::rt::lang_start::{{closure}}\n 6: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once\n at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/core/src/ops/function.rs:284:13\n 7: std::panicking::try::do_call\n at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:504:40\n 8: std::panicking::try\n at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:468:19\n 9: std::panic::catch_unwind\n at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panic.rs:142:14\n 10: std::rt::lang_start_internal::{{closure}}\n at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/rt.rs:148:48\n 11: std::panicking::try::do_call\n at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:504:40\n 12: std::panicking::try\n at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:468:19\n 13: std::panic::catch_unwind\n at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panic.rs:142:14\n 14: std::rt::lang_start_internal\n at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/rt.rs:148:20\n 15: main\n 16: __libc_start_call_main\n at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16\n 17: __libc_start_main_impl\n at ./csu/../csu/libc-start.c:392:3\n 18: _start\n', 'results': None}
program finished with exit code 1
elapsedTime=72.885543