-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add Linux quickdev task #3521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Linux quickdev task #3521
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -84,6 +84,19 @@ tasks: | |||||||||||||||||||||||||||||||||||||
| WCLOUD_ENDPOINT: "https://api-dev.waveterm.dev/central" | ||||||||||||||||||||||||||||||||||||||
| WCLOUD_WS_ENDPOINT: "wss://wsapi-dev.waveterm.dev/" | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| electron:linuxquickdev: | ||||||||||||||||||||||||||||||||||||||
| desc: Run the Electron application via the Vite dev server (quick dev - Linux amd64 only, no generate, no wsh). | ||||||||||||||||||||||||||||||||||||||
| cmd: npm run dev | ||||||||||||||||||||||||||||||||||||||
| deps: | ||||||||||||||||||||||||||||||||||||||
| - npm:install | ||||||||||||||||||||||||||||||||||||||
| - build:backend:quickdev:linux | ||||||||||||||||||||||||||||||||||||||
| env: | ||||||||||||||||||||||||||||||||||||||
| WAVETERM_ENVFILE: "{{.ROOT_DIR}}/.env" | ||||||||||||||||||||||||||||||||||||||
| WCLOUD_PING_ENDPOINT: "https://ping-dev.waveterm.dev/central" | ||||||||||||||||||||||||||||||||||||||
| WCLOUD_ENDPOINT: "https://api-dev.waveterm.dev/central" | ||||||||||||||||||||||||||||||||||||||
| WCLOUD_WS_ENDPOINT: "wss://wsapi-dev.waveterm.dev/" | ||||||||||||||||||||||||||||||||||||||
| WAVETERM_NOCONFIRMQUIT: "1" | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| docs:npm:install: | ||||||||||||||||||||||||||||||||||||||
| desc: Runs `npm install` in docs directory | ||||||||||||||||||||||||||||||||||||||
| internal: true | ||||||||||||||||||||||||||||||||||||||
|
|
@@ -237,6 +250,24 @@ tasks: | |||||||||||||||||||||||||||||||||||||
| generates: | ||||||||||||||||||||||||||||||||||||||
| - dist/bin/wavesrv.x64.exe | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| build:backend:quickdev:linux: | ||||||||||||||||||||||||||||||||||||||
| desc: Build only the wavesrv component for quickdev (Linux amd64 only, no generate, no wsh). | ||||||||||||||||||||||||||||||||||||||
| platforms: [linux/amd64] | ||||||||||||||||||||||||||||||||||||||
| cmds: | ||||||||||||||||||||||||||||||||||||||
| - task: build:server:internal | ||||||||||||||||||||||||||||||||||||||
| vars: | ||||||||||||||||||||||||||||||||||||||
| ARCHS: amd64 | ||||||||||||||||||||||||||||||||||||||
| deps: | ||||||||||||||||||||||||||||||||||||||
| - go:mod:tidy | ||||||||||||||||||||||||||||||||||||||
| sources: | ||||||||||||||||||||||||||||||||||||||
| - "cmd/server/*.go" | ||||||||||||||||||||||||||||||||||||||
| - "pkg/**/*.go" | ||||||||||||||||||||||||||||||||||||||
| - "pkg/**/*.json" | ||||||||||||||||||||||||||||||||||||||
| - "pkg/**/*.sh" | ||||||||||||||||||||||||||||||||||||||
| - "tsunami/**/*.go" | ||||||||||||||||||||||||||||||||||||||
| generates: | ||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+262
to
+268
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: sed -n '200,295p' Taskfile.yml
rg -n 'go:mod:tidy|build:server:internal|go.mod|go.sum|method:|sources:|generates:' Taskfile.ymlRepository: wavetermdev/waveterm Length of output: 5283 🏁 Script executed: set -eu
printf '%s\n' '--- PR diff summary ---'
git diff --stat a4447c1563b2df285ab89e76c82f91e1a1a49c1e da4d4f305289e298ba20dabe92908b2abd6dcd20 -- Taskfile.yml
printf '%s\n' '--- Taskfile caller and build definitions ---'
sed -n '70,115p' Taskfile.yml
sed -n '145,180p' Taskfile.yml
sed -n '185,275p' Taskfile.yml
sed -n '295,335p' Taskfile.yml
sed -n '525,545p' Taskfile.yml
printf '%s\n' '--- module declarations and build references ---'
sed -n '1,80p' go.mod
sed -n '1,80p' tsunami/go.mod
rg -n 'tsunami/(go\.mod|go\.sum)|go\.mod|go\.sum|build:backend:quickdev:linux|electron:linuxquickdev|build:server:internal' Taskfile.yml go.mod tsunami/go.mod
printf '%s\n' '--- exact PR changes ---'
git diff --unified=12 a4447c1563b2df285ab89e76c82f91e1a1a49c1e da4d4f305289e298ba20dabe92908b2abd6dcd20 -- Taskfile.ymlRepository: wavetermdev/waveterm Length of output: 16269 🏁 Script executed: set -eu
printf '%s\n' '--- root module tail and tsunami references ---'
sed -n '75,150p' go.mod
rg -n -C 2 'github\.com/wavetermdev/waveterm/tsunami|tsunami/' cmd pkg --glob '*.go' || true
printf '%s\n' '--- tsunami-related task definitions ---'
sed -n '640,685p' Taskfile.yml
printf '%s\n' '--- task source lists around existing module tracking ---'
sed -n '140,180p' Taskfile.ymlRepository: wavetermdev/waveterm Length of output: 6411 Track all module files used by the Linux backend build.
Suggested fix sources:
+ - "go.mod"
+ - "go.sum"
- "cmd/server/*.go"
- "pkg/**/*.go"
- "pkg/**/*.json"
- "pkg/**/*.sh"
+ - "tsunami/go.mod"
+ - "tsunami/go.sum"
- "tsunami/**/*.go"📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||
| - dist/bin/wavesrv.x64 | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| build:server:windows: | ||||||||||||||||||||||||||||||||||||||
| desc: Build the wavesrv component for Windows platforms (only generates artifacts for the current architecture). | ||||||||||||||||||||||||||||||||||||||
| platforms: [windows] | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Restrict the Electron task to linux/amd64.
On another platform, Task skips
build:backend:quickdev:linuxwithout an error, but this task still runsnpm run dev. Electron can then start without a freshly built backend. Addplatforms: [linux/amd64]toelectron:linuxquickdevas well. (taskfile.dev)🤖 Prompt for AI Agents