6 Commits
Author SHA1 Message Date
Samuel Dionne-Riel 2533d06c90 ci: Always add build jobs, but disable by default
This sounds counter-productive and counter-intuitive, but hear me out:
this allows using `needs` to depend on those jobs, without further
templating downstream jobs.

In turn, those jobs depending on a disabled jobs, while they still exist
in the “graph” of the pipeline, are also transitively disabled.

This change, for all intents and purpose, is a no-op regarding the
amounts of jobs being sent to CI runners.

Also updates the comment for the placeholder job, since the wording
could lead to think that *having jobs* is sufficient. In reality, having
jobs that ran succesfully is necessary for the child pipeline to be
successful.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6399
2025-05-13 09:34:45 -07:00
Samuel Dionne-Riel be29aa00d7 main/postmarketos-mkinitfs-hook-ci: Print markers many times
This helps ensure the logs are actually flushed.

The numbers chosen are relatively arbitrary, and it might be that using
a longer delay, maybe with more messages too, is desirable.

Right now, it's printing 20 times over a span of 2 seconds.

The whole `precision` schtick is how we can approximate float division,
when using only integer division. Then, the important trick is to shove
the given number back into the correct representation for `sleep`, and
careful `printf` application gives us exactly what we need.

Signed-off-by: Samuel Dionne-Riel <samuel@dionne-riel.com>
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6335
[ci:skip-build]: already built successfully in CI
2025-05-05 21:01:29 +02:00
Samuel Dionne-Riel a3155b8985 main/postmarketos-mkinitfs-hook-ci: Add message about re-enabling kernel logs
This is not needed, but better mirrors the other call.

Signed-off-by: Samuel Dionne-Riel <samuel@dionne-riel.com>
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6335
2025-05-05 21:00:50 +02:00
Samuel Dionne-Riel c8b513cc6e main/postmarketos-mkinitfs-hook-ci: Handle shellcheck checks
- Point shellcheck to the files this is sourcing
 - Tell it about the shell in use
 - Drop unused variable (grepped around)

The last change is about how the hooks are ran. The warning shellcheck
was giving was that using `if <command...>; then ...; fi` is preferred,
instead of comparing `$?`.

This is exactly what is now being done, so the branches have been
swapped around, and the command (full path to a hook) is being used
within the if condition.

Signed-off-by: Samuel Dionne-Riel <samuel@dionne-riel.com>
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6335
2025-05-05 21:00:50 +02:00
Samuel Dionne-Riel 1463902dac CI: Remove vestigial shell function wrapper
This shell function exists only within the scope of the shell. The
python script is entirely unaware of it.

(Introduced in da52dace85).

Signed-off-by: Samuel Dionne-Riel <samuel@dionne-riel.com>
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6330
[ci:skip-build]: already built successfully in CI
2025-03-19 15:59:43 +01:00
Samuel Dionne-Riel ad750c6e0d Adds asus-z00t device. (#1552) 2018-06-12 18:58:29 +00:00