Commit Graph

6228 Commits

Author SHA1 Message Date
Luca Bruno
8cb50c16a0
Merge pull request #2760 from cgwalters/offline-deploy-no-bwrap
deploy: Don't rebuild selinux policy on first deployment
2022-11-11 10:16:17 +00:00
Colin Walters
e66e0b06ef
Merge pull request #2754 from cgwalters/remove-readdir-rand
Remove readdir-rand
2022-11-10 05:59:36 -05:00
Colin Walters
a6c97e9129
Merge pull request #2759 from oglok/http_500
Enabling retry for HTTP 500 internal server error
2022-11-09 15:34:08 -05:00
Colin Walters
bd325061dc deploy: Don't rebuild selinux policy on first deployment
Basically, it should not be necessary - the policy should be
up-to-date.  We don't want to force on continual policy rebuilds.

Even trying to run bwrap when we're *not* in a booted
root can cause failures in nested containerization scenarios.

Closes: https://github.com/ostreedev/ostree/issues/2758
2022-11-09 11:18:36 -05:00
Ricardo Noriega
6ce2324e4a Add tests for cases under random 500s
Signed-off-by: Ricardo Noriega <rnoriega@redhat.com>
2022-11-09 11:20:10 +01:00
Ricardo Noriega
722be7e3d7 Enabling retry for HTTP 500 internal server error
Signed-off-by: Ricardo Noriega <rnoriega@redhat.com>

Use G_IO_ERROR_BUSY to represent 500 error

Signed-off-by: Ricardo Noriega <rnoriega@redhat.com>

Make G_IO_ERROR_BUSY independent from glib version

Signed-off-by: Ricardo Noriega <rnoriega@redhat.com>
2022-11-08 18:14:31 +01:00
Colin Walters
e153720f89
Merge pull request #2756 from ostreedev/dependabot/submodules/libglnx-4e44fd9
build(deps): bump libglnx from `e701578` to `4e44fd9`
2022-11-04 11:47:43 -04:00
dependabot[bot]
b93c0d0262
build(deps): bump libglnx from e701578 to 4e44fd9
Bumps libglnx from `e701578` to `4e44fd9`.

---
updated-dependencies:
- dependency-name: libglnx
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-02 12:32:15 +00:00
Colin Walters
23446a0218 Remove readdir-rand
This was only there to reproduce a bug we hit long ago
with bootloader file ordering.  We're extremely unlikely
to reintroduce such a bug, and it's not worth carrying around
this code.
2022-11-01 16:29:17 -04:00
Colin Walters
ba94997e99
Merge pull request #2752 from smcv/copy-dirent
readdir-rand: Copy full size of struct dirent
2022-10-31 08:58:21 -04:00
Simon McVittie
3f3a817375 readdir-rand: Copy full size of struct dirent
As noted in readdir(3), in the presence of long filenames it is
possible for a directory entry to be larger than `sizeof (struct dirent)`.
Copy the full length instead.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-10-28 12:21:58 +01:00
Luca Bruno
d731ee804d
Merge pull request #2749 from lucab/ups/cargo-releases
cargo: prepare ostree 0.16.0 and ostree-sys 0.11.0
2022-10-28 07:26:08 +00:00
Luca BRUNO
33cf347117
cargo: prepare ostree 0.16.0 and ostree-sys 0.11.0
This prepares for a new release of both crates, now using the
gtk-rs 0.15 stack.
2022-10-27 14:21:23 +00:00
Luca Bruno
2c8977443c
Merge pull request #2748 from lucab/ups/ci-rust-bump-libostree-git
ci/rust: test from git using latest feature
2022-10-27 14:19:38 +00:00
Luca BRUNO
6b2d0067f0
ci/rust: test from git using latest feature 2022-10-27 12:58:43 +00:00
Luca Bruno
fe09de9282
Merge pull request #2743 from lucab/ups/gtk-rs-0.15
rust-bindings: regenerate for gtk-rs 0.15
2022-10-27 12:24:05 +00:00
Luca BRUNO
dbb6daf101
rust/ostree: regenerate for gtk-rs 0.15 2022-10-26 13:49:35 +00:00
Luca BRUNO
0b3833bf55
rust/ostree-sys: regenerate for gtk-rs 0.15 2022-10-26 13:49:34 +00:00
Luca BRUNO
1e0e814f38
rust: update pinned gir tool to 0.15 2022-10-26 13:49:33 +00:00
Colin Walters
1258c371d6
Merge pull request #2742 from lucab/ups/rust-regenerate-2022.6
rust: regenerate bindings after latest release (2022.6)
2022-10-26 09:15:14 -04:00
Colin Walters
9672f88877
Merge pull request #2745 from lucab/ups/ci-bump-rust-linting
ci/rust: bump linting toolchain to latest stable (1.64)
2022-10-26 09:15:01 -04:00
Colin Walters
aded044149
Merge pull request #2746 from lucab/ups/lib-repo-refs-error
lib/repo-refs: properly return an error value
2022-10-26 09:14:48 -04:00
Luca BRUNO
a118410b85
lib/repo-refs: properly return an error value
This tweaks a logic check in order to return a proper error value
when the related condition is not satisfied.
2022-10-26 11:12:52 +00:00
Colin Walters
61d22e5db6
Merge pull request #2740 from lucab/ups/lib-sign-ed25519-assertions
lib/sign-ed25519: convert invariant checks to assertions
2022-10-26 06:33:04 -04:00
Luca BRUNO
9163665a29
ci/rust: bump linting toolchain to latest stable (1.64)
This bumps the Rust toolchain for clippy/rustfmt to 1.64.
2022-10-26 09:27:50 +00:00
Luca BRUNO
10cecd73f0
rust: update manual helpers 2022-10-26 09:26:56 +00:00
Luca BRUNO
6aa7d6e9f7
ostree: manually patch generated files
This manually adds a missing `ToGlibPtr` import, which seems to be result
of some bugs in `gir` code-generation.
2022-10-26 09:26:55 +00:00
Luca BRUNO
f689ca098f
rust: regenerate bindings after latest release (2022.6) 2022-10-26 09:26:54 +00:00
Luca BRUNO
99c2f52a78
lib/sign-ed25519: convert invariant checks to assertions
This converts several invariant checks to asserts. Most of the
functions in this file were already using assertions, so this aligns
the remaining few outliers to the rest.
2022-10-26 09:26:06 +00:00
Luca Bruno
9801689c74
Merge pull request #2744 from lucab/ups/ci-memory-bump
ci: bump cosaPod memory requirement to 5Gi
2022-10-26 09:23:29 +00:00
Jonathan Lebon
52810a41b9
ci: bump cosaPod memory requirement to 5Gi
We're hitting memory limits when running the reprovisioning tests. We
should investigate why we need 1Gi of overhead, but for now to get
unblocked let's just bump it.
2022-10-26 06:42:06 +00:00
Colin Walters
a19cc34883
Merge pull request #2663 from mstuehn/test-static-delta-file
lib/static-delta: document and check parameters format
2022-10-19 17:04:40 -04:00
Luca BRUNO
ed6678ce5f
rust/tests: fix static delta generation testcase 2022-10-13 16:30:00 +00:00
Luca BRUNO
763d2d2863
lib/static-delta: document and check parameters format
This enhances the logic handling GVariant parameters within
`ostree_repo_static_delta_generate()`.
Several of those entries are expected to be zero-terminated values,
and this implicit assumption has been observed to be an hidden trap
in languages where strings and arrays may not carry a terminator value
(e.g. Rust).
In order to improve the situation, this makes the documentation more
explicit and actively tries to catch invalid input parameters.
2022-10-13 16:29:59 +00:00
Manuel Stühn
14f513cf02
Add test for generating static delta to file 2022-10-13 16:29:58 +00:00
Luca Bruno
a335a780a9
Merge pull request #2733 from ostreedev/dependabot/submodules/libglnx-e701578
build(deps): bump libglnx from `26375b5` to `e701578`
2022-10-13 15:36:28 +00:00
Jonathan Lebon
4a83cf4a36
Merge pull request #2738 from lucab/ups/lib-zipl-check-open-errors 2022-10-13 11:22:38 -04:00
Jonathan Lebon
c874d4f3f3 ci: Use new names for custom kola steps
The old `fcos*` versions are deprecated now:
https://github.com/coreos/coreos-ci-lib/pull/111
2022-10-13 09:18:08 -04:00
Jonathan Lebon
139759dd7e ci: Drop unnecessary outer stage
We define stages inside of this stage, so get rid of the outer `FCOS`
stage. This should help rendering the pipeline in BlueOcean more
clearly.
2022-10-13 09:16:19 -04:00
Jonathan Lebon
d5129e3766 ci: Bump memory request, use fcosKolaTestIso
More fallout from https://github.com/coreos/coreos-ci-lib/pull/116. We
need to be more honest about how much memory we need.

While we're here, switch the `kola testiso` invocation to use
`fcosKolaTestIso` instead. This will add coverage for UEFI and UEFI
SecureBoot testing.
2022-10-13 09:14:08 -04:00
Dan Nicholson
1075e58c16
Merge pull request #2737 from lucab/ups/repo-checkout-fix-uid-typo
lib/repo-checkout: fix typo in error message
2022-10-13 06:41:55 -06:00
Luca BRUNO
39ef6253e9
lib/bootloader-zipl: check for errors when opening initrd
This adds a missing error check when opening an initrd in s390x
Secure Execution (SE) logic.
It was detected by RH internal static checks.
2022-10-13 10:48:38 +00:00
Luca BRUNO
1ea5e8e7d2
lib/repo-checkout: fix typo in error message
This fixes a typo in an error message, resulting in a GID vs UID
mixup. It was detected by RH internal static checks.
2022-10-13 10:38:11 +00:00
dependabot[bot]
3bb3546fff
build(deps): bump libglnx from 26375b5 to e701578
Bumps libglnx from `26375b5` to `e701578`.

---
updated-dependencies:
- dependency-name: libglnx
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-11 12:29:06 +00:00
Luca Bruno
e0cc8069c9
Merge pull request #2730 from ostreedev/release-2022.6
Release 2022.6
2022-10-07 16:40:10 +00:00
Luca BRUNO
b147166d06
configure: post-release version bump 2022-10-07 07:56:24 +00:00
Luca BRUNO
eee649d902
Release 2022.6 2022-10-07 07:54:09 +00:00
Luca Bruno
017ea3edc1
Merge pull request #2721 from cgwalters/link-otto
README.md: Link otto
2022-09-28 21:54:53 +00:00
Colin Walters
b04dde8882
Merge pull request #2717 from mangelajo/support-whiteouts
Support overlayfs whiteouts on checkout
2022-09-28 08:35:24 -04:00
Colin Walters
b83032d0d3 README.md: Link otto
Another project in the ostree/container space.
2022-09-28 08:30:18 -04:00