diff --git a/.vscode/tasks.json b/.vscode/tasks.json deleted file mode 100644 index d0635661b6..0000000000 --- a/.vscode/tasks.json +++ /dev/null @@ -1,178 +0,0 @@ -{ - "version": "2.0.0", - "tasks": [ - { - "label": "Switch Omicron to Pinned Version", - "detail": "Checks out the pinned version as specified in OMICRON_VERSION", - "type": "shell", - "command": "tools/checkout_pinned_omicron.sh" - }, - { - "label": "Start CockroachDB", - "detail": "Starts a CockRoachDB instance", - "type": "shell", - "command": "cargo run --bin=omicron-dev -- db-run --no-populate", - "dependsOn": "Stop CockroachDB", - "isBackground": true, - "problemMatcher": { - "pattern": [ - { - "regexp": "^([^\\\\s].*)\\\\((\\\\d+,\\\\d+)\\\\):\\\\s*(.*)$", - "file": 1, - "location": 2, - "message": 3 - } - ], - "owner": "external", - "background": { - "activeOnStart": false, - "beginsPattern": "omicron-dev: will run this to start CockroachDB", - "endsPattern": "CockroachDB listening at: postgresql:\\/\\/root@127.0.0.1:32221\\/omicron\\?sslmode=disable" - } - }, - "presentation": { - "echo": true, - "reveal": "always", - "focus": false, - "panel": "new", - "showReuseMessage": true, - "clear": true - }, - "options": { - "cwd": "${workspaceFolder}/../omicron" - }, - "runOptions": { - "instanceLimit": 1 - } - }, - { - "label": "Stop CockroachDB", - "type": "shell", - "command": "cockroach quit --insecure --url \"postgresql://127.0.0.1:32221/omicron?sslmode=disable\" || true # Ignore Errors, may not be running", - "problemMatcher": [] - }, - { - "label": "Populate Nexus DB", - "detail": "Do not use", - "type": "shell", - "command": "cargo run --bin=omicron-dev -- db-populate --database-url \"postgresql://root@127.0.0.1:32221/omicron?sslmode=disable\"", - "options": { - "cwd": "${workspaceFolder}/../omicron" - }, - "dependsOn": ["Start CockroachDB"] - }, - { - "label": "Start Nexus", - "type": "shell", - "detail": "Run the Nexus dev server", - "dependsOrder": "sequence", - "dependsOn": ["Switch Omicron to Pinned Version", "Populate Nexus DB"], - "command": "cargo run --bin=nexus -- nexus/examples/config.toml", - "isBackground": true, - "problemMatcher": { - "pattern": [ - { - "regexp": "^([^\\\\s].*)\\\\((\\\\d+,\\\\d+)\\\\):\\\\s*(.*)$", - "file": 1, - "location": 2, - "message": 3 - } - ], - "background": { - "activeOnStart": true, - "beginsPattern": "Running", - "endsPattern": "INFO SEC running" - } - }, - "options": { - "cwd": "${workspaceFolder}/../omicron" - }, - "runOptions": { - "instanceLimit": 1 - } - }, - { - "label": "Seed Nexus Data", - "type": "shell", - "command": "../console/tools/populate_omicron_data.sh", - "options": { - "cwd": "${workspaceFolder}/../omicron" - } - }, - { - "label": "Start Sled Agent Sim", - "type": "shell", - "command": "cargo run --bin=sled-agent-sim -- $(uuidgen) '[::1]:12345' 127.0.0.1:12221", - "dependsOn": "Seed Nexus Data", - "isBackground": true, - "problemMatcher": { - "pattern": [ - { - "regexp": "^([^\\\\s].*)\\\\((\\\\d+,\\\\d+)\\\\):\\\\s*(.*)$", - "file": 1, - "location": 2, - "message": 3 - } - ], - "background": { - "activeOnStart": false, - "beginsPattern": "setting up sled agent server", - "endsPattern": "sled agent started successfully" - } - }, - "options": { - "cwd": "${workspaceFolder}/../omicron", - "shell": { - "executable": "/bin/bash", - "args": ["-c"] - } - } - }, - { - "label": "Start Console", - "detail": "Start the console in development mode", - "type": "npm", - "script": "start", - "isBackground": true, - "problemMatcher": { - "pattern": [ - { - "regexp": "^([^\\\\s].*)\\\\((\\\\d+,\\\\d+)\\\\):\\\\s*(.*)$", - "file": 1, - "location": 2, - "message": 3 - } - ], - "background": { - "activeOnStart": false, - "beginsPattern": "dev server running at", - "endsPattern": "ready in" - } - }, - "runOptions": { - "instanceLimit": 1 - } - }, - { - "label": "Start Console Development Environment", - "dependsOn": ["Start Nexus", "Start Sled Agent Sim", "Start Console"], - "dependsOrder": "sequence", - "group": { - "kind": "build", - "isDefault": true - }, - "runOptions": { - "instanceLimit": 1 - }, - "problemMatcher": [] - }, - { - "label": "Start Storybook", - "runOptions": { - "instanceLimit": 1 - }, - "type": "npm", - "script": "storybook" - } - ] -} diff --git a/tools/checkout_pinned_omicron.sh b/tools/checkout_pinned_omicron.sh deleted file mode 100755 index b096e8eddb..0000000000 --- a/tools/checkout_pinned_omicron.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, you can obtain one at https://mozilla.org/MPL/2.0/. -# -# Copyright Oxide Computer Company - -set -e -set -o pipefail - -VERSION="$(cat OMICRON_VERSION)" -cd ../omicron - -if ! git diff --quiet -then - echo "Omicron repo not clean. Stash any changes and return it to a clean state." - exit 1 -fi - -git checkout $VERSION