Skip to content
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

see if new swarm setting works #715

Merged

Conversation

thetechnocrat-dev
Copy link
Contributor

@thetechnocrat-dev thetechnocrat-dev commented Oct 19, 2023

What type of PR is this? (check all applicable)

  • 🐛 Bug Fix

Description

Private CI is not working because Bacalhau depreciated the old way we used to set BACALHAU_IPFS_SWARM_ADDRESSES

This PR fixes it by setting BACALHAU_IPFS_SWARM_ADDRESSES during Bacalhau client creation. It also uses IPFS directly for result downloads instead of the Bacalhau wrapper. This is because the Bacalhau IPFS Downloader doesn't correctly use the BACALHAU_IPFS_SWARM_ADDRESSES setting.

Other small changes

  • CreateBacalhauClient returns an error instead of panicking
  • ipfs.DownloadToDirectory uses the directory argument and doesn't namespace the directory with the CID. ipfs.DownloadToDirectory was not used anywhere in the codebase when I made this change.

Related Tickets & Documents

Linear Ticket

Bacalhau Slack

Steps to Test

Hope the CI passes.

Relevant GIF

Screenshot 2023-10-23 at 9 05 54 AM

@thetechnocrat-dev thetechnocrat-dev linked an issue Oct 19, 2023 that may be closed by this pull request
@vercel
Copy link

vercel bot commented Oct 19, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
docs ⬜️ Ignored (Inspect) Visit Preview Oct 23, 2023 1:26pm

@thetechnocrat-dev thetechnocrat-dev temporarily deployed to ci October 19, 2023 15:35 — with GitHub Actions Inactive
@thetechnocrat-dev thetechnocrat-dev temporarily deployed to ci October 19, 2023 15:35 — with GitHub Actions Inactive
@thetechnocrat-dev thetechnocrat-dev temporarily deployed to ci October 19, 2023 15:35 — with GitHub Actions Inactive
@thetechnocrat-dev thetechnocrat-dev temporarily deployed to ci October 19, 2023 15:35 — with GitHub Actions Inactive
@thetechnocrat-dev thetechnocrat-dev temporarily deployed to ci October 19, 2023 15:38 — with GitHub Actions Inactive
@thetechnocrat-dev thetechnocrat-dev temporarily deployed to ci October 19, 2023 15:38 — with GitHub Actions Inactive
@alabdao alabdao temporarily deployed to ci October 19, 2023 18:52 — with GitHub Actions Inactive
@alabdao alabdao temporarily deployed to ci October 19, 2023 18:52 — with GitHub Actions Inactive
@alabdao alabdao temporarily deployed to ci October 19, 2023 18:53 — with GitHub Actions Inactive
@alabdao alabdao temporarily deployed to ci October 19, 2023 18:56 — with GitHub Actions Inactive
@thetechnocrat-dev thetechnocrat-dev temporarily deployed to ci October 20, 2023 01:22 — with GitHub Actions Inactive
@thetechnocrat-dev thetechnocrat-dev temporarily deployed to ci October 23, 2023 12:08 — with GitHub Actions Inactive
@thetechnocrat-dev thetechnocrat-dev temporarily deployed to ci October 23, 2023 12:08 — with GitHub Actions Inactive
@thetechnocrat-dev thetechnocrat-dev temporarily deployed to ci October 23, 2023 12:08 — with GitHub Actions Inactive
@thetechnocrat-dev thetechnocrat-dev temporarily deployed to ci October 23, 2023 12:12 — with GitHub Actions Inactive
@thetechnocrat-dev thetechnocrat-dev temporarily deployed to ci October 23, 2023 12:12 — with GitHub Actions Inactive
@thetechnocrat-dev thetechnocrat-dev temporarily deployed to ci October 23, 2023 12:27 — with GitHub Actions Inactive
@thetechnocrat-dev thetechnocrat-dev temporarily deployed to ci October 23, 2023 12:27 — with GitHub Actions Inactive
@thetechnocrat-dev thetechnocrat-dev temporarily deployed to ci October 23, 2023 12:27 — with GitHub Actions Inactive
@thetechnocrat-dev thetechnocrat-dev temporarily deployed to ci October 23, 2023 12:31 — with GitHub Actions Inactive
@thetechnocrat-dev thetechnocrat-dev temporarily deployed to ci October 23, 2023 12:31 — with GitHub Actions Inactive
@thetechnocrat-dev thetechnocrat-dev temporarily deployed to ci October 23, 2023 12:50 — with GitHub Actions Inactive
@thetechnocrat-dev thetechnocrat-dev temporarily deployed to ci October 23, 2023 12:50 — with GitHub Actions Inactive
@thetechnocrat-dev thetechnocrat-dev temporarily deployed to ci October 23, 2023 12:50 — with GitHub Actions Inactive
@thetechnocrat-dev thetechnocrat-dev temporarily deployed to ci October 23, 2023 12:54 — with GitHub Actions Inactive
@thetechnocrat-dev thetechnocrat-dev temporarily deployed to ci October 23, 2023 12:54 — with GitHub Actions Inactive
@alabdao alabdao temporarily deployed to ci October 23, 2023 13:26 — with GitHub Actions Inactive
@alabdao alabdao temporarily deployed to ci October 23, 2023 13:26 — with GitHub Actions Inactive
@alabdao alabdao temporarily deployed to ci October 23, 2023 13:26 — with GitHub Actions Inactive
@alabdao alabdao temporarily deployed to ci October 23, 2023 13:30 — with GitHub Actions Inactive
@alabdao alabdao temporarily deployed to ci October 23, 2023 13:30 — with GitHub Actions Inactive
Copy link
Collaborator

@alabdao alabdao left a comment

Choose a reason for hiding this comment

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

awesome!

@thetechnocrat-dev thetechnocrat-dev merged commit f0128a2 into main Oct 23, 2023
8 checks passed
@thetechnocrat-dev thetechnocrat-dev deleted the 714-lab-700-lab-699-bacalhau-swarm-config-commented-out branch October 23, 2023 13:51
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.

[LAB-700] [LAB-699] bacalhau swarm config commented out
2 participants