Commit graph

1974 commits

Author SHA1 Message Date
github-actions[bot]
384789d1c9
release: binstalk-git-repo-api v0.3.0 (#1785)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-06-18 14:44:56 +00:00
github-actions[bot]
4bd5e79115
release: binstalk-downloader v0.11.5 (#1784)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-06-18 14:21:59 +00:00
Jiahao XU
ef7ca1ba9f
Re enable h3 in reqwest and remove impl Sync on returned Future in binstalk-git-repo-api (#1783)
* Upgrade transitive dependencies

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Re-enable h3

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Fix `binstalk-git-repo-api`

Remove `Sync` bound on returned `Future`, since `tokio::spawn` does not require it

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

---------

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-18 13:30:23 +00:00
Jiahao XU
fc1117d0e4
Disable use of lld (#1782)
* Update justfile to use lld on macOS and Linux

When cargo-zigbuild is not used

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Delete .cargo/config.toml

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Update justfile to use lld as long as cargo-zigbuild isn't used

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Disable lld again

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

---------

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-18 11:58:51 +00:00
github-actions[bot]
ee16116583
release: binstalk-downloader v0.11.4 (#1777)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-06-15 16:05:37 +00:00
Jiahao XU
3505b6ae5b
Fix docs.rs build of binstalk-downloader (#1776)
Fixed docs.rs build

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-15 15:39:14 +00:00
Jiahao XU
b9e8267cec
Speedup Linux CI (#1775)
* Speedup Linux CI

Use transparent huge page, according to https://kobzol.github.io/rust/rustc/2023/10/21/make-rust-compiler-5percent-faster.html it gives a nice 5% speedup

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Fix action.yml

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

---------

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-15 15:08:25 +00:00
github-actions[bot]
0d7080e6a9
release: cargo-binstall v1.7.1 (#1774)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-06-15 07:27:29 +00:00
github-actions[bot]
6ed611c66e
release: binstalk v0.25.0 (#1773)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-06-15 07:00:10 +00:00
github-actions[bot]
08f66b0083
release: binstalk-fetchers v0.6.0 (#1772)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-06-15 06:36:08 +00:00
github-actions[bot]
ed31bc17e5
release: binstalk-git-repo-api v0.2.0 (#1771)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-06-15 06:02:41 +00:00
Jiahao XU
fff6aa8122
Improve use of github token (#1769)
* Add new dep zeroize

* Use Zeroizing to avoid leaking the token

* Optimize gh-auth-token

Spawn it as a task, and only await it
when using GhApiClient

* Fix binstalk-git-repo-api unit tests
2024-06-15 05:42:09 +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
github-actions[bot]
9891eac34c
release: cargo-binstall v1.7.0 (#1765)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-06-15 00:27:27 +00:00
Jiahao XU
59ba0cb92a
Speedup compilation on windows (#1766)
* Speedup compilation on windows

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Speedup CI on macOS

Use lld

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

---------

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-15 00:02:21 +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
4c68c80ab8
Add env var BINSTALL_NO_DISCOVER_GITHUB_TOKEN (#1763)
* Add env var BINSTALL_NO_DISCOVER_GITHUB_TOKEN

For #1733

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Fix fmt

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Fix fmt

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

---------

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-14 13:21:14 +00:00
github-actions[bot]
5c9a7b2c80
release: binstalk v0.24.1 (#1762)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-06-14 13:12:01 +00:00
github-actions[bot]
b71b3ce472
release: binstalk-downloader v0.11.3 (#1759)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-06-14 12:38:01 +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
github-actions[bot]
77b0b68ea9
release: binstalk-registry v0.9.1 (#1756)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-06-14 10:04:28 +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
github-actions[bot]
d3cd0a2ad4
release: binstalk-fetchers v0.5.1 (#1755)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-06-14 08:13:57 +00:00
Jiahao XU
34cca9f415
Use io::Error::downcast in 1.79 (#1754)
* Bump msrv of binstalk-downloader, binstalk and cargo-binstall to 1.79

* Update From<io::Error> for DownloadError

to use io::Error::downcast

* Update From<io::Error> for BinstallError

* fix dmt
2024-06-14 08:00:53 +00:00
Tomas Olvecky
dfa230f039
Use binary name when searching for artifacts (#1747)
* Use binary name when searching for artifacts

When there is a single binary declared in the manifest and
it differs from the package name, add it to the list of handles
used for pre-built artifact fetching.

* Simplify `binary_name` assignment with a `match`

* Add e2e test

* Only attempt to use the binary name with `GhCrateMeta` fetcher

* Avoid too much over-allocating.

Technically it should also check if gh-crate-meta resolver is enabled, but it is unlikely for it to be disabled and overallocating for extra n-target should be fine, it is an improvement over doubling the space allocated if the binary_name is Some.

* Fix fmt in crates/binstalk/src/ops/resolve.rs

---------

Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-14 04:52:37 +00:00
github-actions[bot]
a220952fd6
dep: Upgrade transitive dependencies (#1753)
Co-authored-by: github-actions <github-actions@github.com>
2024-06-14 03:46:47 +00:00
Jiahao XU
bb1e2cf363
Fix missing ' upgrade-transitive-deps.yml (#1752) 2024-06-14 03:28:11 +00:00
Jiahao XU
45d96a5b13
Fix install-from-binstall-release.sh (#1751)
Fixed #1750
2024-06-14 00:55:06 +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
github-actions[bot]
9a270f03b6
release: binstalk v0.24.0 (#1743)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-06-13 11:41:33 +00:00
Jiahao XU
cd85622b13
Improve gh token auto scraping (#1746)
* Log the gh-auth token retrieval failure on debug level

Fixed #1733

* Make gh_token::get an async function

* Improve returned err msg in gh_token::get

* Update use of gh_token::get() in entry.rs

* Fix typos

* Fix unclosed ()

* Fix unclosed ()

* Fix gh_token.rs

* Fix entry.rs

* Fix fmt in entry.rs

* Fix fmt in gh_token.rs

* Fix fmt in gh_token.rs

* Fix fmt in gh_token.rs

* Fix fmt in entry.rs
2024-06-13 10:50:47 +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
Remo Senekowitsch
250814f530
fix(resolve): prefer official binaries (#1741)
* prefer official binaries with secondary targets over quickinstall binaries

* chore(test): add jj-cli to live e2e test
2024-06-13 18:26:30 +10:00
Jiahao XU
38f8eb4b1a
Fix passing GITHUB_TOKEN in ci.yml (#1742)
Fix CI
2024-06-13 18:10:23 +10:00
github-actions[bot]
734906d5fd
release: binstalk-git-repo-api v0.1.1 (#1740)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-06-13 03:41:38 +00:00
github-actions[bot]
f567e3bd9e
release: binstalk-downloader v0.11.2 (#1739)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-06-13 02:54:38 +00:00
github-actions[bot]
66f303393f
release: binstalk-registry v0.9.0 (#1736)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-06-13 00:30:42 +00:00
github-actions[bot]
07c8dd7e8a
release: binstalk-fetchers v0.5.0 (#1735)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-06-12 21:26:20 +00:00
Jiahao XU
e334e3153a
Compile all tests in justfile target unit-tests
To make sure all code is valid.

And to improve caching of CI job unit-tests.
2024-06-13 00:37:19 +10:00
Jiahao XU
4687726c66
Improve derbugg logging (#1738)
* Improve derbugg logging

Make it more readable

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Fix excessive logging

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

---------

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-13 00:25:24 +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
github-actions[bot]
49d0bb71a0
dep: Upgrade transitive dependencies (#1734)
Co-authored-by: github-actions <github-actions@github.com>
2024-06-12 13:02:02 +00:00
github-actions[bot]
8fe7b92631
release: binstalk-git-repo-api v0.1.0 (#1728)
chore: Release

Co-authored-by: github-actions <github-actions@github.com>
2024-06-12 11:31:53 +00: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
6622bf1ae3
Speedup binstalk-git-repo-api unit testing (#1731)
* Share `remote::Client` between tests when in cargo-test

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Run rate-limited binstalk-git-repo-api test in serial

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Update client-side rate limit to 1 request per 300ms

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Reduce test cases in `rate_limited_test_has_release_artifact_and_download_artifacts`

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Add `cargo-nextest` that I forgot

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Fix unit testing: Pass auth-token to restful API

to avoid rate limit

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

---------

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-12 20:34:50 +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