summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
3 daysMerge pull request 'rename actions for clarity' (#106) from trusted-cherries ↵HEADmainLars Wirzenius4-56/+34
into main Reviewed-on: https://codeberg.org/ambient/ambient-driver/pulls/106
3 daysrefactor: rename Action to UnsafeActionLars Wirzenius4-23/+23
This makes it clearer that these actions are not safe and hopefully reduces the likelihood of accidentally running them outside the isolated VM. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
3 daysrefactor: combine PreAction and PostAction into TrustedActionLars Wirzenius3-35/+13
This is a step towards running pre- and post-actions in a trusted VM. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-04-14Merge pull request 'feat: allow config fields to use byte unit suffixes' ↵Lars Wirzenius3-6/+328
(#104) from config-units into main Reviewed-on: https://codeberg.org/ambient/ambient-driver/pulls/104
2024-04-14feat: allow config fields to use byte unit suffixesLars Wirzenius3-6/+328
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-03-31Merge pull request 'TEMP: diable lintien in deb action, for now' (#101) from ↵Lars Wirzenius1-1/+2
no-lintian into main Reviewed-on: https://codeberg.org/ambient/ambient-driver/pulls/101
2024-03-31TEMP: diable lintien in deb action, for nowLars Wirzenius1-1/+2
I need to get my radicle-native-ci package build and I can't find a way to override the lintian warning I get, so I'll disable lintian, for now. Eventually we'll need to be able to do this in the projects file. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-03-29Merge pull request 'feat: use copy-on-write qcow2 images for VM image' ↵Lars Wirzenius1-2/+29
(#100) from cow into main Reviewed-on: https://codeberg.org/ambient/ambient-driver/pulls/100
2024-03-29feat: use copy-on-write qcow2 images for VM imageLars Wirzenius1-2/+29
Previously, we made a copy. This is faster. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-03-29Merge pull request 'fix: reverse check for dirty git repo' (#99) from fix ↵Lars Wirzenius1-1/+1
into main Reviewed-on: https://codeberg.org/ambient/ambient-driver/pulls/99
2024-03-29fix: reverse check for dirty git repoLars Wirzenius1-1/+1
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-03-29Merge pull request 'refactor: drop builder pattern for Decision' (#98) from ↵Lars Wirzenius1-105/+97
refactor into main Reviewed-on: https://codeberg.org/ambient/ambient-driver/pulls/98
2024-03-29refactor: drop builder pattern for DecisionLars Wirzenius1-105/+97
It was a little easier for testing, but not worth having for production code. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-03-29Merge pull request 'refactor: add type to capture the "run or don't run" ↵Lars Wirzenius2-42/+293
decision' (#96) from run-decision-test into main Reviewed-on: https://codeberg.org/ambient/ambient-driver/pulls/96
2024-03-29refactor: add type to capture the "run or don't run" decisionLars Wirzenius2-42/+293
The existing logic is faulty, and hard for me to follow. The new type has tests, to hopefully making it harder for me to break things again. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-03-17Merge pull request 'feat: fail deb action if lintian finds problems' (#93) ↵Lars Wirzenius1-1/+1
from lintian-fail into main Reviewed-on: https://codeberg.org/ambient/ambient-driver/pulls/93
2024-03-17feat: fail deb action if lintian finds problemsLars Wirzenius1-1/+1
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-03-16Merge pull request 'feat: allow --dput as an alias for --dput-target' (#86) ↵Lars Wirzenius1-2/+2
from dput into main Reviewed-on: https://codeberg.org/ambient/ambient-driver/pulls/86
2024-03-16feat: allow --dput as an alias for --dput-targetLars Wirzenius1-2/+2
Also, --rsync as an alias for --target. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-03-16Merge pull request 'feat: run "cargo fetch" with --locked' (#85) from ↵Lars Wirzenius1-0/+1
cargo-fetch-locked into main Reviewed-on: https://codeberg.org/ambient/ambient-driver/pulls/85
2024-03-16feat: run "cargo fetch" with --lockedLars Wirzenius1-0/+1
This _should_ tell cargo fetch to get the versions in Cargo.lock, rather than the newest semver-compatible version. The newer version isn't in Cargo.lock, which means the build will fail under Ambient. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-03-16Merge pull request 'fix: regex has no way to match EOL' (#84) from fix into mainLars Wirzenius1-1/+1
Reviewed-on: https://codeberg.org/ambient/ambient-driver/pulls/84
2024-03-16fix: regex has no way to match EOLLars Wirzenius1-1/+1
In the stderr output, there is a newline to mark the end of a line. However, when Python matches the string against the regex, it doesn't treat the newline as EOL. Work around this by not matching with $. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-03-09Merge pull request 'feat: set a default log level' (#79) from ↵Lars Wirzenius1-1/+5
default-log-level into main Reviewed-on: https://codeberg.org/ambient/ambient-driver/pulls/79
2024-03-09feat: set a default log levelLars Wirzenius1-1/+5
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-02-25Merge pull request 'fix: messaging about whether and why run is run or ↵Lars Wirzenius1-3/+5
skipped' (#77) from bugfix into main Reviewed-on: https://codeberg.org/ambient/ambient-driver/pulls/77
2024-02-25fix: messaging about whether and why run is run or skippedLars Wirzenius1-3/+5
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-02-24Merge pull request 'deb' (#76) from deb into mainLars Wirzenius2-232/+225
Reviewed-on: https://codeberg.org/ambient/ambient-driver/pulls/76
2024-02-24feat! drop rustup_setupLars Wirzenius1-34/+0
It's no longer useful. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-02-24feat! do Debian packages without dh-cargoLars Wirzenius2-202/+229
Projects using the deb step should be adapted accordingly. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-02-21Merge pull request 'feat: allow configuring max size of cache, artifacts' ↵Lars Wirzenius4-7/+43
(#71) from config-sizes into main Reviewed-on: https://codeberg.org/ambient/ambient-driver/pulls/71
2024-02-21feat: allow configuring max size of cache, artifactsLars Wirzenius4-7/+43
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-02-20Merge pull request 'build: binaries are statically linked with musl in the ↵Lars Wirzenius4-3/+5
deb' (#70) from musl into main Reviewed-on: https://codeberg.org/ambient/ambient-driver/pulls/70
2024-02-20build: binaries are statically linked with musl in the debLars Wirzenius4-3/+5
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-02-14Merge pull request 'build: add Debian packaging' (#69) from debian into mainLars Wirzenius8-0/+47
Reviewed-on: https://codeberg.org/ambient/ambient-driver/pulls/69
2024-02-14build: add Debian packagingLars Wirzenius8-0/+47
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-02-10Merge pull request 'fix: cargo_clippy actions works in offline mode' (#68) ↵Lars Wirzenius1-1/+9
from fix into main Reviewed-on: https://codeberg.org/ambient/ambient-driver/pulls/68
2024-02-10fix: cargo_clippy actions works in offline modeLars Wirzenius1-1/+9
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-02-03Merge pull request 'fix: if clippy finds any problems, fail the action' ↵Lars Wirzenius1-1/+4
(#67) from clippy-deny into main Reviewed-on: https://codeberg.org/ambient/ambient-driver/pulls/67
2024-02-03fix: if clippy finds any problems, fail the actionLars Wirzenius1-1/+4
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-01-27Merge pull request 'feat: have a per-project dependencies directory' (#66) ↵Lars Wirzenius3-3/+11
from depsdir into main Reviewed-on: https://codeberg.org/ambient/ambient-driver/pulls/66
2024-01-27feat: have a per-project dependencies directoryLars Wirzenius3-3/+11
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-01-26feat! add a dput post-plan actionLars Wirzenius3-21/+17
Also drop the `publish-artifacts` field from the projects file. This is a breaking change. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-01-26feat! add rsync post-plan actionLars Wirzenius3-20/+60
This is a breaking change as it changes how the rsync effect is achieved. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-01-26refactor: pass around a reference to a State, not a statedir pathLars Wirzenius4-11/+16
Gotta use them types. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-01-26feat: put artifacts into a per-project directoryLars Wirzenius4-7/+29
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-01-26feat! drop Project::artifacts field and methodLars Wirzenius1-5/+0
It's not currently used anywhere. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-01-20Merge pull request 'fixes' (#61) from fmt into mainLars Wirzenius2-5/+2
Reviewed-on: https://codeberg.org/ambient/ambient-driver/pulls/61
2024-01-20fix(CargoFmt): run in check mode, drop meaningless optionsLars Wirzenius1-4/+1
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-01-20fix: allow cache drive to be 10 gigsLars Wirzenius1-1/+1
This really to made into a config setting. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author