Skip to content

Commit 815034b

Browse files
authored
Backport #5610 to release-2.29. (#5677)
This backports GHA REST CI to release-2.29 to unblock REST CI failures due to the gitlab CI being removed in the upstream internal repository. --- TYPE: NO_HISTORY DESC: Backport #5610 to release-2.29.
1 parent 9a6284d commit 815034b

File tree

3 files changed

+41
-22
lines changed

3 files changed

+41
-22
lines changed

.github/workflows/ci-rest.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: REST CI
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
rest-ci:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
# For easy access to lookup dispatched CI job.
12+
- name: Print URL for REST CI actions
13+
run: echo https://github.com/TileDB-Inc/TileDB-Internal/actions
14+
15+
# If this workflow fails on the remote repository, this CI job will also fail.
16+
- name: Workflow dispatch to REST CI
17+
id: trigger-step
18+
uses: the-actions-org/workflow-dispatch@v4
19+
env:
20+
TILEDB_REST_CI_PAT: secrets.TILEDB_REST_CI_PAT
21+
if: env.TILEDB_REST_CI_PAT != null
22+
with:
23+
repo: TileDB-Inc/TileDB-Internal
24+
# Trigger workflow on TileDB-Internal checked out at this ref.
25+
ref: "main"
26+
workflow: rest-ci.yml
27+
token: ${{ secrets.TILEDB_REST_CI_PAT }}
28+
# The references set here will be passed to REST CI to checkout for testing.
29+
# These can be temporarily modified if you want to test your changes against a specific branch.
30+
# github.head_ref will only be set for PRs, so fallback to github.ref_name if triggered via push event.
31+
inputs: |
32+
{
33+
"tiledb_ref": "${{ github.event.inputs.ref || github.head_ref || github.ref_name }}",
34+
"tiledb_cloud_rest_ref": "master",
35+
"tiledb_server_ref": "main"
36+
}
37+
wait-for-completion-timeout: 120m

.github/workflows/full-ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ jobs:
133133
ci_docker:
134134
uses: ./.github/workflows/build-dockerfile.yml
135135

136+
ci_rest:
137+
uses: ./.github/workflows/ci-rest.yml
138+
secrets: inherit
139+
136140
# dummy job for branch protection check
137141
full_ci_passed:
138142
needs: [

.gitlab-ci.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)