Commit 2836749
authored
ci: fix devhub-validation (build with pnpm) and add a nightly DevHub build (#499)
* ci: build DevHub with pnpm + frozen lockfile in devhub-validation
DevHub is a pnpm-only repo (commits only pnpm-lock.yaml, packageManager
pnpm@10.11.0). The devhub-validation job installed it with `npm install`,
which ignores the committed lock and does a floating, non-reproducible
resolve on every run. A transitive dep publishing overnight was enough to
shift the hoist and pull @databricks/appkit-ui/react into Next's
react-server graph, crashing `next build` with
`TypeError: b.createContext is not a function` on a job that passed the day
before with no source change.
Build DevHub the way DevHub's own CI does: pnpm install --frozen-lockfile
and pnpm build. This makes the job reproducible and stops it silently
mis-testing via a package manager DevHub never uses.
Signed-off-by: Pawel Kosiec <pawel.kosiec@databricks.com>
* docs: touch readme to trigger devhub-validation
Temporary docs-path touch so the docs path filter runs devhub-validation
for the CI change in the previous commit. Safe to drop before merge.
Signed-off-by: Pawel Kosiec <pawel.kosiec@databricks.com>
* ci: let pnpm/action-setup read pnpm version from packageManager
Passing an explicit version: input conflicts with this repo's
packageManager field (pnpm@10.21.0), and action-setup errors out. Match
the other jobs and omit version: so it reads packageManager. pnpm 10.x
reads DevHub's lockfileVersion 9.0 fine.
Signed-off-by: Pawel Kosiec <pawel.kosiec@databricks.com>
* ci: drop redundant comment in devhub-validation
Signed-off-by: Pawel Kosiec <pawel.kosiec@databricks.com>
* Revert testing change
* ci: extract reusable DevHub build workflow + add nightly run
Move the devhub-validation build steps into a reusable workflow
(devhub-build.yml, workflow_call) so the per-PR job and a new nightly
share one definition instead of duplicating steps.
- ci.yml devhub-validation now calls the reusable workflow, passing the
PR's remote/ref; gating (needs detect-changes, docs filter) unchanged.
- devhub-nightly.yml runs the same build daily against appkit main, to
catch DevHub-side breaks that land between docs PRs. Failures surface
via GitHub's built-in scheduled-workflow-failure email.
Both callers grant id-token: write so the JFrog OIDC step keeps working.
Signed-off-by: Pawel Kosiec <pawel.kosiec@databricks.com>
* docs: temporary touch to verify devhub-validation (revert before merge)
Signed-off-by: Pawel Kosiec <pawel.kosiec@databricks.com>
* ci: tighten devhub-nightly comment
Signed-off-by: Pawel Kosiec <pawel.kosiec@databricks.com>
* ci: revert docs test touch and trim workflow comments
Signed-off-by: Pawel Kosiec <pawel.kosiec@databricks.com>
---------
Signed-off-by: Pawel Kosiec <pawel.kosiec@databricks.com>1 parent 672e757 commit 2836749
3 files changed
Lines changed: 82 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
359 | 335 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
0 commit comments