Skip to content

Commit c569d19

Browse files
authored
Merge branch 'main' into 19404-running-concurrency-limit
2 parents 447a202 + f14ad4d commit c569d19

File tree

139 files changed

+7104
-1305
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+7104
-1305
lines changed

.github/workflows/ui-v2-checks.yml

Lines changed: 89 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,58 @@ concurrency:
2727
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
2828

2929
jobs:
30-
build-ui:
31-
name: Build ui
30+
setup:
31+
name: Setup
3232
runs-on: ubuntu-latest
33+
outputs:
34+
cache-key: ${{ steps.cache-key.outputs.key }}
3335

3436
steps:
3537
- uses: actions/checkout@v6
3638

39+
- name: Generate cache key
40+
id: cache-key
41+
run: echo "key=${{ runner.os }}-node-modules-ui-v2-${{ hashFiles('ui-v2/package-lock.json') }}" >> $GITHUB_OUTPUT
42+
3743
- uses: actions/setup-node@v6
3844
with:
3945
node-version-file: "ui-v2/.nvmrc"
46+
cache: "npm"
4047
cache-dependency-path: "**/package-lock.json"
4148

49+
- name: Cache node_modules
50+
id: cache-node-modules
51+
uses: actions/cache@v4
52+
with:
53+
path: ui-v2/node_modules
54+
key: ${{ steps.cache-key.outputs.key }}
55+
56+
- name: Install UI dependencies
57+
if: steps.cache-node-modules.outputs.cache-hit != 'true'
58+
working-directory: ./ui-v2
59+
run: npm ci
60+
61+
lint:
62+
name: Lint
63+
runs-on: ubuntu-latest
64+
needs: setup
65+
66+
steps:
67+
- uses: actions/checkout@v6
68+
69+
- uses: actions/setup-node@v6
70+
with:
71+
node-version-file: "ui-v2/.nvmrc"
72+
73+
- name: Restore node_modules cache
74+
id: cache-node-modules
75+
uses: actions/cache@v4
76+
with:
77+
path: ui-v2/node_modules
78+
key: ${{ needs.setup.outputs.cache-key }}
79+
4280
- name: Install UI dependencies
81+
if: steps.cache-node-modules.outputs.cache-hit != 'true'
4382
working-directory: ./ui-v2
4483
run: npm ci
4584

@@ -56,10 +95,58 @@ jobs:
5695
working-directory: ./ui-v2
5796
run: npm run lint
5897

98+
build:
99+
name: Build
100+
runs-on: ubuntu-latest
101+
needs: setup
102+
103+
steps:
104+
- uses: actions/checkout@v6
105+
106+
- uses: actions/setup-node@v6
107+
with:
108+
node-version-file: "ui-v2/.nvmrc"
109+
110+
- name: Restore node_modules cache
111+
id: cache-node-modules
112+
uses: actions/cache@v4
113+
with:
114+
path: ui-v2/node_modules
115+
key: ${{ needs.setup.outputs.cache-key }}
116+
117+
- name: Install UI dependencies
118+
if: steps.cache-node-modules.outputs.cache-hit != 'true'
119+
working-directory: ./ui-v2
120+
run: npm ci
121+
59122
- name: Build UI
60123
working-directory: ./ui-v2
61124
run: npm run build
62125

126+
test:
127+
name: Test
128+
runs-on: ubuntu-latest
129+
needs: setup
130+
131+
steps:
132+
- uses: actions/checkout@v6
133+
134+
- uses: actions/setup-node@v6
135+
with:
136+
node-version-file: "ui-v2/.nvmrc"
137+
138+
- name: Restore node_modules cache
139+
id: cache-node-modules
140+
uses: actions/cache@v4
141+
with:
142+
path: ui-v2/node_modules
143+
key: ${{ needs.setup.outputs.cache-key }}
144+
145+
- name: Install UI dependencies
146+
if: steps.cache-node-modules.outputs.cache-hit != 'true'
147+
working-directory: ./ui-v2
148+
run: npm ci
149+
63150
- name: Run tests
64151
working-directory: ./ui-v2
65152
run: npm run test

docs/docs.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,6 +1275,7 @@
12751275
"v3/api-ref/python/prefect-server-services-foreman",
12761276
"v3/api-ref/python/prefect-server-services-late_runs",
12771277
"v3/api-ref/python/prefect-server-services-pause_expirations",
1278+
"v3/api-ref/python/prefect-server-services-perpetual_services",
12781279
"v3/api-ref/python/prefect-server-services-repossessor",
12791280
"v3/api-ref/python/prefect-server-services-scheduler",
12801281
"v3/api-ref/python/prefect-server-services-task_run_recorder",

docs/v3/api-ref/python/prefect-cli-server.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Users do not call this directly.
114114
We do everything in sync so that the child won't exit until the user kills it.
115115

116116

117-
### `list_services` <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/server.py#L721" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>
117+
### `list_services` <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/server.py#L737" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>
118118

119119
```python
120120
list_services()
@@ -124,7 +124,7 @@ list_services()
124124
List all available services and their status.
125125

126126

127-
### `start_services` <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/server.py#L746" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>
127+
### `start_services` <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/server.py#L762" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>
128128

129129
```python
130130
start_services(background: bool = typer.Option(False, '--background', '-b', help='Run the services in the background'))
@@ -134,7 +134,7 @@ start_services(background: bool = typer.Option(False, '--background', '-b', help
134134
Start all enabled Prefect services in one process.
135135

136136

137-
### `stop_services` <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/server.py#L807" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>
137+
### `stop_services` <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/server.py#L823" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>
138138

139139
```python
140140
stop_services()

0 commit comments

Comments
 (0)