-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Basic Bashtub tests #3669
Add Basic Bashtub tests #3669
Conversation
Important Auto Review SkippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the To trigger a single review, invoke the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
pkg/storage/tracing/tracing.go
Outdated
Dur("duration", dur). | ||
Object("spec", &spec). | ||
Dur("Duration", dur). | ||
Str("Alias", spec.Alias). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this being changed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checkedout code from this PR before it was merged #3667
test/bin/bacalhau.sh
Outdated
if test "$TYPE" = "requester"; then | ||
if [[ "$TYPE" =~ "requester" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this was already fixed via #3667. So you can rebase your changes on main
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebased
test/list_nodes.sh
Outdated
|
||
subject bacalhau node list --output json | ||
assert_equal 0 $status | ||
assert_match '1' $(echo $stdout | jq '. | length') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The call to jq
can just be jq length
.
test/hello-world-docker-v2.sh
Outdated
# Assuming create_node is a function that takes two arguments separated by space, not comma | ||
create_node requester,compute | ||
|
||
# source $BACALHAU_DIR/bacalhau.run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove commented out code
test/hello-world-docker-v2.sh
Outdated
source bin/bacalhau.sh | ||
|
||
testcase_can_run_docker_hello_world() { | ||
# Assuming create_node is a function that takes two arguments separated by space, not comma |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a correct comment?
test/get-results.sh
Outdated
assert_equal 0 $status | ||
assert_match "15" $(echo $stdout) | ||
assert_equal '' $stderr | ||
rm -rf job-* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bit naughty, if I have downloaded any job results separate to testing it will delete these also. Can't we work out the job folder from the job id?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Previously tests accidentally used demo network nodes if the node that
was started was a hybrid.