-
Notifications
You must be signed in to change notification settings - Fork 19
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
feat: Upgrade to bacalhau 1.6 #441
Conversation
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 good start. let's get it rebased and cleaned up. lots of questions above
d460bbf
to
0406e23
Compare
ee15bfb
to
5d88d99
Compare
- name: Start solver | ||
run: | | ||
./stack solver --disable-telemetry=true --api-host="" > solver.log & | ||
sleep 5 | ||
|
||
- name: Display resource provider logs | ||
run: docker logs resource-provider | ||
- name: Run solver integration tests | ||
run: ./stack integration-tests-solver | ||
|
||
- name: Start resource provider | ||
run: | | ||
./stack resource-provider --disable-telemetry=true --api-host="" > resource-provider.log & | ||
sleep 5 | ||
|
||
- name: Run main integration tests | ||
run: ./stack integration-tests |
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 staged set of integration tests allows us to run solver tests without having resource offers being added by an RP. This will be important for #462 e.g.
# Install Bacalhau | ||
RUN cd /tmp && \ | ||
wget https://github.com/bacalhau-project/bacalhau/releases/download/v1.3.2/bacalhau_v1.3.2_linux_amd64.tar.gz && \ | ||
tar xfv bacalhau_v1.3.2_linux_amd64.tar.gz && \ | ||
mv bacalhau /usr/local/bin/bacalhau && \ | ||
rm bacalhau_v1.3.2_linux_amd64.tar.gz | ||
|
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.
Using the http API means we no longer need to also have the bacalhau CLI installed here
@@ -17,8 +17,8 @@ RUN mkdir -pm755 /etc/apt/keyrings && curl -o /etc/apt/keyrings/docker.asc -fsSL | |||
RUN nvidia-ctk runtime configure --runtime=docker --set-as-default | |||
|
|||
# Install Bacalhau | |||
ADD https://github.com/bacalhau-project/bacalhau/releases/download/v1.3.2/bacalhau_v1.3.2_linux_amd64.tar.gz . | |||
RUN tar xfv bacalhau_v1.3.2_linux_amd64.tar.gz | |||
ADD https://github.com/bacalhau-project/bacalhau/releases/download/v1.6.0/bacalhau_v1.6.0_linux_amd64.tar.gz . |
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.
🎉
@@ -1,4 +1,4 @@ | |||
//go:build integration | |||
//go:build integration && solver |
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.
🙌
@@ -51,6 +51,7 @@ func SetupLogging() { | |||
logLevel = parsedLogLevel | |||
} | |||
zerolog.CallerSkipFrameCount = 3 // Skip 3 frames (this function, log.Output, log.Logger) | |||
zerolog.SetGlobalLevel(logLevel) |
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.
Oh yeah that 😁
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.
Summary
This pull request makes the following changes:
Important Changes and Notes for clean up
Task/Issue reference
Test plan
./stack integration-tests
)You can also verify the output recieved using the following:
ipfs add -nQr /tmp/lilypad/data/downloaded-files/<DEALID>
(using the output path from the CLI). The resulting CID should match theDataID
provided by the CLI. See: