- Apr 10, 2025
-
-
STEVAN Antoine authored
get changes from !206.
-
STEVAN Antoine authored
This MR explains the use of `make.rs` and `nob.rs` in the README for newcomers.
-
STEVAN Antoine authored
get changes from !207.
-
STEVAN Antoine authored
## examples ```bash ./make.rs container list --json | from ndjson | into datetime CreatedAt | into filesize Size VirtualSize | reject CreatedSince ``` or ```bash ./make.rs container list --json | from ndjson | into datetime CreatedAt | into filesize Size VirtualSize | reject CreatedSince | select ID Repository Tag CreatedAt VirtualSize | update Tag { str substring 0..<7 } ``` ## changelog - transform options of `container` to sub-subcommands - `container` --> `container build` - `container --login` --> `container login` - `container --push` --> `container push` - add `container list` to print the local images for the GitLab and GitHub repositories - `container list` will print in a pretty table - `container list --json` will print as NDJSON, i.e. one image per line as JSON - use wrappers around `nob::run_cmd_as_vec_and_fail!` - `extend_and_run` to run a partial command with an extra vector of args - `extend_and_run_and_capture_silent` to run a partial command with an extra vector of args and silently capture the stdout into a string - this allows to get rid of the `#[rustfmt::skip]` _directive_ on `main` and format the code not too aggressively
-
- Apr 08, 2025
-
-
STEVAN Antoine authored
get changes from !205.
-
STEVAN Antoine authored
This adds a Dockerfile to build an image for the pipelines, once and for all, until we decide to bump the Rust toolchain. ## changelog - add `.gitlab-ci.dockerfile` which - uses `rust:latest` as a base (it appears using `alpine:latest` is both bigger and slower
🤷 ) - installs basic system dependencies - uses `rust-toolchain.toml` to install the toolchain of the project - installs `cargo-script` - use [`gitlab-registry.isae-supaero.fr/dragoon/komodo:bcb0e6b5`](https://gitlab.isae-supaero.fr/dragoon/komodo/container_registry/42) in the GitLab pipelines and [`ghcr.io/dragoon-rs/dragoon/komodo:bcb0e6b5`](https://github.com/orgs/dragoon-rs/packages/container/dragoon%2Fkomodo/388672772?tag=bcb0e6b5f73420762f6208700a43291e0066c2c3) in the GitHub pipelines and remove the "manual" dependency installation - add `./make.rs container`, `./make.rs container --login` and `./make.rs container --push` - uses `nob.rs@7ea6be8` to capture output of commands with `+` syntax - get the current Git SHA as the tag of the image - instructions have been added to the `README.md` for later reference ## mirror | id | head_sha | status | conclusion | run_started_at | | ------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------- | --------- | ---------- | --------------------- | | [`14262324842`](https://github.com/dragoon-rs/komodo/actions/runs/14262324842) | [`c93d9c87`](https://github.com/dragoon-rs/komodo/commit/c93d9c87928964aa20f347c1302757a06d2da628) | completed | success | `2025-04-04T11:28:30` | | [`14262372440`](https://github.com/dragoon-rs/komodo/actions/runs/14262372440) | [`f905e576`](https://github.com/dragoon-rs/komodo/commit/f905e57633f5e3dc7b1c38faa463daf54fb674bb) | completed | cancelled | `2025-04-04T11:31:12` | | [`14262477396`](https://github.com/dragoon-rs/komodo/actions/runs/14262477396) | [`21b26efd`](https://github.com/dragoon-rs/komodo/commit/21b26efd988b2d8d7159d24cae37341135cfb1b9) | completed | success | `2025-04-04T11:36:59` | | [`14263257396`](https://github.com/dragoon-rs/komodo/actions/runs/14263257396) | [`5bdca8cd`](https://github.com/dragoon-rs/komodo/commit/5bdca8cdb96e6ac2c25035513721485bcb08645d) | completed | success | `2025-04-04T12:22:10` | | [`14263314072`](https://github.com/dragoon-rs/komodo/actions/runs/14263314072) | [`bcb0e6b5`](https://github.com/dragoon-rs/komodo/commit/bcb0e6b5f73420762f6208700a43291e0066c2c3) | completed | success | `2025-04-04T12:25:27` | | [`14263368772`](https://github.com/dragoon-rs/komodo/actions/runs/14263368772) | [`ddd4a2a9`](https://github.com/dragoon-rs/komodo/commit/ddd4a2a9c1c28f4502814065de6aeca00b8b7a2f) | completed | success | `2025-04-04T12:28:30` | | [`14263575177`](https://github.com/dragoon-rs/komodo/actions/runs/14263575177) | [`f9400e61`](https://github.com/dragoon-rs/komodo/commit/f9400e619a066294714024174dacd4a0501a369c) | completed | success | `2025-04-04T12:40:44` | ## speed the performance appears to be around - ~ 1min 35sec on GitLab (see [8331](https://gitlab.isae-supaero.fr/dragoon/komodo/-/pipelines/8331), [8332](https://gitlab.isae-supaero.fr/dragoon/komodo/-/pipelines/8332), [8333](https://gitlab.isae-supaero.fr/dragoon/komodo/-/pipelines/8333), [8334](https://gitlab.isae-supaero.fr/dragoon/komodo/-/pipelines/8334), [8335](https://gitlab.isae-supaero.fr/dragoon/komodo/-/pipelines/8335), [8336](https://gitlab.isae-supaero.fr/dragoon/komodo/-/pipelines/8336), [8337](https://gitlab.isae-supaero.fr/dragoon/komodo/-/pipelines/8337), [8338](https://gitlab.isae-supaero.fr/dragoon/komodo/-/pipelines/8338), [8339](https://gitlab.isae-supaero.fr/dragoon/komodo/-/pipelines/8339), [8340](https://gitlab.isae-supaero.fr/dragoon/komodo/-/pipelines/8340), [8341](https://gitlab.isae-supaero.fr/dragoon/komodo/-/pipelines/8341), all after b82e8950) - ~ 4min on GitHub (see [14263257396](https://github.com/dragoon-rs/komodo/actions/runs/14263257396), [14263314072](https://github.com/dragoon-rs/komodo/actions/runs/14263314072), [14263368772](https://github.com/dragoon-rs/komodo/actions/runs/14263368772), [14263575177](https://github.com/dragoon-rs/komodo/actions/runs/14263575177), all after [5bdca8cd](https://github.com/dragoon-rs/komodo/commit/5bdca8cdb96e6ac2c25035513721485bcb08645d))
-
- Apr 03, 2025
-
-
STEVAN Antoine authored
-
STEVAN Antoine authored
get latest changes.
-
STEVAN Antoine authored
This should close #19. ## changelog - triggers pipeline in the GitHub mirror on each push - add `./scripts/get-mirror-pipelines.nu` ## the pipelines >
❗ **Important** > > i just had to add `run-mirror-pipeline-everytime` to the list of protected branches and trigger the push with an empty commit and it runs > > and then a single call to `nu scripts/get-mirror-pipelines.nu "run-mirror-pipeline-everytime"` gives the table below | id | head_sha | status | conclusion | run_started_at | | ------------------------------------------------------------------------------ | ---------------------------------------- | --------- | ---------- | ------------------- | | [`14238533729`](https://github.com/dragoon-rs/komodo/actions/runs/14238533729) | 2f32ee59 | completed | success | 2025-04-03T08:32:31 | | [`14238724666`](https://github.com/dragoon-rs/komodo/actions/runs/14238724666) | e7587675 | completed | success | 2025-04-03T08:42:19 | | [`14240494187`](https://github.com/dragoon-rs/komodo/actions/runs/14240494187) | 3c223dd6 | completed | success | 2025-04-03T10:13:02 | | [`14240642763`](https://github.com/dragoon-rs/komodo/actions/runs/14240642763) | cbc1f7f9 | completed | success | 2025-04-03T10:21:04 | | [`14240848529`](https://github.com/dragoon-rs/komodo/actions/runs/14240848529) | 7b34fc8a | completed | success | 2025-04-03T10:32:06 | -
STEVAN Antoine authored
this removes the `check-nushell-files.nu` script i left in !200.
-
STEVAN Antoine authored
that's an attempt at using Rust to build itself. this is using [`gitlab.isae-supaero.fr:a.stevan/nob.rs@e4b03cdd`](a.stevan/nob.rs@e4b03cdd). >
💡 **Note** > > to be honest, this is not a 100% replacement of the `Makefile`... > > `make.rs` does a lot more and provides a full CLI with easy-to-use options, e.g. instead of `make fmt` and `make fmt-check`, we now have `./make.rs fmt` and `./make.rs fmt --check` > > (see the API below) ## the API ``` Usage: make [OPTIONS] [COMMAND] Commands: fmt Formats the code check Checks the code clippy Runs Clippy test Runs the tests version Shows the version of all the tools used, doc Builds the documentation help Print this message or the help of the given subcommand(s) Options: -h, --help Print help -V, --version Print version ``` ``` Usage: make fmt [OPTIONS] Options: -c, --check Only checks instead of really formatting ``` ``` Usage: make check ``` ``` Usage: make clippy ``` ``` Usage: make test [OPTIONS] Options: -v, --verbose Be extra verbose with the output of the tests -e, --examples Run the examples instead of regular tests ``` ``` Usage: make version ``` ``` Usage: make doc [OPTIONS] Options: -o, --open Open the documentation in the browser -p, --private Document private items -f, --features Document all features ``` ## running the pipeline in the GitHub mirror ```bash const GH_API_OPTIONS = [ -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" ] let res = gh api ...$GH_API_OPTIONS /repos/dragoon-rs/komodo/actions/runs | from json ``` ```bash let runs = $res.workflow_runs | where head_branch == "use-nob-to-build" | select id head_sha status conclusion run_started_at | into datetime run_started_at | sort-by run_started_at ``` ```bash $runs | update id { $"[`($in)`]\(https://github.com/($GITHUB_MIRROR)/actions/runs/($in)\)" } | update run_started_at { format date "%Y-%m-%dT%H:%M:%S" } | to md --pretty ``` | id | head_sha | status | conclusion | run_started_at | | ------------------------------------------------------------------------------ | ---------------------------------------- | --------- | ---------- | ------------------- | | [`14237650542`](https://github.com/dragoon-rs/komodo/actions/runs/14237650542) | d67f1cfd | completed | success | 2025-04-03T07:44:14 | | [`14237741570`](https://github.com/dragoon-rs/komodo/actions/runs/14237741570) | 9ef598a1 | completed | success | 2025-04-03T07:49:40 | | [`14238086977`](https://github.com/dragoon-rs/komodo/actions/runs/14238086977) | 0a79edf3 | completed | success | 2025-04-03T08:09:13 | | [`14238175174`](https://github.com/dragoon-rs/komodo/actions/runs/14238175174) | a84b2b12 | completed | success | 2025-04-03T08:13:52 | | [`14239395984`](https://github.com/dragoon-rs/komodo/actions/runs/14239395984) | 8594c9bf | completed | success | 2025-04-03T09:16:00 |
-
- Apr 02, 2025
-
-
STEVAN Antoine authored
get changes from !201.
-
STEVAN Antoine authored
This is to complete the `check-mirror.nu` script with information about the CI runs. The current output of ```bash nu scripts/check-mirror.nu ...[ https://gitlab.isae-supaero.fr/dragoon/komodo https://github.com/dragoon-rs/komodo main ] ``` is ``` [INF] adding remotes [INF] fetching [INF] cleaning [ OK] mirror is up to date [INF] pulling mirror runs #─┬────id─────┬────────────────head_sha────────────────┬─status──┬conclusion┬run_started_at 0 │11950217125│de4266c0│completed│success │4 months ago 1 │11950604920│202d8bcc│completed│success │4 months ago 2 │11950873603│702cd5eb│completed│success │4 months ago 3 │12028360471│57a96c02│completed│success │4 months ago 4 │12028432364│07602875│completed│success │4 months ago 5 │12028781541│f2a76fbb│completed│success │4 months ago 6 │12631165433│11a5b59d│completed│success │2 months ago 7 │13008608156│cc412625│completed│success │2 months ago 8 │13033206333│5511404f│completed│success │2 months ago 9 │13113244065│ab0d9a8b│completed│success │2 months ago 10│13679188387│3c8afac4│completed│success │3 weeks ago 11│14191103891│b5381fda│completed│success │a day ago 12│14214853530│b7e2d99d│completed│success │an hour ago 13│14215431531│0d7a5cd6│completed│success │32 minutes ago ──┴───────────┴────────────────────────────────────────┴─────────┴──────────┴────────────── ```
-
STEVAN Antoine authored
get the changes from !200.
-
STEVAN Antoine authored
this should close #17. SACLIN has been moved to [`gitlab.isae-supaero.fr:dragoon/komodo.nu`](https://gitlab.isae-supaero.fr/dragoon/komodo.nu).
-
STEVAN Antoine authored
## usage ```bash nu scripts/check-mirror.nu ...[ https://gitlab.isae-supaero.fr/dragoon/komodo https://github.com/dragoon-rs/komodo main ] ``` will - check the Nushell version and throw a warning if mismatch - add temporary remotes with random names - fetch the temporary remotes - get the revision of the `$branch` for both temporary remotes - clean the temporary remotes - show a message if the two revisions are not the same and how many commits they are different > **Note** > > this does not conflict with #17
-
- Apr 01, 2025
-
-
STEVAN Antoine authored
-
STEVAN Antoine authored
-
STEVAN Antoine authored
-
STEVAN Antoine authored
-
STEVAN Antoine authored
-
STEVAN Antoine authored
-
STEVAN Antoine authored
-
STEVAN Antoine authored
-
STEVAN Antoine authored
-
STEVAN Antoine authored
-
STEVAN Antoine authored
-
STEVAN Antoine authored
-
STEVAN Antoine authored
-
STEVAN Antoine authored
-
STEVAN Antoine authored
-
STEVAN Antoine authored
-
STEVAN Antoine authored
-
STEVAN Antoine authored
-
STEVAN Antoine authored
-
STEVAN Antoine authored
-
STEVAN Antoine authored
-
STEVAN Antoine authored
-
STEVAN Antoine authored
-
STEVAN Antoine authored
-