Skip to content

Commit

Permalink
ci: debug ci worktree caching
Browse files Browse the repository at this point in the history
  • Loading branch information
conorsch committed May 9, 2024
1 parent 16411b6 commit 1f66588
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/migration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
with:
# Cache the git worktree for faster builds
workspaces: |
.
./deployments/worktrees/v0.73.1
. -> ./target
./deployments/worktrees/v0.73.1 -> ./deployments/worktrees/v0.73.1/target
- name: Install cometbft binary
run: ./deployments/scripts/install-cometbft
Expand All @@ -35,4 +35,6 @@ jobs:
- name: Run migration test
run: |
export PATH="$HOME/bin:$PATH"
# debugging cache layers, checking which scripts are visible to CI context
tree deployments/compose/ deployments/scripts/
./deployments/scripts/migration-test v0.73.1
5 changes: 4 additions & 1 deletion deployments/scripts/migration-test
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ else
use_tui="false"
fi

set -x

# Look up some git facts for logging and preparing work trees.
repo_root="$(git rev-parse --show-toplevel)"
worktree_dir="${repo_root}/deployments/worktrees/${target_version}"
logs_dir="${repo_root}/deployments/logs"
mkdir -p "$logs_dir"
rm -f "${logs_dir}/"*".log"
find "$logs_dir" -type f -iname 'migration*.log' -exec rm -vf {} +

# Create a local git-worktree so that we can check out a prior
# tag and build its version of tests and suchwhat.
Expand All @@ -62,6 +64,7 @@ prepare_local_worktree() {
# run smoke tests against it from that checkout, then exit.
function run_migration_test_phase_1() {
>&2 echo "Running smoke-tests against pre-migration devnet, phase 1..."
tree deployments/compose/ deployments/scripts/
# Override the pc API port 8080 -> 9191, to avoid conflict with pd.
if ! process-compose \
--config deployments/compose/process-compose-smoke-test.yml \
Expand Down

0 comments on commit 1f66588

Please sign in to comment.