Skip to content

Commit 4db1777

Browse files
committed
Fix CI failures: workspace build context, SDK dist conflict, frontend lint
- Workspace CI: use repo root as build context so Dockerfile can access sdk/ and workspace/ directories - SDK CI: clean dist/ before build to prevent version conflicts between old 0.0.1 and new 0.1.0 wheels; remove stale dist from git - Frontend CI: use --quiet to only fail on ESLint errors, not warnings - Update frontend CI build env to use /graphql proxy URL
1 parent 2150adf commit 4db1777

6 files changed

Lines changed: 14 additions & 5 deletions

File tree

.github/workflows/ci-frontend.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
run: npm install --legacy-peer-deps
3131

3232
- name: Run ESLint
33-
run: npm run lint
33+
run: npx next lint --quiet
3434

3535
build:
3636
name: Build
@@ -55,7 +55,7 @@ jobs:
5555
run: npm run build
5656
env:
5757
NEXT_PUBLIC_API_URL: http://localhost:8000
58-
NEXT_PUBLIC_GRAPHQL_URL: http://localhost:5001/graphql
58+
NEXT_PUBLIC_GRAPHQL_URL: /graphql
5959

6060
typecheck:
6161
name: TypeScript check

.github/workflows/ci-sdk.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ jobs:
2828

2929
- name: Build package
3030
working-directory: sdk
31-
run: python -m build
31+
run: |
32+
rm -rf dist/
33+
python -m build
3234
3335
- name: Install from built wheel
3436
run: pip install sdk/dist/*.whl

.github/workflows/ci-workspace.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,14 @@ on:
55
branches: [master, dev/workspaces]
66
paths:
77
- 'docker/workspace/**'
8+
- 'sdk/**'
9+
- 'workspace/**'
810
pull_request:
911
branches: [master]
1012
paths:
1113
- 'docker/workspace/**'
14+
- 'sdk/**'
15+
- 'workspace/**'
1216

1317
jobs:
1418
build-workspace:
@@ -22,7 +26,8 @@ jobs:
2226
- name: Build workspace image
2327
uses: docker/build-push-action@v5
2428
with:
25-
context: docker/workspace
29+
context: .
30+
file: docker/workspace/Dockerfile
2631
push: false
2732
tags: openuba-workspace:latest
2833
cache-from: type=gha
@@ -54,7 +59,8 @@ jobs:
5459
- name: Build and push
5560
uses: docker/build-push-action@v5
5661
with:
57-
context: docker/workspace
62+
context: .
63+
file: docker/workspace/Dockerfile
5864
push: true
5965
tags: |
6066
gacwr/openuba-workspace:latest

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ interface/core/
4646
# Build Artifacts
4747
*.tar
4848
watch_*
49+
sdk/dist/
4950

5051
# Deployment & Data
5152
metastore/
-8.03 KB
Binary file not shown.

sdk/dist/openuba-0.0.1.tar.gz

-6.91 KB
Binary file not shown.

0 commit comments

Comments
 (0)