Sanne Raymaekers
7f2766793d
templates/composer: bump rhel-9 distro alias
...
RHEL 9.5 is now GA.
2024-11-26 11:25:33 +01:00
Michael Vogt
bc7b8355bf
worker: report cashes directly to logrus
...
This is a bit of an RFC commit, I noticed that when we discussed
a crash from the worker we looked at individual message from
syslog/journald for the stacktrace deatils. I was wondering if
having a more direct crash report would be more useful? We can
of course also add more logrus features to flag those with tags
like "crash" or something (I did not do that in this PR, I don't
know much about the operational side, sorry).
2024-11-25 12:02:05 +01:00
Sanne Raymaekers
27e9e22639
Schutzfile: update osbuild commit
...
Newer osbuild uses dnf 4 on Fedora 41, as we've seen Fedora 41 in
combination with dnf 5 (and SBOMs) failing.
2024-11-22 16:39:52 +01:00
Florian Schüller
446e8448e3
awscloud/secure-instance: retry for 10 minutes
...
retry for 10 x 60sec. and don't log retries twice
2024-11-22 12:19:32 +01:00
Florian Schüller
4ec8894244
awscloud/secure-instance: retry on error in terminated waiter
...
terminated waiter sometimes responded
with "waiter state transitioned to Failure"
where we want to retry waiting for the termination
2024-11-22 12:19:32 +01:00
Sanne Raymaekers
3a6a8813a5
test/cases/api/azure: use v2 HyperV generation
2024-11-21 11:22:20 +01:00
Sanne Raymaekers
8fd36225be
cloudapi/v2: support HyperV generation in Azure upload options
2024-11-21 11:22:20 +01:00
Sanne Raymaekers
f672610509
cmd/osbuild-worker: specify hyper v gen for azure images
2024-11-21 11:22:20 +01:00
Sanne Raymaekers
fb3e1b0701
internal/upload/azure: support different hyper v generations
...
When registering an image, users should be able to choose their hyper V
gen, as gen1 is quite outdated by now.
2024-11-21 11:22:20 +01:00
Sanne Raymaekers
d2f50a4224
internal/target: add Azure image HyperV generation
2024-11-21 11:22:20 +01:00
Yi He
867ff9c06e
ci: change to rhel 9.6
2024-11-21 08:14:22 +01:00
Tom Koscielniak
d8295ea2ea
Test with rhel-9.6 nightly
2024-11-21 08:14:22 +01:00
Lukas Zapletal
ff2660ef00
deps: update images to 0.99
2024-11-20 12:24:49 +01:00
Florian Schüller
b5c71cd7e2
awscloud/secure-instance: enrich logging with secure instance id
...
we'll log as direct URL to the console for easier tracing
2024-11-19 17:26:23 +01:00
Florian Schüller
992f876da0
cloudapi/v2/server: rephrase error message
2024-11-19 13:55:38 +01:00
Florian Schüller
02778b5361
cloudapi/v2/server: assure order of fail-calls
...
by avoiding map but rather using a slice the
order of SetFailed is maintained
2024-11-19 13:55:38 +01:00
Florian Schüller
ca3f0a190f
internal/jobqueue/jobqueuetest/jobqueuetest: fix DB tests
...
I got confused as the jobqueue interface is asymmetric.
It expects an object and returns a json.RawMessage
and when handing over to postgres this is abstracted
away by postgres
2024-11-19 13:55:38 +01:00
Florian Schüller
f478f802f2
github/workflows/tests: add dependency for tests
...
libbtrfs-dev seems to be required, otherwise the tests fail
2024-11-19 13:55:38 +01:00
Florian Schüller
2f4d7d3140
internal/cloudapi/v2/server: remove osbuild job explicitly set "failed"
...
osbuild job is a dependency of the resolve and manifest jobs so
leaving the state and it will fail as a depency is also fine
2024-11-19 13:55:38 +01:00
Florian Schüller
a3ef2b4a3c
Makefile: add tools/prepare-source.sh to make lint
...
The idea is that at least `go fmt` is called on
`make lint`. It's recommended to run `make push-check`
before any push, still.
2024-11-19 13:55:38 +01:00
Florian Schüller
d3e3474fb7
internal/worker/server: return an error on depsolve timeout HMS-2989
...
Fixes the special case that if no worker is available and we
generate an internal timeout and cancel the depsolve including all
followup jobs, no error was propagated.
2024-11-19 13:55:38 +01:00
Lukas Zapletal
03e74e77b2
worker: log proxy setting
2024-11-18 19:33:19 +01:00
Lukas Zapletal
86f903339a
worker: parse ostree MTLS proxy early
2024-11-15 10:16:26 +01:00
schutzbot
d1bf0a77f0
Post release version bump
...
[skip ci]
2024-11-13 08:16:45 +00:00
Lukas Zapletal
2a5d25d9c0
worker: check MTLS config for ostree
2024-11-12 12:12:52 +01:00
Sanne Raymaekers
2eb3c9f44c
worker/server: add tests for job heartbeats
2024-11-07 17:18:48 +01:00
Sanne Raymaekers
14bd8d38ca
worker/server: add basic tests for Pending / Running job metrics
2024-11-07 17:18:48 +01:00
Sanne Raymaekers
a971f9340b
worker/server: update metrics on requeue
...
When requeuing a job the next worker requesting the job would decrement
pending counter, but the pending counter only ever got incremented once,
when the job was first enqueued. Thus make sure to increment the pending
counter when a job is requeued.
2024-11-07 17:18:48 +01:00
Sanne Raymaekers
056b3c5ea6
jobqueue: return if a job was requeued or not
2024-11-07 17:18:48 +01:00
Lukas Zapletal
64f479092d
osbuild-worker: use the new ostree resolver API
2024-11-07 16:17:56 +01:00
Florian Schüller
f291f41dbc
tools/dbtest-*: fix shellcheck complaints
2024-11-06 15:16:42 +01:00
Florian Schüller
007f2989d3
Makefile: implement shellcheck as part of make lint
2024-11-06 15:16:42 +01:00
Florian Schüller
bed22e1d9a
Makefile: document make db-tests
2024-11-06 15:16:42 +01:00
Florian Schüller
ece16307c6
jobqueuetest: avoid warning and provide a valid JSON
...
Not needed for the test but just generates a useless warning
2024-11-06 15:16:42 +01:00
Florian Schüller
c742e6457e
Makefile: add hint that this just compiles the binaries
...
It does not run the tests because of to the "-c" flag
2024-11-06 15:16:42 +01:00
Florian Schüller
00d3f07d08
Makefile: implement make db-tests
...
enables the option to run the DB tests locally
that are executed in the github actions
2024-11-06 15:16:42 +01:00
Florian Schüller
1f8da3bd83
templates/dashboards/grafana: enable shared crosshair
...
shared crosshair makes it easier to see the affected time
in other charts/panels
2024-11-06 11:55:22 +01:00
Florian Schüller
3ff8308389
templates/dashboards/grafana: introduce number of pending jobs
2024-11-06 11:55:22 +01:00
Achilleas Koutsou
c9e412f320
test: enable ignore_missing_repos in service configs
2024-11-05 08:21:42 +01:00
Achilleas Koutsou
5d6a4b762b
templates: enable ignore_missing_repos in openshift
2024-11-05 08:21:42 +01:00
Achilleas Koutsou
af48971981
osbuild-composer: fail weldr init when repos are nil
...
If weldr tries to initialise when there are no repositories set and
ignore_missing_repos is enabled, return with an error.
2024-11-05 08:21:42 +01:00
Achilleas Koutsou
51287ea57e
osbuild-composer/config: new option: ignore_missing_repos
...
osbuild/images added an error type that's returned when the reporegistry
loader doesn't find any repository configurations to load [1]. This
lets callers decide whether to stop or continue execution based on
whether repository configurations are required.
A new top-level configuration option is added for osbuild-composer that
makes it possible to start the service without having static rpm
repositories configured. This is useful in certain (SaaS) modes where
build requests specify their own repository configurations.
2024-11-05 08:21:42 +01:00
Achilleas Koutsou
161a263b45
go.mod: update osbuild/images to v0.95.0
2024-11-05 08:21:42 +01:00
Florian Schüller
69525b7ce6
Makefile: clean golangci-lint cache on make clean
...
To speedup `make lint` we use a local cache.
It seems that there is no sane way to check and just
update the cache, so we'll just provide an option to wipe it.
Using the cache does reduce the time of `make lint` from
1 minute 15sec to 1 sec on my PC. So for consecutive runs,
the cache still makes sense.
2024-11-04 18:53:21 +01:00
Tomáš Hozza
a7cd521325
Test/data: add test repo configs for RHEL-9.6
...
Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2024-11-01 14:45:02 +01:00
Sanne Raymaekers
aeba9d5a68
cloud/awscloud: don't specify max spot price
...
The current spot price could be limiting the available instance pool
significantly. ARM instances specifically are experiencing a lot of
capacity errors.
2024-10-30 15:41:09 +01:00
schutzbot
5ff0e9ac4e
Post release version bump
...
[skip ci]
2024-10-30 08:16:54 +00:00
Sanne Raymaekers
f6e82ba403
templates/packer: fix fedora 40 aarch64 base image
...
The old one disappeared.
2024-10-29 17:42:10 +01:00
schutzbot
d29f4665ae
schutzfile: Update snapshots to 20241015
2024-10-29 09:29:27 +01:00
Sanne Raymaekers
c1b67440c4
cmd/osbuild-service-maintenance: respect dry run
...
Respect dry run when terminating leftover SIs.
2024-10-28 10:59:25 +01:00