]> xenbits.xensource.com Git - xen-guest-agent.git/log
xen-guest-agent.git
7 months agoci: specify Linux Rust toolchain versions to build with
Yann Dirson [Fri, 4 Oct 2024 14:31:26 +0000 (16:31 +0200)]
ci: specify Linux Rust toolchain versions to build with

- test builds: minimum supported version (1.74)
- release builds: explicit most recent version for which a buster
  docker image exists (1.79)
- code checks: latest

11 months agoMerge branch 'cargo-lock' into 'main'
Yann Dirson [Fri, 31 May 2024 12:22:33 +0000 (12:22 +0000)]
Merge branch 'cargo-lock' into 'main'

Cargo.lock: update outdated deps

See merge request xen-project/xen-guest-agent!85

11 months agoCargo.lock: update outdated deps
Yann Dirson [Fri, 31 May 2024 11:50:38 +0000 (13:50 +0200)]
Cargo.lock: update outdated deps

Signed-off-by: Yann Dirson <yann.dirson@vates.tech>
11 months agoMerge branch 'cargo-lock' into 'main'
Yann Dirson [Wed, 22 May 2024 09:45:41 +0000 (09:45 +0000)]
Merge branch 'cargo-lock' into 'main'

Cargo.lock: update outdated deps

See merge request xen-project/xen-guest-agent!84

11 months agoCargo.lock: update outdated deps
Yann Dirson [Wed, 22 May 2024 08:48:53 +0000 (10:48 +0200)]
Cargo.lock: update outdated deps

Signed-off-by: Yann Dirson <yann.dirson@vates.tech>
12 months agoMerge branch 'cargo-lock' into 'main'
Yann Dirson [Wed, 17 Apr 2024 09:09:38 +0000 (09:09 +0000)]
Merge branch 'cargo-lock' into 'main'

Cargo.lock: update outdated deps

See merge request xen-project/xen-guest-agent!83

12 months agoCargo.lock: update clap to latest, now requiring Rust 1.74 to build
Yann Dirson [Wed, 17 Apr 2024 08:27:14 +0000 (10:27 +0200)]
Cargo.lock: update clap to latest, now requiring Rust 1.74 to build

Not changing package.rust-version in Cargo.toml, since there is nothing in
this package source code that actually requires it, besides the (generated)
Cargo.lock.

Signed-off-by: Yann Dirson <yann.dirson@vates.tech>
12 months agoCargo.lock: update outdated deps (except for clap)
Yann Dirson [Mon, 15 Apr 2024 11:17:18 +0000 (13:17 +0200)]
Cargo.lock: update outdated deps (except for clap)

Clap 4.5 pulls MSRV from 1.71 up to 1.74, so we still keep it out for
now.

Signed-off-by: Yann Dirson <yann.dirson@vates.tech>
12 months agoMerge branch 'rpm-enable-service' into 'main'
Yann Dirson [Mon, 15 Apr 2024 12:29:26 +0000 (12:29 +0000)]
Merge branch 'rpm-enable-service' into 'main'

rpm: enable and start service on first install

See merge request xen-project/xen-guest-agent!78

12 months agoMerge branch 'cargo-lock' into 'main'
Yann Dirson [Mon, 15 Apr 2024 12:28:02 +0000 (12:28 +0000)]
Merge branch 'cargo-lock' into 'main'

Cargo.lock: update outdated deps (except for clap)

See merge request xen-project/xen-guest-agent!80

12 months agoCargo.lock: update outdated deps (except for clap)
Yann Dirson [Mon, 15 Apr 2024 11:17:18 +0000 (13:17 +0200)]
Cargo.lock: update outdated deps (except for clap)

Clap 4.5 pulls MSRV from 1.71 up to 1.74, so we still keep it out for
now.

Signed-off-by: Yann Dirson <yann.dirson@vates.tech>
12 months agofreebsd-netlink: use a libc patch based on 0.2.153
Yann Dirson [Mon, 15 Apr 2024 09:21:01 +0000 (11:21 +0200)]
freebsd-netlink: use a libc patch based on 0.2.153

For some reason Cargo, accepts on current main commit to override
libc-0.2.153 with a patch advertising 0.2.152 (not even sure why that was
possible).  After cargo-updating it would not any more, so fix the mismatch.

Signed-off-by: Yann Dirson <yann.dirson@vates.tech>
13 months agoMerge branch 'os_info-3.8' into 'main'
Yann Dirson [Fri, 5 Apr 2024 14:45:25 +0000 (14:45 +0000)]
Merge branch 'os_info-3.8' into 'main'

Build against os_info 3.8.2, detects Alma and Rocky (#13)

See merge request xen-project/xen-guest-agent!81

13 months agoBuild against os_info 3.8.2, detects Alma and Rocky (#13)
Yann Dirson [Fri, 5 Apr 2024 08:22:57 +0000 (10:22 +0200)]
Build against os_info 3.8.2, detects Alma and Rocky (#13)

Not bumping the version in Cargo.toml, though, since there is not no
requirement at the code level.

Signed-off-by: Yann Dirson <yann.dirson@vates.tech>
13 months agoMerge branch 'fix-deb-build' into 'main'
Yann Dirson [Fri, 5 Apr 2024 14:26:18 +0000 (14:26 +0000)]
Merge branch 'fix-deb-build' into 'main'

deb: don't attempt to run dwz on release binaries

See merge request xen-project/xen-guest-agent!82

13 months agodeb: don't attempt to run dwz on release binaries
Yann Dirson [Fri, 5 Apr 2024 14:05:53 +0000 (16:05 +0200)]
deb: don't attempt to run dwz on release binaries

Apparently older rust would produce a debug info section in release
binaries, but now they make dwz in Debian 10 barf.

Signed-off-by: Yann Dirson <yann.dirson@vates.tech>
14 months agoMerge branch 'cargo-lock' into 'main'
Yann Dirson [Fri, 23 Feb 2024 11:13:50 +0000 (11:13 +0000)]
Merge branch 'cargo-lock' into 'main'

Cargo.lock: update outdated deps (except for clap)

See merge request xen-project/xen-guest-agent!79

14 months agoCargo.lock: update outdated deps (except for clap)
Yann Dirson [Fri, 16 Feb 2024 08:43:42 +0000 (09:43 +0100)]
Cargo.lock: update outdated deps (except for clap)

This finally updates to libc 0.2.153, as we had to rebase our
freebsd-libc0.2 branch to keep it mergeable.

Clap 4.5 pulls MSRV from 1.71 up to 1.74, keep it out for now.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
14 months agorpm: declare Obsoletes: xe-guest-utilities to auto-uninstall it
Yann Dirson [Mon, 5 Feb 2024 11:13:17 +0000 (12:13 +0100)]
rpm: declare Obsoletes: xe-guest-utilities to auto-uninstall it

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
14 months agoMerge branch 'cargo-lock' into 'main'
Yann Dirson [Mon, 5 Feb 2024 10:56:48 +0000 (10:56 +0000)]
Merge branch 'cargo-lock' into 'main'

Dependency updates

See merge request xen-project/xen-guest-agent!76

14 months agorpm: enable and start service on first install
Yann Dirson [Mon, 5 Feb 2024 10:51:34 +0000 (11:51 +0100)]
rpm: enable and start service on first install

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
14 months agoCargo.lock: update outdated deps (except for libc)
Yann Dirson [Mon, 5 Feb 2024 10:27:05 +0000 (11:27 +0100)]
Cargo.lock: update outdated deps (except for libc)

Nothing useful for us in libc 0.2.153, and updating it would require
rebasing our freebsd-libc0.2 branch.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
14 months agocargo.lock: bump rtnetlink to 0.14.1, includes FreeBSD support
Yann Dirson [Mon, 5 Feb 2024 09:31:14 +0000 (10:31 +0100)]
cargo.lock: bump rtnetlink to 0.14.1, includes FreeBSD support

For FreeBSD support this should indeed be a "rtnetlink (0.14.1)" dep in
Cargo.toml, but strictly speaking there is no dependency in the code itself.

Nevertheless, we can now stop using our PR branch for this crate, and only
the libc crate still requires a patch.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
14 months agonetlink: declare compatibility with netlink-packet-route 0.19
Yann Dirson [Mon, 5 Feb 2024 09:25:00 +0000 (10:25 +0100)]
netlink: declare compatibility with netlink-packet-route 0.19

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
14 months agoMerge branch 'ci-adjustments' into 'main'
Yann Dirson [Mon, 5 Feb 2024 10:17:43 +0000 (10:17 +0000)]
Merge branch 'ci-adjustments' into 'main'

ci improvements: catch missing Cargo.lock updates, simplify job graph

See merge request xen-project/xen-guest-agent!77

14 months agoci: separate build checks from quick check to avoid wasting CI cycles
Yann Dirson [Mon, 5 Feb 2024 09:59:34 +0000 (10:59 +0100)]
ci: separate build checks from quick check to avoid wasting CI cycles

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
14 months agoci: avoid pkg-source fetching artifacts from binary jobs
Yann Dirson [Mon, 5 Feb 2024 09:40:27 +0000 (10:40 +0100)]
ci: avoid pkg-source fetching artifacts from binary jobs

Having this fetching is awkward, rven if they are not supposed to be used.
Let's just not wait for those jobs.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
14 months agoci: new check job for missing Cargo.lock updates.
Yann Dirson [Mon, 5 Feb 2024 09:38:19 +0000 (10:38 +0100)]
ci: new check job for missing Cargo.lock updates.

This could have been a larger check to make sure build introduces no
diffs, but our reliance on a crate patch for FreeBSD makes this too
messy.  At least the common case of forgetting Cargo.lock will fail
the pipeline early.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
15 months agoMerge branch 'build-reqs' into 'main'
Yann Dirson [Fri, 2 Feb 2024 16:53:25 +0000 (16:53 +0000)]
Merge branch 'build-reqs' into 'main'

Document build requirements and dig compat issues with Rust 1.70

See merge request xen-project/xen-guest-agent!75

15 months agoUse xenstore-rs 0.7, FreeBSD build now easier with pkgconfig
Yann Dirson [Fri, 2 Feb 2024 15:14:47 +0000 (16:14 +0100)]
Use xenstore-rs 0.7, FreeBSD build now easier with pkgconfig

15 months agoCargo: bump MSRV to 1.71
Yann Dirson [Fri, 2 Feb 2024 16:14:09 +0000 (17:14 +0100)]
Cargo: bump MSRV to 1.71

Our dependency `env_logger` suffers from a bug in versions of Cargo
older than 1.71, fixed by https://github.com/rust-lang/cargo/pull/12130
(the one we suffered from before the "Cargo: don't let feature
"static" pull xenstore-rs unless "xenstore" is set" fix).

Note that some of our dependencies already required 1.70 or later.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
15 months agoREADME: better documentation for build requirements
Yann Dirson [Fri, 2 Feb 2024 15:15:27 +0000 (16:15 +0100)]
README: better documentation for build requirements

15 months agoCargo: don't let feature "static" pull xenstore-rs unless "xenstore" is set
Yann Dirson [Fri, 2 Feb 2024 16:32:34 +0000 (17:32 +0100)]
Cargo: don't let feature "static" pull xenstore-rs unless "xenstore" is set

The syntax used was equivalent to "dep:xenstore-rs/static", and a bug in
Rust 1.70 (fixed by https://github.com/rust-lang/cargo/pull/12130 in 1.71)
was triggered.

15 months agoMerge branch 'replace-xe-guest-utilities-latest' into 'main'
Yann Dirson [Fri, 2 Feb 2024 14:54:55 +0000 (14:54 +0000)]
Merge branch 'replace-xe-guest-utilities-latest' into 'main'

rpm: replace xe-guest-utilities-latest RPM as well

See merge request xen-project/xen-guest-agent!74

15 months agorpm: replace xe-guest-utilities-latest RPM as well
Yann Dirson [Thu, 1 Feb 2024 14:29:30 +0000 (15:29 +0100)]
rpm: replace xe-guest-utilities-latest RPM as well

15 months agoMerge branch 'post-release-0.4.0' into 'main'
Yann Dirson [Mon, 29 Jan 2024 16:24:24 +0000 (16:24 +0000)]
Merge branch 'post-release-0.4.0' into 'main'

Bump version to 0.5.0-dev

See merge request xen-project/xen-guest-agent!70

15 months agoBump version to 0.5.0-dev
Yann Dirson [Mon, 29 Jan 2024 10:13:14 +0000 (11:13 +0100)]
Bump version to 0.5.0-dev

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
15 months agoci/everycommit: adjust "git status" call to investigate build failures
Yann Dirson [Mon, 29 Jan 2024 15:30:30 +0000 (16:30 +0100)]
ci/everycommit: adjust "git status" call to investigate build failures

This is a more useful version of of 9b16ce355debd105b65bb841b300e585e80aefad.

This allows to diagnose errors like forgetting to update Cargo.lock when
Cargo.toml is updated, as errors is reported by git-rebase before a second
`--exec` can be run.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
15 months agoMerge branch 'ci-everycommit-debug' into 'main'
Yann Dirson [Mon, 29 Jan 2024 15:10:57 +0000 (15:10 +0000)]
Merge branch 'ci-everycommit-debug' into 'main'

ci/everycommit: add a "git status" call to investigate build failures

See merge request xen-project/xen-guest-agent!73

15 months agoci/everycommit: add a "git status" call to investigate build failures
Yann Dirson [Mon, 29 Jan 2024 15:00:29 +0000 (16:00 +0100)]
ci/everycommit: add a "git status" call to investigate build failures

Errors reported by git-rebase actually happen after a first build was run,
which seems to point to the build modifying source files.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
15 months agoMerge branch 'ci-fix-modifications-blocking-rebase' into 'main'
Yann Dirson [Mon, 29 Jan 2024 14:44:13 +0000 (14:44 +0000)]
Merge branch 'ci-fix-modifications-blocking-rebase' into 'main'

ci: cleanup after jobs making changes to source files

See merge request xen-project/xen-guest-agent!72

15 months agoci: cleanup after jobs making changes to source files
Yann Dirson [Mon, 29 Jan 2024 14:34:48 +0000 (15:34 +0100)]
ci: cleanup after jobs making changes to source files

As a followup to 09aa5bc275fc023aa55c7491f2ab7e8e60bf1935, we can now see
some everycommit jobs failing to run rebase because of modified files.

This makes sure the few jobs touching source files cleanup after doing
their jobs.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
15 months agoMerge branch 'ci-fix-rebase-in-progress' into 'main'
Yann Dirson [Mon, 29 Jan 2024 14:14:16 +0000 (14:14 +0000)]
Merge branch 'ci-fix-rebase-in-progress' into 'main'

ci: cleanup after failing build-linux-everycommit jobs

See merge request xen-project/xen-guest-agent!71

15 months agoci: cleanup after failing build-linux-everycommit jobs
Yann Dirson [Mon, 29 Jan 2024 14:06:13 +0000 (15:06 +0100)]
ci: cleanup after failing build-linux-everycommit jobs

Those jobs want to start a rebase, but that cannot work when a rebase is
already in progress... which can happen since we use the "fetch" Git
Strategy (now in Gitlab project CI config), and when such a job fails.
We must cleanup things after

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
15 months agoMerge branch 'release-0.4.0' into 'main' 0.4.0
Yann Dirson [Mon, 29 Jan 2024 10:18:31 +0000 (10:18 +0000)]
Merge branch 'release-0.4.0' into 'main'

Release 0.4.0

See merge request xen-project/xen-guest-agent!69

15 months agoRelease version 0.4.0
Yann Dirson [Mon, 29 Jan 2024 09:55:31 +0000 (10:55 +0100)]
Release version 0.4.0

15 months agorelease.md: don't miss CHANGELOG
Yann Dirson [Mon, 29 Jan 2024 09:57:00 +0000 (10:57 +0100)]
release.md: don't miss CHANGELOG

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
15 months agoMerge branch 'cargo-lock' into 'main'
Yann Dirson [Mon, 29 Jan 2024 09:58:36 +0000 (09:58 +0000)]
Merge branch 'cargo-lock' into 'main'

Cargo.lock: update outdated deps

See merge request xen-project/xen-guest-agent!68

15 months agoCargo.lock: update outdated deps
Yann Dirson [Mon, 29 Jan 2024 09:51:01 +0000 (10:51 +0100)]
Cargo.lock: update outdated deps

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
15 months agoMerge branch 'static-libxenstore' into 'main'
Yann Dirson [Wed, 24 Jan 2024 16:43:10 +0000 (16:43 +0000)]
Merge branch 'static-libxenstore' into 'main'

Statically link libxenstore

See merge request xen-project/xen-guest-agent!55

15 months agoNew "static" feature for libxenstore static linking
Yann Dirson [Thu, 4 Jan 2024 13:35:53 +0000 (14:35 +0100)]
New "static" feature for libxenstore static linking

Now build linux release exe as static.

freebsd static-build configs disabled because apparently libxenstore.a
would need to be built with -fPIE.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
15 months agoMerge branch 'ci-fix-cargo-version-parsing' into 'main'
Yann Dirson [Wed, 24 Jan 2024 16:25:50 +0000 (16:25 +0000)]
Merge branch 'ci-fix-cargo-version-parsing' into 'main'

ci: more robust parsing of Cargo.toml for UPSTREAMVERSION

See merge request xen-project/xen-guest-agent!66

15 months agoci: more robust parsing of Cargo.toml for UPSTREAMVERSION
Yann Dirson [Wed, 24 Jan 2024 14:19:33 +0000 (15:19 +0100)]
ci: more robust parsing of Cargo.toml for UPSTREAMVERSION

Adding a dependency as a block brings more matching lines for the
previous regexp.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
15 months agoMerge branch 'ci-fix-freebsd-netlink' into 'main'
Yann Dirson [Wed, 24 Jan 2024 16:14:29 +0000 (16:14 +0000)]
Merge branch 'ci-fix-freebsd-netlink' into 'main'

ci: workaround inability to use specify a feature in a cargo patch

See merge request xen-project/xen-guest-agent!67

15 months agoci: workaround inability to use specify a feature in a cargo patch
Yann Dirson [Wed, 24 Jan 2024 15:52:26 +0000 (16:52 +0100)]
ci: workaround inability to use specify a feature in a cargo patch

For some undocumented reason we're not allowed to make use of features
added by the patched dependency we want to use.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
15 months agoMerge branch 'cargo-lock' into 'main'
Yann Dirson [Mon, 22 Jan 2024 15:13:27 +0000 (15:13 +0000)]
Merge branch 'cargo-lock' into 'main'

Cargo.lock: update outdated deps

See merge request xen-project/xen-guest-agent!65

15 months agoCargo: relax dep on env_logger to accept 0.11
Yann Dirson [Mon, 22 Jan 2024 14:23:21 +0000 (15:23 +0100)]
Cargo: relax dep on env_logger to accept 0.11

We don't need anything beyond the basic API, unlikely to break even on
new "major" releases.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
15 months agoCargo.lock: update outdated deps
Yann Dirson [Mon, 22 Jan 2024 14:18:52 +0000 (15:18 +0100)]
Cargo.lock: update outdated deps

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
15 months agoMerge branch 'static-bugfixes' into 'main'
Yann Dirson [Mon, 22 Jan 2024 14:03:26 +0000 (14:03 +0000)]
Merge branch 'static-bugfixes' into 'main'

ci: add missing -L flag

See merge request xen-project/xen-guest-agent!64

15 months agoci: add missing -L flag
Yann Dirson [Wed, 10 Jan 2024 10:53:07 +0000 (11:53 +0100)]
ci: add missing -L flag

For some reason neither cross-rs nor pkg-config tells rustc that cross
libs do live in the sysroot.  Only a problem for static linking, since
that's the only use-case we have besides dlopen.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
15 months agoMerge branch 'cargo-lock' into 'main'
Yann Dirson [Mon, 15 Jan 2024 11:19:30 +0000 (11:19 +0000)]
Merge branch 'cargo-lock' into 'main'

Cargo.lock: update outdated deps

See merge request xen-project/xen-guest-agent!63

15 months agoCargo.lock: update outdated deps
Yann Dirson [Mon, 15 Jan 2024 09:02:39 +0000 (10:02 +0100)]
Cargo.lock: update outdated deps

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
15 months agofreebsd/netlink: use new libc branch following 0.2
Yann Dirson [Mon, 15 Jan 2024 10:09:40 +0000 (11:09 +0100)]
freebsd/netlink: use new libc branch following 0.2

Update of crate rustix now wants libc 0.2.152, which lives on the
libc-0.2 branch while the main libc branch sails towards 0.3.  To be
able to continue building until the stuff we need gets released as
0.3, without causing our PRs to become unmergeable, a new
freebsd-netlink-0.2 was necessary.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
15 months agoMerge branch 'ci-freebsd-netlink' into 'main'
Yann Dirson [Mon, 15 Jan 2024 09:00:00 +0000 (09:00 +0000)]
Merge branch 'ci-freebsd-netlink' into 'main'

ci: add a build job for freebsd13 with netlink support

See merge request xen-project/xen-guest-agent!62

15 months agoDrop old devscripts/freebsd-fetch-package.sh
Yann Dirson [Thu, 11 Jan 2024 11:42:06 +0000 (12:42 +0100)]
Drop old devscripts/freebsd-fetch-package.sh

Since 88d4faf7764dc581700c5192b76cf85a450add95 and
7caebf0cd73e5bb6c0ddc0d111a377bb44d49186 there is not reason to keep
this script any more.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
15 months agoci: add a build job for freebsd13 with netlink support
Yann Dirson [Thu, 11 Jan 2024 11:18:21 +0000 (12:18 +0100)]
ci: add a build job for freebsd13 with netlink support

Still waiting on the libc PR to land, so we need unofficial branches for
now.

We don't make it a release job because of the unofficial status of those
branches, but we still provide the executable as an artifact for
convenience.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
15 months agoMerge branch 'ci-code-checks' into 'main'
Yann Dirson [Thu, 11 Jan 2024 10:50:14 +0000 (10:50 +0000)]
Merge branch 'ci-code-checks' into 'main'

Add CI jobs for code checks

See merge request xen-project/xen-guest-agent!61

15 months agoApply a few select formatting fixes from fmt
Yann Dirson [Wed, 10 Jan 2024 17:11:53 +0000 (18:11 +0100)]
Apply a few select formatting fixes from fmt

Most of the rest mostly hampers readability.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
15 months agoci: new check job for clippy
Yann Dirson [Wed, 10 Jan 2024 17:02:16 +0000 (18:02 +0100)]
ci: new check job for clippy

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
15 months agoci: separate test-builds from release-builds, as being "just checks"
Yann Dirson [Fri, 1 Dec 2023 11:54:26 +0000 (12:54 +0100)]
ci: separate test-builds from release-builds, as being "just checks"

We'll want to have more checks, and they will naturally fit in that new
stage, rather than delaying test builds with a separate "check" stage.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
15 months agoApply suggestions from clippy for code simplification
Yann Dirson [Wed, 10 Jan 2024 16:56:47 +0000 (17:56 +0100)]
Apply suggestions from clippy for code simplification

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
15 months agoci: make sure to update freebsd package list before trying to install
Yann Dirson [Thu, 11 Jan 2024 10:42:39 +0000 (11:42 +0100)]
ci: make sure to update freebsd package list before trying to install

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
15 months agoMerge branch 'doc-cleanup-vif' into 'main'
Yann Dirson [Wed, 10 Jan 2024 16:47:37 +0000 (16:47 +0000)]
Merge branch 'doc-cleanup-vif' into 'main'

Document removal of stale network info

See merge request xen-project/xen-guest-agent!60

15 months agoDocument removal of stale network info
Yann Dirson [Wed, 10 Jan 2024 16:42:04 +0000 (17:42 +0100)]
Document removal of stale network info

15 months agoMerge branch 'gtn-cleanup-vif' into 'main'
Yann Dirson [Wed, 10 Jan 2024 16:39:26 +0000 (16:39 +0000)]
Merge branch 'gtn-cleanup-vif' into 'main'

Removing all vif entries from xenstore at startup #12

Closes #12

See merge request xen-project/xen-guest-agent!58

15 months agoRemoving all vif entries from xenstore at startup
Guillaume [Fri, 5 Jan 2024 16:45:07 +0000 (17:45 +0100)]
Removing all vif entries from xenstore at startup

When interfaces reported by Xenstore are suppressed while the service is
not running, these data remain. To avoid this we start by removing all
entries from previous agent. Entries that are still valid will be
repopulated immediatly.

Fixes: #12
15 months agoMerge branch 'freebsd-12-eol' into 'main'
Yann Dirson [Tue, 9 Jan 2024 13:10:11 +0000 (13:10 +0000)]
Merge branch 'freebsd-12-eol' into 'main'

ci: restore FreeBSD builds, now with 13.2

See merge request xen-project/xen-guest-agent!59

15 months agoRevert "ci: ignore FreeBSD build failures until new container is ready"
Yann Dirson [Mon, 8 Jan 2024 16:54:23 +0000 (17:54 +0100)]
Revert "ci: ignore FreeBSD build failures until new container is ready"

Now that the FreeBSD jbs can run again...

This reverts commit 9619b77b712e35afb3ed752b9c560bbca08da294.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
15 months agoci: use official package-installing scripts for freebsd
Yann Dirson [Tue, 9 Jan 2024 11:16:20 +0000 (12:16 +0100)]
ci: use official package-installing scripts for freebsd

Note that devscripts/freebsd-fetch-package.sh was written for the CI,
and never worked from Cross.toml.  Switch everything to the
slightly-improved-and-still-undocumented version of the scripts
shipped in the container itself.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
15 months agoci: switch away from EOL'd FreeBSD 12.4 to 13.2
Yann Dirson [Mon, 8 Jan 2024 16:53:59 +0000 (17:53 +0100)]
ci: switch away from EOL'd FreeBSD 12.4 to 13.2

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
15 months agoMerge branch 'cargo-lock' into 'main'
Yann Dirson [Mon, 8 Jan 2024 16:30:29 +0000 (16:30 +0000)]
Merge branch 'cargo-lock' into 'main'

Cargo.lock: update outdated deps

See merge request xen-project/xen-guest-agent!57

15 months agoCargo.lock: update outdated deps
Yann Dirson [Mon, 8 Jan 2024 16:22:49 +0000 (17:22 +0100)]
Cargo.lock: update outdated deps

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
15 months agoMerge branch 'readme-update' into 'main'
Yann Dirson [Mon, 8 Jan 2024 16:14:56 +0000 (16:14 +0000)]
Merge branch 'readme-update' into 'main'

Update README with what's next

See merge request xen-project/xen-guest-agent!54

15 months agoMerge branch 'freebsd-ignore-errors' into 'main'
Yann Dirson [Mon, 8 Jan 2024 16:14:20 +0000 (16:14 +0000)]
Merge branch 'freebsd-ignore-errors' into 'main'

ci: ignore FreeBSD build failures until new container is ready

See merge request xen-project/xen-guest-agent!56

15 months agoci: ignore FreeBSD build failures until new container is ready
Yann Dirson [Mon, 8 Jan 2024 16:07:13 +0000 (17:07 +0100)]
ci: ignore FreeBSD build failures until new container is ready

Updating the cross-rs container needs some time, let's not stop
things here just because that work is not ready yet.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
16 months agoUpdate README with what's next
Olivier Lambert [Mon, 25 Dec 2023 10:35:38 +0000 (11:35 +0100)]
Update README with what's next

Signed-off-by: Olivier Lambert <olivier.lambert@vates.fr>
16 months agoMerge branch 'cargo-lock' into 'main'
Yann Dirson [Fri, 22 Dec 2023 15:56:59 +0000 (15:56 +0000)]
Merge branch 'cargo-lock' into 'main'

Cargo.lock: update outdated deps

See merge request xen-project/xen-guest-agent!53

16 months agoCargo.lock: update outdated deps
Yann Dirson [Fri, 22 Dec 2023 15:45:05 +0000 (16:45 +0100)]
Cargo.lock: update outdated deps

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
16 months agoMerge branch 'ci-cross-aarch64' into 'main'
Yann Dirson [Fri, 22 Dec 2023 12:32:18 +0000 (12:32 +0000)]
Merge branch 'ci-cross-aarch64' into 'main'

WIP ci: cross-build Linux aarch64 binary

See merge request xen-project/xen-guest-agent!52

16 months agoci: cross-build Linux aarch64 binary
Yann Dirson [Thu, 16 Nov 2023 08:46:43 +0000 (09:46 +0100)]
ci: cross-build Linux aarch64 binary

Testbuilding only, as we don't have an obvious use-case to support.

Builds against glibc in a Debian chroot to be able to check
the xenstore build feature.

16 months agoci: more consistency on parallel specification
Yann Dirson [Fri, 22 Dec 2023 11:24:30 +0000 (12:24 +0100)]
ci: more consistency on parallel specification

16 months agoMerge branch 'ci-images-full-path' into 'main'
Yann Dirson [Wed, 20 Dec 2023 16:50:37 +0000 (16:50 +0000)]
Merge branch 'ci-images-full-path' into 'main'

ci: use full path for container images

See merge request xen-project/xen-guest-agent!50

16 months agoMerge branch 'ci-cross-windows' into 'main'
Yann Dirson [Wed, 20 Dec 2023 16:50:23 +0000 (16:50 +0000)]
Merge branch 'ci-cross-windows' into 'main'

Windows CI support

See merge request xen-project/xen-guest-agent!51

16 months agoci: cross-build Windows binary
Yann Dirson [Mon, 20 Nov 2023 11:13:18 +0000 (12:13 +0100)]
ci: cross-build Windows binary

Mostly a PoC, since we're missing crucial bits:
- Xenstore works differently on WIndows, and we don't have a crate
  supporting it yet
- pnet will not build with mingw, needs msvc, and it seems there are
  things to be done before we can use that

16 months agoUse panic!() not abort!()
Yann Dirson [Mon, 18 Dec 2023 15:24:12 +0000 (16:24 +0100)]
Use panic!() not abort!()

Hopefully we won't really need that safeguard, but it's still nice to be
able to compile non non-unix platforms.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
16 months agoci: use full path for container images
Yann Dirson [Wed, 20 Dec 2023 16:31:14 +0000 (17:31 +0100)]
ci: use full path for container images

Much easier to copy-paste them on a podman command-line, alias files
are not always up to date.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
16 months agoMerge branch 'ci-no-scheduled-pkg-source' into 'main'
Yann Dirson [Mon, 18 Dec 2023 09:53:37 +0000 (09:53 +0000)]
Merge branch 'ci-no-scheduled-pkg-source' into 'main'

ci: don't run source packaging when scheduled

See merge request xen-project/xen-guest-agent!49

16 months agoci: don't run source packaging when scheduled
Yann Dirson [Mon, 18 Dec 2023 09:47:30 +0000 (10:47 +0100)]
ci: don't run source packaging when scheduled

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
16 months agoMerge branch 'scheduled-freebsd' into 'main'
Yann Dirson [Mon, 18 Dec 2023 09:17:07 +0000 (09:17 +0000)]
Merge branch 'scheduled-freebsd' into 'main'

ci/freebsd: use proper before_script template

See merge request xen-project/xen-guest-agent!48

16 months agoci/freebsd: use proper before_script template
Yann Dirson [Mon, 18 Dec 2023 08:43:17 +0000 (09:43 +0100)]
ci/freebsd: use proper before_script template

Fixes 27fb1ae87b512efc2c55657108fa27531a26f3ea, should really
investigate why I was not able to test this scheduled job on the PR
first <sigh>.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>