dependabot[bot]
619707990a
build(deps): bump tj-actions/changed-files from 050a3d3360d29711ee9d8210fc639d902d23ad07 to 115870536a85eaf050e369291c7895748ff12aea ( #2177 )
...
build(deps): bump tj-actions/changed-files
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files ) from 050a3d3360d29711ee9d8210fc639d902d23ad07 to 115870536a85eaf050e369291c7895748ff12aea.
- [Release notes](https://github.com/tj-actions/changed-files/releases )
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md )
- [Commits](050a3d3360...115870536a
)
---
updated-dependencies:
- dependency-name: tj-actions/changed-files
dependency-version: 115870536a85eaf050e369291c7895748ff12aea
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-06 05:08:16 +00:00
dependabot[bot]
8c0e1b27a3
build(deps): bump tj-actions/changed-files from 6f67ee9ac810f0192ea7b3d2086406f97847bcf9 to 050a3d3360d29711ee9d8210fc639d902d23ad07 ( #2169 )
...
build(deps): bump tj-actions/changed-files
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files ) from 6f67ee9ac810f0192ea7b3d2086406f97847bcf9 to 050a3d3360d29711ee9d8210fc639d902d23ad07.
- [Release notes](https://github.com/tj-actions/changed-files/releases )
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md )
- [Commits](6f67ee9ac8...050a3d3360
)
---
updated-dependencies:
- dependency-name: tj-actions/changed-files
dependency-version: 050a3d3360d29711ee9d8210fc639d902d23ad07
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-30 15:49:06 +00:00
Jiahao XU
1394d1bbda
Fix glibc detection on ubuntu 24.02 ( #2143 )
...
* Fix glibc detection on ubuntu 24.02
On ubuntu 24.02, glibc are installed in:
```
/usr/lib/aarch64-linux-gnu/libc.so.6
/usr/lib/aarch64-linux-gnu/libc.so
```
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Add tests for ubuntu-24.02-arm
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Fix CI: Add detect-targets-ubuntu-arm-test
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Bump ubuntu-20.04 to ubuntu-22.04
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Update outdated comment in detect-targets-ubuntu-arm-test in ci.yml
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
---------
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-05-07 08:43:36 +00:00
Jiahao XU
38e42845bc
Bump ziglang to latest version ( #2139 )
...
* Bump ziglang to latest version
to fix the erorr in 4154918965
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Disable icf on linux
since latest zig-cc does not support it
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Disable cargo-auditable
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
---------
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-05-05 13:52:01 +00:00
dependabot[bot]
b288890787
build(deps): bump tj-actions/changed-files from 0b975f61488402a699abcebd6a1e25924cf85218 to 6f67ee9ac810f0192ea7b3d2086406f97847bcf9 ( #2115 )
...
build(deps): bump tj-actions/changed-files
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files ) from 0b975f61488402a699abcebd6a1e25924cf85218 to 6f67ee9ac810f0192ea7b3d2086406f97847bcf9.
- [Release notes](https://github.com/tj-actions/changed-files/releases )
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md )
- [Commits](0b975f6148...6f67ee9ac8
)
---
updated-dependencies:
- dependency-name: tj-actions/changed-files
dependency-version: 6f67ee9ac810f0192ea7b3d2086406f97847bcf9
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-07 01:52:11 +00:00
dependabot[bot]
7790943190
build(deps): bump tj-actions/changed-files from 0fee5fb278312d962ff465bb38dc4cae9f446de2 to 0b975f61488402a699abcebd6a1e25924cf85218 ( #2092 )
...
build(deps): bump tj-actions/changed-files
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files ) from 0fee5fb278312d962ff465bb38dc4cae9f446de2 to 0b975f61488402a699abcebd6a1e25924cf85218.
- [Release notes](https://github.com/tj-actions/changed-files/releases )
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md )
- [Commits](0fee5fb278...0b975f6148
)
---
updated-dependencies:
- dependency-name: tj-actions/changed-files
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-19 01:47:44 +00:00
dependabot[bot]
2a0dbc27d2
build(deps): bump tj-actions/changed-files from 531f5f7d163941f0c1c04e0ff4d8bb243ac4366f to 0fee5fb278312d962ff465bb38dc4cae9f446de2 ( #2088 )
...
build(deps): bump tj-actions/changed-files
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files ) from 531f5f7d163941f0c1c04e0ff4d8bb243ac4366f to 0fee5fb278312d962ff465bb38dc4cae9f446de2.
- [Release notes](https://github.com/tj-actions/changed-files/releases )
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md )
- [Commits](531f5f7d16...0fee5fb278
)
---
updated-dependencies:
- dependency-name: tj-actions/changed-files
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-18 02:58:25 +00:00
dependabot[bot]
e24cc406c6
build(deps): bump tj-actions/changed-files from 9200e69727eb73eb060652b19946b8a2fdfb654b to 531f5f7d163941f0c1c04e0ff4d8bb243ac4366f ( #2087 )
...
build(deps): bump tj-actions/changed-files
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files ) from 9200e69727eb73eb060652b19946b8a2fdfb654b to 531f5f7d163941f0c1c04e0ff4d8bb243ac4366f.
- [Release notes](https://github.com/tj-actions/changed-files/releases )
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md )
- [Commits](9200e69727...531f5f7d16
)
---
updated-dependencies:
- dependency-name: tj-actions/changed-files
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-17 02:11:09 +00:00
Félix Saparelli
e017e53588
security: pin tj-actions/changed-files to a non-compromised commit ( #2086 )
...
pin tj-actions/changed-files to a non-compromised commit
https://www.stepsecurity.io/blog/harden-runner-detection-tj-actions-changed-files-action-is-compromised
Signed-off-by: Félix Saparelli <felix@passcod.name>
2025-03-15 05:14:48 +00:00
Jiahao XU
7c38109b23
Simplify release-pr.yml ( #2070 )
...
Release-plz / Release-plz (push) Waiting to run
We only want to use it for cargo-binstall release
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-02-28 13:29:25 +00:00
Jiahao XU
67b2c6aada
Fix creating PR in upgrade-transitive-deps.yml ( #2012 )
...
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2025-01-10 06:55:03 +00:00
Jiahao XU
d22433799a
Fix permission of release-pr.yml ( #1988 )
...
It needs permission pull-request to create PR
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-11-29 10:39:52 +00:00
Jiahao XU
f95b696a7a
Run CI on main whenever dependencies have changed ( #1987 )
...
To update the cache.
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-11-29 10:22:18 +00:00
Martijn Pieters
dabb630e7f
ci: Correct variable used in install tests ( #1977 )
...
The `STRIP_V` env var should be set from the `set_binstall_version`
matrix variable.
While here, ensure that the install-script workflow is run whenever
the workflow itself is changed (in addition to the install scripts
themselves).
2024-11-20 11:12:13 +00:00
Martijn Pieters
266e627928
Fix installer downloads for specific releases ( #1976 )
...
* Fix installer downloads for specific releases
Github download urls for a specific release uses the pattern `../releases/download/[RELEASE]/..`, which differs from the latest release URL which uses `../releases/latest/download/..`.
For convenience, if `BINSTALL_VERSION` is set but doesn't start with `v`, the v is prefixed.
* ci: Set BINSTALL_VERSION in install script tests
When running the install-script workflow in Github Actions, add matrix
options for not setting the variable, setting it to the latest release
with the `v` prefix, and setting it to the latest release without the
`v` prefix.
2024-11-20 08:08:08 +00:00
Jiahao XU
a85dc994eb
CI: Run ci.yml on every Sat ( #1934 )
...
Make sure we have up-to-date cache.
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-10-13 00:50:57 +00:00
Jiahao XU
61c9231401
CI: Fix binstalk-git-repo-api on PR of forks ( #1932 )
...
* Rm CI_UNIT_TEST_GITHUB_TOKEN fallback for unit-tests
As it would break unit testing
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* CI: Fix gh_api_client.rs test
Ignore empty gh token
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Update crates/binstalk-git-repo-api/src/gh_api_client.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Update crates/binstalk-git-repo-api/src/gh_api_client.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
---------
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-10-12 10:12:53 +00:00
dependabot[bot]
50bee16581
build(deps): bump tj-actions/changed-files from 44 to 45 ( #1893 )
...
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files ) from 44 to 45.
- [Release notes](https://github.com/tj-actions/changed-files/releases )
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md )
- [Commits](https://github.com/tj-actions/changed-files/compare/v44...v45 )
---
updated-dependencies:
- dependency-name: tj-actions/changed-files
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-22 03:22:31 +00:00
Jiahao XU
d02d7b2a69
Fix setting release to latest in release-cli.yml ( #1879 )
...
* Fix setting release to latest in release-cli.yml
Using gh-release-edit
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Update .github/workflows/release-cli.yml
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
---------
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-08-12 13:57:22 +00:00
Jiahao XU
5d57d4506e
Fix CI blocked due to cargo-binstall rate-limit ( #1860 )
...
* Update gh-action.yml
Use CI_RELEASE_TEST_GITHUB_TOKEN if found as that one has less power
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Update install-script.yml
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* RM outdated comment in gh-action.yml
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Pass github token to cargo-bins/cargo-binstall action in release-cli.yml
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Pass github-token to taiki-e/install-action in release-pr.yml
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
---------
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-08-03 04:40:18 +00:00
Jiahao XU
9f3bfa9ca3
Switch back to macos-latest ( #1855 )
...
macos-latest is now an alias of macos-14 M1
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-07-31 12:49:13 +00:00
Jiahao XU
c635ad6f95
CI: Add release-plz to release library crates ( #1850 )
...
* Create release-plz.yml
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Disable release-plz for cargo-binstall
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: Félix Saparelli <felix@passcod.name>
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
---------
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
Co-authored-by: Félix Saparelli <felix@passcod.name>
2024-07-29 03:52:03 +00:00
Jiahao XU
0a9f17f1ba
Speedup and prevent rate limit in gh-action.yml ( #1811 )
...
By passing github token
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-07-06 04:27:28 +00:00
Jiahao XU
050c337da1
Fix typo in release-pr.yml inputs ( #1790 )
...
Stupid mistakes introduced in #1789
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-19 14:29:09 +00:00
Jiahao XU
45b25fede5
CI: Allow semver-check in release-pr.yml
to be disabled via inputs ( #1789 )
...
In case buliding of previous version fail due to new releases in upstream.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-19 14:07:23 +00:00
dependabot[bot]
c49072c565
build(deps): bump cargo-bins/release-pr from 2.1.2 to 2.1.3 ( #1788 )
...
Bumps [cargo-bins/release-pr](https://github.com/cargo-bins/release-pr ) from 2.1.2 to 2.1.3.
- [Release notes](https://github.com/cargo-bins/release-pr/releases )
- [Commits](https://github.com/cargo-bins/release-pr/compare/v2.1.2...v2.1.3 )
---
updated-dependencies:
- dependency-name: cargo-bins/release-pr
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-19 13:15:52 +00:00
Jiahao XU
374fc45b61
Bump cargo-bins/release-pr from 2.1.1 to 2.1.2 ( #1787 )
...
To reduce action output
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-19 08:48:47 +00:00
Jiahao XU
e3c8c40806
Run ci.yml every Monday ( #1767 )
...
Just to keep the cache hot while making sure cargo-binstall can compile on latest stable/nightly rust
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-15 01:32:07 +00:00
Jiahao XU
07dd868fa6
Fix release-dry-run ( #1764 )
...
Dry run publish in merge_queue CI for release PR
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-14 13:36:31 +00:00
Jiahao XU
540fa79c6b
CI: Fix publish ( #1760 )
...
* Fix publish in release-cli.yml
Using latest stable rust
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix publish in release.yml
Use latest stable rust
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Run release-dry-run in merge queue only
Running it twice on PR pipeline and merge queue pipeline only wastes time and causes rate limit.
For PR that modifies release-dry-run and wants to test it, they can temporarily run release-dry-run on PR pipeline.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
---------
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-14 11:33:20 +00:00
Jiahao XU
610504957f
Fix release-pr.yml ( #1758 )
...
Always use latest stable rust
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-14 10:25:13 +00:00
Jiahao XU
475fd61cd7
Do not run ci.yml on push to main ( #1757 )
...
All commits should be submit via PR, and merge_queue already run ci.yml, with up-to-date source code.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-14 09:29:41 +00:00
Jiahao XU
bb1e2cf363
Fix missing ' upgrade-transitive-deps.yml ( #1752 )
2024-06-14 03:28:11 +00:00
Jiahao XU
ba0e752b9c
Fix upgrade-transitive-deps.yml ( #1749 )
...
Fix use of gh-pr-create
2024-06-13 14:24:09 +00:00
Jiahao XU
05f488322e
Add cargo-binstall installation path to GITHUB_PATH ( #1748 )
...
* Add cargo-binstall installation path to GITHUB_PATH in install-from-binstall-release.sh
Fixed #1714
* Add cargo-binstall installation path to GITHUB_PATH in install-from-binstall-release.ps1
* Update install-script.yml to test
* Fix use of env var in install-from-binstall-release.ps1
2024-06-13 13:43:39 +00:00
Jiahao XU
22217acc51
Fix job changed-files ci.yml ( #1745 )
...
Fix sed expression
2024-06-13 10:19:00 +00:00
Jiahao XU
d524db3784
Fix ci and improve efficiency ( #1744 )
...
* Fix job changed-file in ci.yml
* Do not run job e2e-tests on PR
which might not have access to GitHub Token in secrets, if opened by non-maintainer
* Provide GITHUB_TOKEN fallback if the secrets is not accessible
* Fix regex expression passed to sed
2024-06-13 09:32:38 +00:00
Jiahao XU
38f8eb4b1a
Fix passing GITHUB_TOKEN in ci.yml ( #1742 )
...
Fix CI
2024-06-13 18:10:23 +10:00
Jiahao XU
a2d2c5d85c
Disable e2e-tests on x86_64h-apple-darwin
...
macos-14-arm64 cannot execute executable built for x86_64h
2024-06-13 00:17:30 +10:00
Jiahao XU
60a194be90
Improve ci ( #1737 )
...
* Run e2e-test on x86_64h-apple-darwin
Since it is a target built with `build-std`, we need to make sure it is
runnable.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix `upgrade-transitive-deps`
Fill in PR description, so that reviewer can just re-open it to run the CI.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
---------
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-13 00:03:27 +10:00
Jiahao XU
7941387b73
Fix job changed-files
( #1732 )
...
* Fix job `changed-files`
Convert `ALL_CHANGED_FILES` to multiple lines before processing
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Run e2e-tests and unit-tests on aarch64-apple-darwin
Since the CI now uses M1 instead of x86_64, built a native executable
instead of relying on rosetta
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Run unit-tests on Linux-only
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
---------
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-12 20:56:59 +10:00
Jiahao XU
4d7a91aa4c
Fix job changed-files in ci.yml ( #1730 )
...
* Fix job changed-files in ci.yml
When there are multiple crates, it would be in multiple lines, breaking github output
* Fix job changed-files in ci.yml
When no crate is changed, command cut will fail.
* Fix job unit-tests in ci.yml
If noo crate is changed, do not run cargo-nextest.
* Fix ci.yml syntax
2024-06-12 19:47:41 +10:00
Jiahao XU
2feac66e14
Speedup ci: Only run tests on change ( #1729 )
...
* Fix unit test for `GhApiClient`
Set client-side rate limit to 1 request per 200 ms
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Only run `detect-targets` test if changed
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Only run unit tests for crates that are changed
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix job `changed-files`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix job `changed-files`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix shell error in job `changed-files`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* FIx separator for `changed-files`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix passning of craetes to run
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix passing of `CARGO_NEXTEST_ADDITIONAL_ARGS`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix deciding which crates to test on windows
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix just recipe `unit-tests`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Split test into two jobs
so that they will have they own cache (since different feature flags are used).
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
---------
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-12 12:29:16 +10:00
Jiahao XU
3aae883467
Speedup ci ( #1724 )
...
* Optimize binstalk-git-repo-api
Use a dedicated github token in CI
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Speedup CI using `cargo-nextest`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix release profile override on Windows
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Optimize unit test in binstalk-registry
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Use `secrets.CI_RELEASE_TEST_GITHUB_TOKEN` for just-setup
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix unit testing in justfile
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add retry on rate limit in unit testing
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Only use `CI_UNIT_TEST_GITHUB_TOKEN` in unit testing
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix `test_get_repo_info`: Retry on rate limit
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix `test_has_release_artifact_and_download_artifacts`
Retry on rate limit
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
---------
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-11 00:12:44 +10:00
Jiahao XU
1dbd2460a3
Support private github repository ( #1690 )
...
* Refactor: Create new crate binstalk-git-repo-api
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix CI lint warnings
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix `just check`: Rm deleted features from `cargo-hack` check
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Refactor: Extract new mod error
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Ret artifact url in `has_release_artifact`
So that we can use it to download from private repositories.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Move `test_graph_ql_error_type` to mod `error`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix running `cargo test` in `binstalk-git-repo-api``
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Remove unnecessary import in mod `error::test`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Rename mod `request`` to `release_artifacts`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Impl draft version of fetching repo info
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Refactor: Move `HasReleaseArtifacts` failure variants into `GhApiError`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Refactor: Use `GhRepo` in `GhRelease`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix testing
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Refactor: Return `'static` future
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Refactor: Make sure `'static` Future is returned
To make it easier to create generic function
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add logging to unit testing
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix unit testing
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Refactor: Extract new fn `GhApiClient::do_fetch`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Rm unused `percent_encode_http_url_path`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix `cargo test` run on CI
`cargo test` run all tests in one process.
As such, `set_global_default` would fail on the second call.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Optimize `GhApiClient::do_fetch`: Avoid unnecessary restful API call
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Refactor: Rm param `auth_token` for restful API fn
which is always set to `None`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Impl new API `GhApiClient::get_repo_info`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix unit test for `GhApiClient::get_repo_info`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Refactor testing: Parameter-ize testing
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Parallelise `test_get_repo_info`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Refactor: Create parameter-ised `test_has_release_artifact`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Parallelize `test_has_release_artifact`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Refactor: `gh_api_client::test::create_client` shall not be `async`
as there is no `.await` in it.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Return `Url` in `GhApiClient::has_release_artifact`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Impl new API `GhApiClient::download_artifact`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Remove unused deps added to binstalk-git-repo-api
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix clippy lints
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add new API `GhApiClient::remote_client`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add `GhApiClient::has_gh_token`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add `GhRepo::try_extract_from_url`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Rename `ReleaseArtifactUrl` to `GhReleaseArtifactUrl`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add new fn `Download::with_data_verifier`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* feature: Support private repository
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix clippy lints
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add e2e-test/private-github-repo
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix clippy lints
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix `launch_baseline_find_tasks`: Retry on rate limit
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix test failure: Retry on rate limit
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Temporarily enable debug output for e2e-test-private-github-repo
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix `get_repo_info`: Retry on rate limit
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Improve `debug!` logging
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add more debug logging
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add more debugging
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add more debug logging
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Apply suggestions from code review
* Fix compilation
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix cargo fmt
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Add crate binstalk-git-repo-api to release-pr.yml
* Update crates/binstalk-git-repo-api/Cargo.toml
* Apply suggestions from code review
* Update crates/binstalk/Cargo.toml
---------
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-10 06:02:12 +00:00
Jiahao XU
2d856bf1c0
Speedup ci by using personal access token for testing ( #1680 )
...
* Use secrets,CI_TEST_GITHUB_TOKEN for testing in ci.yml
* Run e2e-test in release-packages.yml using secrets.CI_TEST_GITHUB_TOKEN
* Use CI_RELEASE_TEST_GITHUB_TOKEN in e2e-test in release-packages.yml
2024-05-02 23:44:23 +00:00
Jiahao XU
3198712328
Bump release-pr to v2.1.1 ( #1672 )
2024-05-02 05:27:20 +00:00
dependabot[bot]
0e9e505697
build(deps): bump geekyeggo/delete-artifact from 4 to 5 ( #1650 )
...
Bumps [geekyeggo/delete-artifact](https://github.com/geekyeggo/delete-artifact ) from 4 to 5.
- [Release notes](https://github.com/geekyeggo/delete-artifact/releases )
- [Changelog](https://github.com/GeekyEggo/delete-artifact/blob/main/CHANGELOG.md )
- [Commits](https://github.com/geekyeggo/delete-artifact/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: geekyeggo/delete-artifact
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-19 07:47:44 +00:00
dependabot[bot]
cf2473129b
build(deps): bump mathieudutour/github-tag-action from 6.1 to 6.2 ( #1646 )
...
Bumps [mathieudutour/github-tag-action](https://github.com/mathieudutour/github-tag-action ) from 6.1 to 6.2.
- [Release notes](https://github.com/mathieudutour/github-tag-action/releases )
- [Commits](https://github.com/mathieudutour/github-tag-action/compare/v6.1...v6.2 )
---
updated-dependencies:
- dependency-name: mathieudutour/github-tag-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-12 02:11:47 +00:00
Jiahao XU
1928e2ccb3
Refactor: Mv leon and leon-macros into another repo ( #1628 )
...
* Refactor: Mv leon and leon-macros into another repo
It's moved to https://github.com/cargo-bins/leon
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
* Fix CI: Rm `cargo-hack` check for `leon`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
---------
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-02-20 13:16:47 +00:00