chore: dev tools and fixtures carry no machine-specific defaults

This commit is contained in:
2026-10-23 23:35:57 +01:00
parent 984dad0767
commit e46c762394
6 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -32,7 +32,7 @@ SESSIONS = [
"title": "Answer an approval", "title": "Answer an approval",
"agent": "build", "agent": "build",
"model": "deepseek-v4.1", "model": "deepseek-v4.1",
"directory": "/Users/alan/repos/pipelines", "directory": "/home/user/project",
"created_at": 1760620000000, "created_at": 1760620000000,
"updated_at": 1760620600000, "updated_at": 1760620600000,
"busy": False, "busy": False,
@@ -42,7 +42,7 @@ SESSIONS = [
"title": "Already resolved", "title": "Already resolved",
"agent": "build", "agent": "build",
"model": "deepseek-v4.1", "model": "deepseek-v4.1",
"directory": "/Users/alan/repos/pipelines", "directory": "/home/user/project",
"created_at": 1760620000000, "created_at": 1760620000000,
"updated_at": 1760620600000, "updated_at": 1760620600000,
"busy": False, "busy": False,
+1 -1
View File
@@ -58,7 +58,7 @@ class _FixtureGateway implements ApiGateway {
'chat_directories': [ 'chat_directories': [
'/workspace/demo', '/workspace/demo',
'/workspace/archive', '/workspace/archive',
'/Users/alan/repos/pipelines/tmp/flutter-chat-list', '/home/user/project',
], ],
}; };
case 'chat_backends': case 'chat_backends':
+1 -1
View File
@@ -7,7 +7,7 @@
# verdict comes from the suite's own final line, which is echoed with the # verdict comes from the suite's own final line, which is echoed with the
# totals. Logs go to build/check/ for the caller's evidence. # totals. Logs go to build/check/ for the caller's evidence.
set -u set -u
FLUTTER="${FLUTTER:-/Users/alan/development/flutter/bin/flutter}" FLUTTER="${FLUTTER:-flutter}"
mkdir -p build/check mkdir -p build/check
"$FLUTTER" analyze > build/check/analyze.log 2>&1 "$FLUTTER" analyze > build/check/analyze.log 2>&1
if ! grep -q "No issues found" build/check/analyze.log; then if ! grep -q "No issues found" build/check/analyze.log; then
+6 -6
View File
@@ -5,21 +5,21 @@
# The build number is minutes since the epoch, so every build is newer than # The build number is minutes since the epoch, so every build is newer than
# the last. The APK and version.json go to build/updates/ (kept across preview # the last. The APK and version.json go to build/updates/ (kept across preview
# publishes) and are copied into the live preview at build/web/updates/, # publishes) and are copied into the live preview at build/web/updates/,
# served behind the web login at https://<host>:8096/updates/. Never restarts # served behind the web login at /updates/. Never restarts
# any server. # any server.
set -eu set -eu
notes="${1:-}" notes="${1:-}"
# The phone's default server: the web proxy over Tailscale (sign in once in # The phone's default server, e.g. wss://host:8443/connect (required). An
# Settings). Override with PIPELINES_SERVER_URL. # installation builds its APK with ./install --apk instead.
server="${PIPELINES_SERVER_URL:-wss://alans-macbook-pro.tail6bf4dc.ts.net:8443/connect}" server="${PIPELINES_SERVER_URL:?set PIPELINES_SERVER_URL to the phone default server, e.g. wss://host/connect}"
FLUTTER="${FLUTTER:-/Users/alan/development/flutter/bin/flutter}" FLUTTER="${FLUTTER:-flutter}"
export JAVA_HOME="${JAVA_HOME:-/Applications/Android Studio.app/Contents/jbr/Contents/Home}" export JAVA_HOME="${JAVA_HOME:-/Applications/Android Studio.app/Contents/jbr/Contents/Home}"
export ANDROID_HOME="${ANDROID_HOME:-$HOME/Library/Android/sdk}" export ANDROID_HOME="${ANDROID_HOME:-$HOME/Library/Android/sdk}"
code=$(( $(date +%s) / 60 )) code=$(( $(date +%s) / 60 ))
name="0.1.$code" name="0.1.$code"
"$FLUTTER" build apk --release --build-number="$code" --build-name="$name" \ "$FLUTTER" build apk --release --build-number="$code" --build-name="$name" \
--dart-define=PIPELINES_SERVER_URL="$server" \ --dart-define=PIPELINES_SERVER_URL="$server" \
--dart-define=PIPELINES_UPDATES_URL="${PIPELINES_UPDATES_URL:-https://alans-macbook-pro.tail6bf4dc.ts.net:8096/updates/}" ${PIPELINES_UPDATES_URL:+--dart-define=PIPELINES_UPDATES_URL="$PIPELINES_UPDATES_URL"}
mkdir -p build/updates mkdir -p build/updates
cp build/app/outputs/flutter-apk/app-release.apk build/updates/pipelines.apk cp build/app/outputs/flutter-apk/app-release.apk build/updates/pipelines.apk
cat > build/updates/version.json <<JSON cat > build/updates/version.json <<JSON
+1 -1
View File
@@ -8,7 +8,7 @@
# directory and the new main.dart.js hash. Never restarts any server. # directory and the new main.dart.js hash. Never restarts any server.
set -eu set -eu
name="${1:?usage: sh tool/publish_preview.sh <name>}" name="${1:?usage: sh tool/publish_preview.sh <name>}"
FLUTTER="${FLUTTER:-/Users/alan/development/flutter/bin/flutter}" FLUTTER="${FLUTTER:-flutter}"
"$FLUTTER" build web -o build/web-next "$FLUTTER" build web -o build/web-next
rollback="build/web-before-${name}-$(date +%s)" rollback="build/web-before-${name}-$(date +%s)"
if [ -d build/web ]; then mv build/web "$rollback"; fi if [ -d build/web ]; then mv build/web "$rollback"; fi
+1 -1
View File
@@ -128,7 +128,7 @@ const _fixtureHits = <JsonMap>[
'id': 457, 'id': 457,
'pipeline_name': 'Plan and land', 'pipeline_name': 'Plan and land',
'status': 'succeeded', 'status': 'succeeded',
'workspace': '/Users/alan/repos/pipelines', 'workspace': '/home/user/project',
'created_at': '2026-10-20T08:12:00Z', 'created_at': '2026-10-20T08:12:00Z',
'finished_at': '2026-10-20T08:42:00Z', 'finished_at': '2026-10-20T08:42:00Z',
}, },