Skip to content

Commit 7e4f83e

Browse files
authored
ci: turn on and fix ui-style and test-vscode stages (#6054)
Signed-off-by: Adegbite Ayoade <tripleaceme@gmail.com>
1 parent 68f5b95 commit 7e4f83e

6 files changed

Lines changed: 52 additions & 16 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@
1111
"postCreateCommand": "bash .devcontainer/post-create-command.sh",
1212
"customizations": {
1313
"vscode": {
14-
"extensions": [
15-
"ms-python.python",
16-
"ms-python.vscode-pylance"
17-
]
14+
"extensions": ["ms-python.python", "ms-python.vscode-pylance"]
1815
}
1916
},
2017
"remoteUser": "vscode"

.github/workflows/pr.yaml

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
outputs:
1717
python: ${{ steps.filter.outputs.python }}
1818
client: ${{ steps.filter.outputs.client }}
19+
vscode: ${{ steps.filter.outputs.vscode }}
1920
ci: ${{ steps.filter.outputs.ci }}
2021
steps:
2122
- uses: actions/checkout@v7
@@ -34,6 +35,8 @@ jobs:
3435
- 'pyproject.toml'
3536
client:
3637
- 'web/client/**'
38+
vscode:
39+
- 'vscode/**'
3740
ci:
3841
- '.github/**'
3942
- 'Makefile'
@@ -188,9 +191,10 @@ jobs:
188191

189192
ui-style:
190193
needs: [changes]
191-
if: false
192-
# needs.changes.outputs.client == 'true' || needs.changes.outputs.ci ==
193-
# 'true' || github.ref == 'refs/heads/main'
194+
if:
195+
needs.changes.outputs.client == 'true' || needs.changes.outputs.vscode ==
196+
'true' || needs.changes.outputs.ci == 'true' || github.ref ==
197+
'refs/heads/main'
194198
runs-on: ubuntu-latest
195199
steps:
196200
- uses: actions/checkout@v7
@@ -252,7 +256,17 @@ jobs:
252256
fail-fast: false
253257
matrix:
254258
engine:
255-
[duckdb, postgres, mysql, mssql, trino, spark, clickhouse, risingwave, starrocks]
259+
[
260+
duckdb,
261+
postgres,
262+
mysql,
263+
mssql,
264+
trino,
265+
spark,
266+
clickhouse,
267+
risingwave,
268+
starrocks,
269+
]
256270
env:
257271
PYTEST_XDIST_AUTO_NUM_WORKERS: 2
258272
SQLMESH__DISABLE_ANONYMIZED_ANALYTICS: '1'
@@ -393,10 +407,13 @@ jobs:
393407
retention-days: 7
394408

395409
test-vscode:
410+
needs: changes
411+
if:
412+
needs.changes.outputs.vscode == 'true' || needs.changes.outputs.ci ==
413+
'true' || github.ref == 'refs/heads/main'
396414
env:
397415
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
398416
runs-on: ubuntu-latest
399-
if: false
400417
steps:
401418
- uses: actions/checkout@v7
402419
- uses: actions/setup-node@v7
@@ -457,7 +474,19 @@ jobs:
457474
strategy:
458475
fail-fast: false
459476
matrix:
460-
dbt-version: ['1.3', '1.4', '1.5', '1.6', '1.7', '1.8', '1.9', '1.10', '1.11', '1.12']
477+
dbt-version:
478+
[
479+
'1.3',
480+
'1.4',
481+
'1.5',
482+
'1.6',
483+
'1.7',
484+
'1.8',
485+
'1.9',
486+
'1.10',
487+
'1.11',
488+
'1.12',
489+
]
461490
steps:
462491
- uses: actions/checkout@v7
463492
- name: Set up Python

vscode/extension/tests/fixtures.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@ export const test = base.extend<
6060
],
6161
})
6262

63-
// Export expect and Page from Playwright for convenience
64-
export { expect, Page } from '@playwright/test'
63+
// Export expect and commonly used Playwright types for convenience
64+
export { expect, FrameLocator, Page } from '@playwright/test'

vscode/extension/tests/lineage_settings.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { test, expect } from './fixtures'
2-
import type { FrameLocator, Page } from '@playwright/test'
2+
import type { FrameLocator, Page } from './fixtures'
33
import fs from 'fs-extra'
44
import {
55
openLineageView,

web/client/src/library/components/graph/ModelNode.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,11 @@ export default function ModelNode({
198198
style={{
199199
width: '100%',
200200
...(tagColor != null
201-
? { borderColor: tagColor, backgroundColor: tagColor, color: tagColor }
201+
? {
202+
borderColor: tagColor,
203+
backgroundColor: tagColor,
204+
color: tagColor,
205+
}
202206
: {}),
203207
}}
204208
>
@@ -246,7 +250,10 @@ export default function ModelNode({
246250
/>
247251
</div>
248252
{showColumns && (
249-
<div ref={columnsWrapperRef} style={{ height: '10rem', overflow: 'hidden' }}>
253+
<div
254+
ref={columnsWrapperRef}
255+
style={{ height: '10rem', overflow: 'hidden' }}
256+
>
250257
<ModelColumns
251258
className="nowheel rounded-b-lg bg-theme-lighter text-xs h-full"
252259
nodeId={id}

web/client/src/library/components/graph/help.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,10 @@ function getNodeMap({
175175
const model = models.get(modelName)
176176
const tagsStr = model?.details?.tags
177177
const tags = tagsStr
178-
? tagsStr.split(',').map(t => t.trim()).filter(Boolean)
178+
? tagsStr
179+
.split(',')
180+
.map(t => t.trim())
181+
.filter(Boolean)
179182
: undefined
180183
const node = createGraphNode(modelName, {
181184
label: model?.displayName ?? modelName,

0 commit comments

Comments
 (0)