Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,23 +227,23 @@ To find comment IDs, use:
```bash
# Set up a fresh workspace for your branch
BRANCH_NAME="your-branch-name"
gcloud --quiet compute ssh root@ci-1 --zone us-central1-f --project httpjail -- "
gcloud --quiet compute ssh root@ci-1 --zone us-central1-f --project httpjail --tunnel-through-iap -- "
rm -rf /tmp/httpjail-$BRANCH_NAME
git clone https://github.com/coder/httpjail /tmp/httpjail-$BRANCH_NAME
cd /tmp/httpjail-$BRANCH_NAME
git checkout $BRANCH_NAME
"

# Sync individual files during debugging (preferred over commits)
gcloud compute scp src/rules/proc.rs root@ci-1:/tmp/httpjail-$BRANCH_NAME/src/rules/ --zone us-central1-f --project httpjail
gcloud compute scp tests/json_parity.rs root@ci-1:/tmp/httpjail-$BRANCH_NAME/tests/ --zone us-central1-f --project httpjail
gcloud compute scp src/rules/proc.rs root@ci-1:/tmp/httpjail-$BRANCH_NAME/src/rules/ --zone us-central1-f --project httpjail --tunnel-through-iap
gcloud compute scp tests/json_parity.rs root@ci-1:/tmp/httpjail-$BRANCH_NAME/tests/ --zone us-central1-f --project httpjail --tunnel-through-iap

# Or sync entire directories if many files changed
gcloud compute scp --recurse src/ root@ci-1:/tmp/httpjail-$BRANCH_NAME/ --zone us-central1-f --project httpjail
gcloud compute scp Cargo.toml root@ci-1:/tmp/httpjail-$BRANCH_NAME/ --zone us-central1-f --project httpjail
gcloud compute scp --recurse src/ root@ci-1:/tmp/httpjail-$BRANCH_NAME/ --zone us-central1-f --project httpjail --tunnel-through-iap
gcloud compute scp Cargo.toml root@ci-1:/tmp/httpjail-$BRANCH_NAME/ --zone us-central1-f --project httpjail --tunnel-through-iap

# Build and test in the isolated workspace (using shared cargo cache)
gcloud --quiet compute ssh root@ci-1 --zone us-central1-f --project httpjail -- "
gcloud --quiet compute ssh root@ci-1 --zone us-central1-f --project httpjail --tunnel-through-iap -- "
cd /tmp/httpjail-$BRANCH_NAME
export CARGO_HOME=/home/ci/.cargo
/home/ci/.cargo/bin/cargo build --profile fast
Expand Down
4 changes: 2 additions & 2 deletions scripts/ci-scp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if [[ "$SOURCE" == *"ci-1:"* ]]; then
gcloud compute scp --quiet --recurse \
"root@ci-1:$SOURCE_PATH" \
"$DEST" \
--zone us-central1-f --project httpjail
--zone us-central1-f --project httpjail --tunnel-through-iap
else
# Uploading to CI-1
# If destination doesn't start with root@ci-1:, prepend it
Expand All @@ -36,5 +36,5 @@ else
gcloud compute scp --quiet --recurse \
"$SOURCE" \
"$DEST" \
--zone us-central1-f --project httpjail
--zone us-central1-f --project httpjail --tunnel-through-iap
fi
4 changes: 2 additions & 2 deletions scripts/ci-ssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ set -e

if [ $# -eq 0 ]; then
echo "Connecting to CI-1 instance (interactive)..."
gcloud --quiet compute ssh root@ci-1 --zone us-central1-f --project httpjail
gcloud --quiet compute ssh root@ci-1 --zone us-central1-f --project httpjail --tunnel-through-iap
else
# Execute command remotely
gcloud --quiet compute ssh root@ci-1 --zone us-central1-f --project httpjail -- "$@"
gcloud --quiet compute ssh root@ci-1 --zone us-central1-f --project httpjail --tunnel-through-iap -- "$@"
fi
Loading