Skip to content

Conversation

@adamruzicka
Copy link
Contributor

@adamruzicka adamruzicka commented Nov 19, 2025

squash before merge please

@adamruzicka adamruzicka force-pushed the bats branch 4 times, most recently from 4d3870f to 753b810 Compare November 19, 2025 13:19
@adamruzicka adamruzicka marked this pull request as ready for review November 19, 2025 13:24
@adamruzicka adamruzicka force-pushed the bats branch 3 times, most recently from 171dd3b to ee9d9f1 Compare November 20, 2025 08:47
Copy link

@ofedoren ofedoren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @adamruzicka, I guess we can squash it now.

Some really minor nits, but otherwise LGTM.

RemoteExecutorExample.run_server
when 'client'
RemoteExecutorExample.run_client
RemoteExecutorExample.run_client(ARGV[1]&.to_i)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nil.to_i is 0, which makes the condition above 0.times instead of probably desired 1000.times.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nil.to_i is indeed 0, but nil&.to_i should still be nil, right?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am a dumbass, nevermind 🤦

}

# Print section header for debugging
print_header() {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not being used anywhere, do we still want that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dropped

Comment on lines 132 to 134
exec_redis() {
local cmd="$@"
podman exec "${REDIS_CONTAINER_NAME}" redis-cli ${cmd}
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shellcheck is not much happy about this:

SC2124 (warning): Assigning an array to a string! Assign as array, or use * instead of @ to concatenate.

SC2086 (info): Double quote to prevent globbing and word splitting.

Not that it's important, I'v just noticed you have a commit to make it happy.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was no need for a local variable anyway

Comment on lines +9 to +18
setup() {
# Setup environment variables
setup_test_env

# Ensure containers are running
is_postgres_running && stop_postgres
start_postgres
is_redis_running && stop_redis
start_redis
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, not important, but inconsistent spacing: 2 spaces, whilst below it's probably a tab.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@adamruzicka
Copy link
Contributor Author

and squashed

Copy link

@ofedoren ofedoren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @adamruzicka, let's get this in.

@adamruzicka adamruzicka merged commit 9b19e04 into Dynflow:master Nov 26, 2025
11 checks passed
@adamruzicka adamruzicka deleted the bats branch November 26, 2025 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants