Commit Graph

34 Commits

Author SHA1 Message Date
Vladyslav Nikonov 4258f06292 ci: check for typos using typos-cli (#315) 2023-12-01 17:27:36 +00:00
Benoît Cortier e10bf4fc38 ci: check for dirty lock files (#277)
Note that we can’t really use the --locked option of cargo, because to
run xtask, we need to compile it using cargo, and thus the lock files
are already "refreshed" as far as cargo is concerned. Instead, this new
task will check for modifications to the lock files using git-status
porcelain. The side benefit is that we can check for npm lock files too.
2023-11-09 21:53:08 -05:00
Benoît CORTIER fbe8921528 ci: adjust npm-publish workflow 2023-11-01 15:51:40 -04:00
Benoît Cortier b8ff6fee25 ci: add a workflow to publish the npm package (#246) 2023-11-01 08:49:10 -04:00
Benoît Cortier a4fee87c49 ci: make sure the coverage workflow is disabled for forks (#222) 2023-10-16 11:31:40 -04:00
Benoît CORTIER 774a8634da ci: enable dependabot pull requests 2023-10-05 10:58:16 -04:00
Benoît Cortier aeec4c0a67 ci: disable coverage jobs when running on forks (#185) 2023-08-28 17:50:24 +00:00
Benoît Cortier 1132126c2a ci(cov): use GITHUB_TOKEN instead of DEVOLUTIONSBOT_TOKEN (#179) 2023-08-24 09:56:12 -04:00
Benoît Cortier 0b408200a8 ci: wrong comparison operator for coverage diff (#176) 2023-08-15 10:50:00 -05:00
Benoît CORTIER f209c9a77b ci(fuzz): minimize corpus only for current target 2023-06-15 15:08:05 -04:00
Benoît Cortier b98443b407 chore: fix xtask for windows (#150) 2023-06-14 22:16:24 +00:00
Benoît CORTIER 9aaf05ef73 ci: coverage reporting in PRs
Adds a new workflow reporting code coverage when opening a pull request.

The idea is to help find blind spots in our test suites and inform where testing
efforts should go, but there is no hard requirement related to the numbers.
We are allowed to merge pull requests regardless of the coverage percentage,
and even if the coverage workflow fails.

Past coverage data is stored in a separate branch (cov-data).
It gets updated when the workflow run against master.
2023-05-23 08:31:19 -04:00
Benoît CORTIER 5d88531259 ci: optimize speed and cache 2023-05-23 08:31:19 -04:00
Benoît CORTIER 493e8f13a4 ci: add web client check job 2023-05-23 08:31:19 -04:00
Benoît CORTIER 20e6025c6c ci: run fuzz jobs longer and in parallel 2023-05-10 13:58:53 -04:00
Benoît CORTIER fce63eaf57 ci: fix fuzz workflow 2023-05-10 13:58:53 -04:00
Benoît Cortier c81f0f0c0d ci: separate workflow for fuzzing using corpus (#124)
Fetching the corpus in the main CI worflow is a problem because
it will fail when the azure storage is modified during the download:

> ERROR: The specified blob does not exist.
> RequestId:76c40723-901e-0098-38b9-8215c9000000
> Time:2023-05-09T21:03:10.8992962Z
> ErrorCode:BlobNotFound

This occurs when there are multiple runs at the same time. This
happens for example when two pull requests are opened.
This will cause CI to go red for no good reason.

With this patch, main CI will simply run the fuzz targets without
using the corpus, as a sanity check. Then, another workflow will
run at 03:12 AM UTC on Sunday, Monday, and Saturday using the corpus
from azure storage.

Future work: make the scheduled run fuzz longer and in parallel.
2023-05-10 09:25:41 -04:00
Benoît CORTIER 01a10939bd ci: use cargo xtask commands 2023-04-28 18:00:10 -04:00
Benoît Cortier 710a51f24a refactor: re-organize workspace (#101)
- Remove Tauri client.

  It was useful when initially prototyping the Web Component, but now
  it’s more of a maintenance burden. It’s notably not convenient to
  check in CI. Since we now have another native alternative that does
  not require any GPU (`ironrdp-client`), it’s probably a good time to
  part ways.

- Move wasm package into the workspace.

- Move Rust crates into a `crates` subfolder.

- Introduce `xtask` crate for free-form automation.
2023-03-29 19:09:15 -04:00
Benoît Cortier 407cb24121 ci: fix cargo-fuzz installation (#92) 2023-03-10 15:38:45 -05:00
Benoît CORTIER 85b07450ae ci: use azure account storage to store fuzzing corpus 2023-03-10 14:20:30 -05:00
Benoît Cortier c949f5b46c fix(graphics): harden RLE implementation (#86)
Mostly added bound checks in case an invalid RLE-compressed bitmap is
received. Implementation have been fuzzed for a few hours in order to
find blind spots.
2023-03-07 07:01:22 -05:00
Benoît CORTIER 5908f57bcf ci: update ubuntu runner 2023-02-07 15:52:42 -05:00
Benoît CORTIER e01d3263d9 ci: check compilation for wasm module and Tauri app 2023-01-26 22:20:43 -05:00
devolutionsinfra 5dcde3745c chore: [skip ci] updating .github/CODEOWNERS (managed by devops) 2022-10-28 08:52:23 -04:00
Benoît CORTIER 2f089c9a8f ci: fix clippy job
`-D warnings` was missing.
2022-04-20 15:55:16 -04:00
Benoît CORTIER fd97d7eaf3 ci: use checkout@v3 2022-04-15 13:39:34 -04:00
Benoît CORTIER 2837d104bf ci: add rustfmt component if necessary 2022-04-15 13:39:34 -04:00
Benoît CORTIER 816a665e93 ci: add dependabot config
It is enabled only for security updates.
2022-04-15 13:39:34 -04:00
Benoît CORTIER 142cdc07ae ci: migrate to GitHub Actions 2022-04-15 13:39:34 -04:00
devolutionsinfra 8b69d46f98 chore: [skip ci] updating .github/CODEOWNERS (managed by devops) 2022-03-10 10:47:23 -05:00
Jean-Francois Theroux 8e9d8dc777 chore: [skip ci] updating .github/CODEOWNERS (managed by devops) 2022-03-10 10:11:12 -05:00
Jean-Francois Theroux e44d5cd14e chore: [skip ci] updating .github/CODEOWNERS (managed by devops) 2022-03-03 16:15:50 -05:00
Randy Bobandy d81760753e ci: updating .github/CODEOWNERS 2022-02-24 08:33:58 -05:00