Skip to content

Commit

Permalink
fix: removing executed task from skip list.
Browse files Browse the repository at this point in the history
fix: small updates.

fix: simulate enabled in ci.

fix: removed libs

fix: added submodules back in.
  • Loading branch information
blmalone committed Jan 14, 2025
1 parent 91049d3 commit 288697a
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 18 deletions.
6 changes: 5 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -306,4 +306,8 @@ workflows:
- just_simulate_sc_rehearsal_2
- just_simulate_sc_rehearsal_4
- just_simulate_ink_respected_game_type
- simulate_non_terminal_tasks
# Simulate non-terminal tasks.
# This process finds all non-terminal tasks that currently
# exist in the task list and simulates them to ensure that
# they are still valid.
- simulate_non_terminal_tasks
2 changes: 1 addition & 1 deletion lib/solady
Submodule solady updated 185 files
2 changes: 1 addition & 1 deletion lib/superchain-registry
24 changes: 11 additions & 13 deletions script/utils/simulate-tasks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,23 @@ search_non_terminal_tasks() {
done
}

# Define directories to skip - you should add reasons why it's being skipped.
directories_to_skip=(
"tasks/sep/base-003-fp-granite-prestate" # investigating why this simulation breaks.
"tasks/sep/013-fp-granite-prestate" # investigating why this simulation breaks.
)
# Define directories to skip. If you're adding to this list, please add a comment explaining why.
directories_to_skip=()

should_skip_directory() {
local dir="$1"
for skip_dir in "${directories_to_skip[@]}"; do
if [[ "$dir" == *"$skip_dir"* ]]; then
echo "Skipping task: $(basename "$task") because it's been marked as a directory to skip."
return 0
fi
done
# Check if 'justfile' exists in the current directory. If it exists then it's either an old task
# or a template task that we can skip.
if [ -f "$dir/justfile" ]; then
echo "Skipping task: $(basename "$task") because it contains a 'justfile'."
return 0
fi
return 1
}

Expand All @@ -63,11 +67,7 @@ else
current_dir=$(pwd)
cd "$task" || exit 1

# Check if 'justfile' exists in the current directory it's either an old task
# that we can skip or a template task which we should also skip.
if [ -f "justfile" ] || should_skip_directory "$task"; then
echo "Skipping task: $(basename "$task") - please see simultate-tasks.sh for more information."
else
if ! should_skip_directory "$task"; then
just --dotenv-path "$PWD/.env" --justfile "$ROOT_DIR/single.just" simulate 0
fi

Expand All @@ -87,9 +87,7 @@ else
current_dir=$(pwd)
cd "$task" || exit 1

if [ -f "justfile" ] || should_skip_directory "$task"; then
echo "Skipping task: $(basename "$task") - please see simultate-tasks.sh to see why."
else
if ! should_skip_directory "$task"; then
just --dotenv-path "$PWD/.env" --justfile "$ROOT_DIR/nested.just" simulate council
just --dotenv-path "$PWD/.env" --justfile "$ROOT_DIR/nested.just" approve council
just --dotenv-path "$PWD/.env" --justfile "$ROOT_DIR/nested.just" simulate foundation
Expand Down

0 comments on commit 288697a

Please sign in to comment.