Colin Walters
d3762be9b3
deny: Sync with rpm-ostree
...
This extends the license set basically and ignores private repos
(which we don't have any yet).
2022-07-08 09:33:18 -04:00
Colin Walters
0d911bf91f
Merge pull request #2632 from saqibali-2k/pr/prune-commit-only
...
lib/prune: speed up pruning by retrieving only commits
2022-06-30 09:08:54 -04:00
Jonathan Lebon
e527cdc582
Merge pull request #2661 from cgwalters/port-cap-std
2022-06-28 16:56:09 -04:00
Saqib Ali
a984871237
lib/prune: speed up pruning by retrieving only commits
...
After landing the new --commit-only functionality, we still noticed
exceedingly long pruning times in large repos. Lets add an optimization
that will only retrieve commit objects when --commit-only flag is used.
2022-06-27 08:04:50 -04:00
Colin Walters
e98988ba17
tests/inst: Port to cap-std
...
Part of an ongoing effort.
2022-06-24 16:23:05 -04:00
Colin Walters
bba9724317
Merge pull request #2660 from cgwalters/fix-load-file-api
...
repo: Metadata return values from `load_file` are not nullable
2022-06-24 14:30:33 -04:00
Jonathan Lebon
40703cad56
Merge pull request #2655 from nikita-dubrovskii/sdboot_rename
2022-06-24 12:49:50 -04:00
Jonathan Lebon
502ad96af2
Merge pull request #2659 from cgwalters/hackaround-cosa-systemd-unit-check
2022-06-24 10:49:19 -04:00
Colin Walters
52d6f4e790
tests/staged-deploy.sh: Hack around cosa systemd unit check
...
https://github.com/coreos/coreos-assembler/pull/2921 broke this
test which is intentionally causing a systemd unit to fail.
As they say, necessity is the mother of invention. They don't
say though that need always causes particularly *beautiful* things
to be invented...
2022-06-24 10:18:53 -04:00
Nikita Dubrovskii
14a7c0c74b
s390x: rename sd-boot to sdboot
...
Signed-off-by: Nikita Dubrovskii <nikita@linux.ibm.com>
2022-06-24 15:15:57 +02:00
Colin Walters
be2075eef0
repo: Metadata return values from `load_file` are not nullable
...
The pattern this API uses in C is to allow the input parameters
pointer targets to be `NULL`, and it doesn't return values in that
case.
A further complexity here is that the API will still return `NULL`
for symbolic links.
But Rust can't express this pattern as is, so we were always
returning values but in `Option<T>` wrappers that the caller needed
to unwrap for the metadata.
(We really want an even more efficient API here that avoids the glib
objects entirely, e.g. no reason not to pass directly back a type
that lets Rust directly read from the fd for bare repos, but
that can come later)
2022-06-23 17:43:42 -04:00
Colin Walters
ee5b3c76c3
Merge pull request #2656 from cgwalters/bump-cap-std
...
rust: Bump semver to 0.15 && bump cap-std 0.25
2022-06-23 16:36:24 -04:00
Colin Walters
6fda7112c8
Merge pull request #2658 from jlebon/pr/pinger
...
tests/inst/destructive: stop disabling fedora-coreos-pinger
2022-06-23 16:35:49 -04:00
Jonathan Lebon
7814d9339e
tests/inst/destructive: stop disabling fedora-coreos-pinger
...
It was removed from FCOS:
https://github.com/coreos/fedora-coreos-tracker/issues/770
2022-06-23 15:50:39 -04:00
Colin Walters
63499747b9
Bump to cap-std 0.25 and io-lifetimes 0.7
...
Prep for bumping ostree-rs-ext, which will help bump rpm-ostree,
which will get it out of having two copies of rustix.
2022-06-23 14:59:03 -04:00
Colin Walters
b87c8a8e23
rust: Bump semver to 0.15
...
Prep for some breaking changes.
2022-06-23 14:58:22 -04:00
Colin Walters
37d0ca41b6
Fix clippy lint in cap-std bits
2022-06-23 14:58:00 -04:00
Colin Walters
001839b35f
ci/rust: Change MSRV to `cargo check`
...
No reason to codegen just to throw it away. We could test here too,
but eh.
2022-06-23 14:45:16 -04:00
Colin Walters
ed98a7904c
ci/rust: Enable `cap-std-apis` in default build, add a no-feature build
...
Our CI was missing coverage of `cap-std-apis`.
2022-06-23 14:45:11 -04:00
Colin Walters
578a0c2507
Merge pull request #2639 from HuijingHei/admin-kargs-edit-in-place
...
RFE: Add a hidden option to `ostree admin kargs edit-in-place` to update all existing deployments in place
2022-06-23 12:16:03 -04:00
Huijing Hei
3bc59a5206
RFE: Add a hidden option to `ostree admin kargs edit-in-place` to
...
update all existing deployments in place
Example:
$ sudo ostree admin kargs edit-in-place --append-if-missing=rw
See https://github.com/ostreedev/ostree/issues/2617
This will not add duplicate key, if there is `TESTARG=VAL1` in the
kernel arguments, `--append-if-missing=TESTARG=VAL2` will be ignored.
2022-06-23 22:31:39 +08:00
Colin Walters
b04c436bb9
Merge pull request #2651 from cgwalters/misc-declare-and-initialize-2
...
cli: Port to C99 style (3)
2022-06-21 16:44:12 -04:00
Colin Walters
a1de42ecad
Merge pull request #2654 from jlebon/pr/drop-packit
...
Drop `.packit.yaml`
2022-06-21 16:00:32 -04:00
Jonathan Lebon
7ee2d1b137
Drop `.packit.yaml`
...
This repo is already hooked to the @CoreOS/continuous COPR repo for
multi-arch RPM builds of the latest commits.
It's possible we will use Packit in the future to help with the release
process. But for now, let's just drop this file since it's not needed
and the Packit failures are marking git main CI as failed.
2022-06-21 15:10:18 -04:00
Colin Walters
635a0df124
Merge pull request #2652 from smcv/not-always-xattrs
...
test-basic-c: Don't assert that extended attributes are available
2022-06-20 16:38:29 -04:00
Simon McVittie
ce428c1f60
test-basic-c: Don't assert that extended attributes are available
...
Not all filesystems support extended attributes. This test uses
/var/tmp to try to get an extended-attributes-capable filesystem,
but that might not succeed.
Signed-off-by: Simon McVittie <smcv@debian.org>
2022-06-17 14:42:01 +01:00
Colin Walters
9bdf3861ad
cli/refs: Port to C99 style
...
General background cleanup.
2022-06-15 09:36:54 -04:00
Colin Walters
2f1c9a727e
cli/remote-list: Port to C99 style
...
General background cleanup.
2022-06-15 09:35:03 -04:00
Colin Walters
a0ae2f9156
cli/gpg-sign: Port to C99 style
...
General background cleanup.
2022-06-15 09:33:46 -04:00
Jonathan Lebon
d9d085dc7b
Merge pull request #2650 from cgwalters/misc-declare-and-initialize-1
2022-06-14 16:20:44 -04:00
Joseph Marrero Corchado
e997ddc078
Merge pull request #2649 from cgwalters/misc-declare-and-initialize
...
cli: a few "Port to C99 style"
2022-06-14 10:38:46 -04:00
Colin Walters
43b712951d
cli/diff: Port to C99 style
...
General background cleanup.
2022-06-14 10:04:04 -04:00
Colin Walters
f8403f46dc
cli/config: Port to C99 style
...
General background cleanup.
2022-06-14 10:03:58 -04:00
Colin Walters
4e356d0e8f
cli/unlock: Port to C99 style
...
General background cleanup.
2022-06-14 09:53:11 -04:00
Colin Walters
588b07e554
cli/undeploy: Port to C99 style
...
General background cleanup.
2022-06-14 09:51:41 -04:00
Colin Walters
46e1db392d
cli/os-init: Port to C99 style
...
General background cleanup; motivated by a recent PR which
was using pre-C99 code as a base.
2022-06-14 09:50:07 -04:00
Colin Walters
e65c8e72c8
Merge pull request #2643 from cgwalters/rust-2021
...
rust: Switch to 2021 edition, bump MSRV, a few `format!` updates
2022-06-13 09:10:36 -04:00
Luca Bruno
68d1f54c5a
Merge pull request #2646 from cgwalters/bindings-tests
...
rust-bindings: Wire up `tests/`
2022-06-13 07:46:14 +00:00
Luca Bruno
ca1fbc59ce
Merge pull request #2645 from cgwalters/fsck-more-cleanups
...
fsck: A few more cleanups
2022-06-13 07:32:33 +00:00
Colin Walters
eee0eea58b
rust-bindings: Wire up `tests/`
...
Because the source is in a subdirectory, we lose out on cargo target
autodiscovery.
I noticed this when I edited one of the tests in a way that
should have failed, but didn't...
2022-06-12 14:34:02 -04:00
Colin Walters
436ff11a00
fsck: Use `load_variant_if_exists`
...
This cleans up error handling here.
2022-06-12 10:58:29 -04:00
Colin Walters
bd030a96f2
fsck: Move most commit processing into helper function
...
The inner loop was way too long; split out most of the heavy
lifting around backrefs and tombstones into a helper function.
2022-06-12 10:57:27 -04:00
Colin Walters
2fe0ea7395
fsck: De-indent loop
...
Could have done this in the previous change, but wanted to avoid
excessive diff noise.
2022-06-12 10:48:39 -04:00
Colin Walters
e6ad897850
Merge pull request #2644 from cgwalters/list-commit-objects
...
fsck: Don't load all object names into memory
2022-06-11 08:09:35 -04:00
Colin Walters
6981633f9c
fsck: Don't load all object names into memory
...
We recently discovered `list_objects()` is inefficient with memory.
The more efficient `list_objects_set()` API isn't yet public, but
this fsck code actually just skips over non-commit objects, and
we already have an API to list just those.
2022-06-09 21:01:03 -04:00
Colin Walters
a13d812368
repo: Document non-obvious way to list all commits
...
I was going to add an API for this and then realized the empty
string does it.
2022-06-09 18:34:51 -04:00
Colin Walters
93e3784b66
rust: Use inline `format!` variables in a few places
...
Since our MSRV now supports it.
2022-06-09 17:51:07 -04:00
Colin Walters
76071a2b11
ci: Bump MSRV
...
To match what's in ostree-rs-ext.
2022-06-09 17:49:18 -04:00
Joseph Marrero Corchado
10212626d2
Merge pull request #2641 from cgwalters/bump-ostree-rs-ext-0.7
...
tests/inst: Bump the version of ostree-ext
2022-06-09 16:53:52 -04:00
Joseph Marrero Corchado
d52597e478
Merge pull request #2642 from cgwalters/rust-bindings-cargo-updates
...
Rust bindings cargo updates
2022-06-09 16:53:00 -04:00