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

MacOS builds failing, actions/setup-node does not fix issue #593

Closed
jakebeal opened this issue Apr 7, 2024 · 12 comments · Fixed by #602
Closed

MacOS builds failing, actions/setup-node does not fix issue #593

jakebeal opened this issue Apr 7, 2024 · 12 comments · Fixed by #602
Assignees
Labels
bug Something isn't working

Comments

@jakebeal
Copy link

jakebeal commented Apr 7, 2024

Describe the bug

Issue #578 was closed with a suggestion that it could be addressed through use of actions/setup-node.

This suggestion does not appear to work: here are failures with both Node 18 and Node 20.

In these transcripts, note that the execution of setup-graphviz appears to ignore the copy of Node.js that is set up via setup-node, as brew installs its own node package (before ultimately failing).

The failure is now actually inside of setup-graphviz, rather than due to Node not being set up before, and does appear to be linked to the outdated packages used by setup-graphviz.

The failure can be found in other projects as well.
Examples:

Please do not close this issue until there is actually a verifiable fix this time.

@vkottler
Copy link

vkottler commented Apr 14, 2024

I am hitting the same failure mode seen in the second failure link in this issue:

...

==> Installing dependencies for graphviz: python@3.12, netpbm, gts, gdk-pixbuf, fribidi, pango and librsvg
==> Installing graphviz dependency: python@3.12
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.12/manifests/3.12.3
Already downloaded: /Users/runner/Library/Caches/Homebrew/downloads/5065c4d76c933aad4e13bd77c1bf37f0afe78f4608261edd170e331cb36c8a0d--python@3.12-3.12.3.bottle_manifest.json
==> Pouring python@3.12--3.12.3.monterey.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/2to3
Target /usr/local/bin/2to3
already exists. You may want to remove it:
  rm '/usr/local/bin/2to3'

To force the link and overwrite all conflicting files:
  brew link --overwrite python@3.12

To list all files that would be deleted:
  brew link --overwrite python@3.12 --dry-run

Possible conflicting files are:
/usr/local/bin/2to3 -> /Library/Frameworks/Python.framework/Versions/3.12/bin/2to3
/usr/local/bin/2to3-3.12 -> /Library/Frameworks/Python.framework/Versions/3.12/bin/2to3-3.12
/usr/local/bin/idle3 -> /Library/Frameworks/Python.framework/Versions/3.12/bin/idle3
/usr/local/bin/idle3.12 -> /Library/Frameworks/Python.framework/Versions/3.12/bin/idle3.12
/usr/local/bin/pydoc3 -> /Library/Frameworks/Python.framework/Versions/3.12/bin/pydoc3
/usr/local/bin/pydoc3.12 -> /Library/Frameworks/Python.framework/Versions/3.12/bin/pydoc3.12
/usr/local/bin/python3 -> /Library/Frameworks/Python.framework/Versions/3.12/bin/python3
/usr/local/bin/python3-config -> /Library/Frameworks/Python.framework/Versions/3.12/bin/python3-config
/usr/local/bin/python3.12 -> /Library/Frameworks/Python.framework/Versions/3.12/bin/python3.12
/usr/local/bin/python3.12-config -> /Library/Frameworks/Python.framework/Versions/3.12/bin/python3.12-config

Looks like something to do with homebrew Python installation vs. existing system installation?

@vkottler
Copy link

vkottler commented Apr 14, 2024

  private async brewInstall() {
    const skipBrewUpdate = getBooleanInput("macos-skip-brew-update");
    if (skipBrewUpdate === false) {
      await exec("brew", ["update"]);
    }
    await exec("brew", ["install", "graphviz"]);
  }

Well... given this is all this action really does, it's an issue with the macos-latest worker itself? ¯\_(ツ)_/¯

@jakebeal
Copy link
Author

@vkottler So far as I was able to diagnose in #578, the problem is that setup-graphviz only does one of the two standard brew update commands. That ends up leaving it with worse information than if it doesn't update at all.

I submitted a possible patch in #579, but it was declined by the maintainers because they didn't think this issue was real at the time. I am hoping that they will take it more seriously now that multiple projects are reporting the same issue.

@vkottler
Copy link

I was able to fix my issue by:

Wonder if something similar might work for you @jakebeal ?

@jakebeal
Copy link
Author

This looks to be equivalent to my current patch, which is to run ts-graphviz/setup-graphviz with the "mac disable update" setting on.

I would prefer not to switch away from ts-graphviz if I can, since this project has historically been stable and well-maintained, but my choice in the end will depend on the future choices made by the maintainers of the this project.

@kamiazya
Copy link
Member

Thank you for the information.

We have not been able to capture the exact situation yet, but it seemed to have affected us more than we anticipated.

I will try to find time to work toward a solution.

Thank you for your continued cooperation.

@kamiazya kamiazya added the bug Something isn't working label Apr 24, 2024
@kamiazya kamiazya pinned this issue Apr 24, 2024
@kamiazya kamiazya self-assigned this Apr 24, 2024
@kamiazya
Copy link
Member

@all-contributors please add @jakebeal for bug.

Copy link
Contributor

@kamiazya

I've put up a pull request to add @jakebeal! 🎉

@kamiazya
Copy link
Member

@all-contributors please add @vkottler for bug.

Copy link
Contributor

@kamiazya

I've put up a pull request to add @vkottler! 🎉

@kamiazya
Copy link
Member

@jakebeal @vkottler

As mentioned in #602, by the time we implemented the integration tests, it appeared that the issues with macOS operations had already been resolved (though I haven't verified this, it's possible that some updates were made on the homebrew).

If the problem continues to occur, please reopen this issue and let me know, and I will investigate further. I appreciate your cooperation and support in addressing these issues. Thank you!

jakebeal added a commit to SynBioDex/SBOL-utilities that referenced this issue Apr 24, 2024
jakebeal added a commit to SynBioDex/SBOL-utilities that referenced this issue Apr 24, 2024
@jakebeal
Copy link
Author

Thank you, @kamiazya : I have just pulled out my workaround, and the build was clean, so things look fixed from my perspective.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants