Jiahao XU
d1aa7273c0
Temporarily enable debug output for e2e-test-private-github-repo
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-06 00:39:17 +10:00
Jiahao XU
c9fb2f4e64
Fix test failure: Retry on rate limit
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-06 00:25:36 +10:00
Jiahao XU
6b3e38453f
Fix launch_baseline_find_tasks
: Retry on rate limit
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-06 00:03:15 +10:00
Jiahao XU
53b3c02b3b
Fix clippy lints
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-05 23:51:06 +10:00
Jiahao XU
be3aeca6b2
Add e2e-test/private-github-repo
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-05 23:36:32 +10:00
Jiahao XU
fba7e01c5d
Fix clippy lints
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-05 23:16:38 +10:00
Jiahao XU
083811856b
feature: Support private repository
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-05 00:40:08 +10:00
Jiahao XU
c19fcb697a
Add new fn Download::with_data_verifier
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-05 00:21:58 +10:00
Jiahao XU
3cee8a927b
Rename ReleaseArtifactUrl
to GhReleaseArtifactUrl
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-04 23:53:08 +10:00
Jiahao XU
81bdc3ba6e
Add GhRepo::try_extract_from_url
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-04 23:23:48 +10:00
Jiahao XU
7e283cc407
Add GhApiClient::has_gh_token
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-04 23:07:27 +10:00
Jiahao XU
6b0f4602b9
Add new API GhApiClient::remote_client
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-04 22:58:04 +10:00
Jiahao XU
1ad2d0ad87
Fix clippy lints
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-03 23:45:38 +10:00
Jiahao XU
54f88e03d5
Remove unused deps added to binstalk-git-repo-api
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-03 23:43:48 +10:00
Jiahao XU
03ae2b78d0
Impl new API GhApiClient::download_artifact
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-03 23:40:55 +10:00
Jiahao XU
4da2f0e64f
Return Url
in GhApiClient::has_release_artifact
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-03 22:29:31 +10:00
Jiahao XU
eb77ad762b
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>
2024-05-30 01:00:23 +10:00
Jiahao XU
9f3156cea5
Parallelize test_has_release_artifact
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-05-30 00:57:49 +10:00
Jiahao XU
4ffaf8c805
Refactor: Create parameter-ised test_has_release_artifact
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-05-30 00:50:10 +10:00
Jiahao XU
345255a65f
Parallelise test_get_repo_info
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-05-30 00:37:50 +10:00
Jiahao XU
5f138e6655
Refactor testing: Parameter-ize testing
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-05-30 00:30:34 +10:00
Jiahao XU
7e4020f2a6
Fix unit test for GhApiClient::get_repo_info
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-05-30 00:04:54 +10:00
Jiahao XU
0bc4231b65
Impl new API GhApiClient::get_repo_info
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-05-29 00:11:11 +10:00
Jiahao XU
f824ebbd9c
Refactor: Rm param auth_token
for restful API fn
...
which is always set to `None`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-05-28 23:12:02 +10:00
Jiahao XU
fc0222881c
Optimize GhApiClient::do_fetch
: Avoid unnecessary restful API call
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-05-28 23:09:22 +10:00
Jiahao XU
962a7d057c
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>
2024-05-28 22:51:27 +10:00
Jiahao XU
ffe47d30c6
Rm unused percent_encode_http_url_path
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-05-28 00:55:24 +10:00
Jiahao XU
1350ac342f
Refactor: Extract new fn GhApiClient::do_fetch
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-05-28 00:54:14 +10:00
Jiahao XU
361aca4d8f
Fix unit testing
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-05-28 00:17:52 +10:00
Jiahao XU
fd5b78c337
Add logging to unit testing
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-05-28 00:15:19 +10:00
Jiahao XU
cb418fda11
Refactor: Make sure 'static
Future is returned
...
To make it easier to create generic function
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-05-27 23:37:27 +10:00
Jiahao XU
c36145f2b4
Merge branch 'main' into feat/private-github-repo
2024-05-25 11:00:05 +10:00
github-actions[bot]
88b4dd4e65
dep: Upgrade transitive dependencies ( #1709 )
...
Co-authored-by: github-actions <github-actions@github.com>
2024-05-24 08:40:07 +00:00
github-actions[bot]
4545b16e0b
release: cargo-binstall v1.6.7 ( #1707 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-05-18 06:13:50 +00:00
github-actions[bot]
6cede2e8dc
release: binstalk v0.23.1 ( #1706 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-05-18 05:20:48 +00:00
github-actions[bot]
abc0dbee67
release: binstalk-fetchers v0.4.1 ( #1705 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-05-18 04:23:54 +00:00
dependabot[bot]
45307909c3
build(deps): bump the deps group with 2 updates ( #1704 )
...
Bumps the deps group with 2 updates: [itertools](https://github.com/rust-itertools/itertools ) and [thiserror](https://github.com/dtolnay/thiserror ).
Updates `itertools` from 0.12.1 to 0.13.0
- [Changelog](https://github.com/rust-itertools/itertools/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-itertools/itertools/compare/v0.12.1...v0.13.0 )
Updates `thiserror` from 1.0.60 to 1.0.61
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.60...1.0.61 )
---
updated-dependencies:
- dependency-name: itertools
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: deps
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: deps
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-18 03:28:12 +00:00
github-actions[bot]
ec08340fc3
dep: Upgrade transitive dependencies ( #1703 )
...
Co-authored-by: github-actions <github-actions@github.com>
2024-05-17 09:03:37 +00:00
Jiahao XU
f90eea4235
Refactor: Return 'static
future
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-05-15 23:43:45 +10:00
github-actions[bot]
496eda8439
release: cargo-binstall v1.6.6 ( #1697 )
...
chore: Release
Co-authored-by: github-actions <github-actions@github.com>
2024-05-11 03:35:50 +00:00
dependabot[bot]
e74127b04e
build(deps): bump file-format from 0.24.0 to 0.25.0 in the deps group ( #1696 )
...
Bumps the deps group with 1 update: [file-format](https://github.com/mmalecot/file-format ).
Updates `file-format` from 0.24.0 to 0.25.0
- [Release notes](https://github.com/mmalecot/file-format/releases )
- [Changelog](https://github.com/mmalecot/file-format/blob/main/CHANGELOG.md )
- [Commits](https://github.com/mmalecot/file-format/compare/v0.24.0...v0.25.0 )
---
updated-dependencies:
- dependency-name: file-format
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: deps
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-11 01:43:39 +00:00
github-actions[bot]
331e0efb51
dep: Upgrade transitive dependencies ( #1695 )
...
Co-authored-by: github-actions <github-actions@github.com>
2024-05-10 03:38:43 +00:00
Jiahao XU
f9008d7c93
Fix testing
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-05-09 23:32:30 +10:00
Jiahao XU
6e6d7d778f
Refactor: Use GhRepo
in GhRelease
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-05-09 23:30:53 +10:00
Jiahao XU
7bd8468c35
Refactor: Move HasReleaseArtifacts
failure variants into GhApiError
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-05-09 23:25:22 +10:00
Jiahao XU
5417475542
Impl draft version of fetching repo info
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-05-08 23:14:07 +10:00
Jiahao XU
6c67c7dd32
Rename mod request
to
release_artifacts`
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-05-07 22:44:21 +10:00
Jiahao XU
645a2f2981
Remove unnecessary import in mod error::test
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-05-07 22:37:10 +10:00
Jiahao XU
e06ea36ff0
Fix running cargo test
in binstalk-git-repo-api
`
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-05-07 22:32:21 +10:00
Jiahao XU
30a4a53c67
Move test_graph_ql_error_type
to mod error
...
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-05-07 22:31:26 +10:00