Skip to content

Commit 9a8ed5a

Browse files
ci: Update the LocalCloud integration workflow (#7135)
* ci: Use the LocalCloud CI image without the console Signed-off-by: agent-local-cloud <319593065+agent-local-cloud@users.noreply.github.com> * ci: Run LocalCloud tests on every workflow trigger Signed-off-by: agent-local-cloud <319593065+agent-local-cloud@users.noreply.github.com> * ci: Name the LocalCloud integration workflow clearly Signed-off-by: agent-local-cloud <319593065+agent-local-cloud@users.noreply.github.com> * ci: Apply Feast repository and approval-label checks Signed-off-by: agent-local-cloud <319593065+agent-local-cloud@users.noreply.github.com> --------- Signed-off-by: agent-local-cloud <319593065+agent-local-cloud@users.noreply.github.com> Co-authored-by: agent-local-cloud <319593065+agent-local-cloud@users.noreply.github.com>
1 parent 07056d5 commit 9a8ed5a

2 files changed

Lines changed: 22 additions & 10 deletions

File tree

‎.github/workflows/localcloud.yml‎

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,33 @@
11
# Setup and SDK reference: https://local.cloud/docs/github-actions/
22
# Laptop: python3 scripts/localcloud-test.py (add --full-suite for regression tests).
3-
# Enable pull-request runs with repository variable LOCALCLOUD_CI_ENABLED=true.
4-
name: LocalCloud tests
3+
name: pr-local-cloud-integration-tests
54
'on':
6-
workflow_dispatch: null
7-
pull_request: null
5+
pull_request:
6+
types:
7+
- opened
8+
- synchronize
9+
- reopened
10+
- labeled
811
permissions:
912
contents: read
1013
jobs:
1114
localcloud:
12-
if: github.event_name == 'workflow_dispatch' || vars.LOCALCLOUD_CI_ENABLED ==
13-
'true'
15+
# Match Feast's approval-label policy and never run this job in fork repositories.
16+
if:
17+
((github.event.action == 'labeled' && (github.event.label.name == 'approved' || github.event.label.name == 'lgtm' || github.event.label.name == 'ok-to-test')) ||
18+
(github.event.action != 'labeled' && (contains(github.event.pull_request.labels.*.name, 'ok-to-test') || contains(github.event.pull_request.labels.*.name, 'approved') || contains(github.event.pull_request.labels.*.name, 'lgtm')))) &&
19+
github.repository == 'feast-dev/feast'
1420
runs-on: ubuntu-latest
1521
timeout-minutes: 30
1622
services:
1723
localcloud:
18-
image: agentcloud/localcloud@sha256:88e85b86b294e1e4f71b8c63ec43de79d170946ff39556f0e2709f66aa0d368c
24+
image: agentcloud/localcloud:ci
1925
env:
2026
LOCALCLOUD_SERVICES: bigquery,bigtable,gcs
2127
LOCALCLOUD_PROJECT: localcloud-ci
2228
LOCALCLOUD_DOCKER_ACCESS: 'false'
2329
LOCALCLOUD_TELEMETRY: 'false'
30+
LOCALCLOUD_CONSOLE: 'false'
2431
ports:
2532
- 5380:5380
2633
- 5382:5382
@@ -43,10 +50,12 @@ jobs:
4350
with:
4451
go-version-file: go.mod
4552
- uses: astral-sh/setup-uv@v5
46-
- name: Set up LocalCloud (v0.1.0)
53+
- name: Set up LocalCloud
4754
id: localcloud
48-
uses: cloud-orbitor/setup-localcloud@de6d236db036be4c8b96879392d22a1feb5047c6
55+
uses: agent-local-cloud/setup-localcloud@3f8bd6df58cfd3cf4cd29c46f3449c7e6465f64a
4956
with:
57+
image: agentcloud/localcloud:ci
58+
console: 'false'
5059
services: bigquery,bigtable,gcs
5160
project-id: localcloud-ci
5261
runtime-url: http://127.0.0.1:5380

‎scripts/localcloud-test.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
ROOT = Path(__file__).resolve().parents[1]
2020
TEST_SPEC_JSON = r"""
2121
{
22-
"image": "agentcloud/localcloud@sha256:88e85b86b294e1e4f71b8c63ec43de79d170946ff39556f0e2709f66aa0d368c",
22+
"image": "agentcloud/localcloud:ci",
2323
"services": [
2424
"bigquery",
2525
"bigtable",
@@ -258,6 +258,7 @@ def mapped_endpoint(value: str) -> str:
258258
try:
259259
if gateway is None:
260260
docker("info", "--format", "{{.ServerVersion}}")
261+
docker("pull", manifest["image"])
261262
docker(
262263
"volume", "create", "--label", "localcloud.test-owner=" + ident, ident
263264
)
@@ -270,6 +271,8 @@ def mapped_endpoint(value: str) -> str:
270271
"localcloud.test-owner=" + ident,
271272
"--memory",
272273
"4g",
274+
"-e",
275+
"LOCALCLOUD_CONSOLE=false",
273276
"-v",
274277
ident + ":/var/lib/localcloud",
275278
]

0 commit comments

Comments
 (0)