Code Monkey home page Code Monkey logo

Comments (12)

carlocab avatar carlocab commented on August 27, 2024 1

We'll want to remove

# Temporarily disable annotations on Linux
# https://github.com/Homebrew/homebrew-test-bot/issues/712
return if OS.linux?

when this is sorted.

from homebrew-test-bot.

MikeMcQuaid avatar MikeMcQuaid commented on August 27, 2024

No idea here. I wonder if it's something else about the environment rather than the OS i.e. the Linux runner/GitHub Actions runner has some environment variables set that are interfering?

from homebrew-test-bot.

carlocab avatar carlocab commented on August 27, 2024

Yea, I'm pretty stumped as well. However, I think my hypothesis about what's going on is correct, judging from what's happening on the Linux runner in this PR: Homebrew/homebrew-core#89567

It has a whole bunch of formulae to test, but it tests bison first. The test fails and test-bot exits. It never even makes it to the code that produces annotations (or else we would see them, and we'd see duplicated output in the CI log). What it should be doing is logging the failure and moving on to test other formulae.

from homebrew-test-bot.

carlocab avatar carlocab commented on August 27, 2024

CC @Homebrew/brew for ideas.

from homebrew-test-bot.

Bo98 avatar Bo98 commented on August 27, 2024

This is your problem:

Error: No such file or directory @ realpath_rec - /home/runner

Probably from:

https://github.com/Homebrew/brew/blob/07f14c32e9996196661bdc20830f48797079c463/Library/Homebrew/utils/github/actions.rb#L29

from homebrew-test-bot.

Bo98 avatar Bo98 commented on August 27, 2024

This is because of https://github.com/Homebrew/homebrew-core/blob/master/.github/workflows/tests.yml#L182-L190. We would need to change GITHUB_WORKSPACE going into this.

I can fix this but I wonder if we can just make it use GitHub's container system somehow (where it'll work out of the box). @dawidd6 I assume you've tried that already and the answer is it doesn't work? Does setting container to a blank value on macOS error?

from homebrew-test-bot.

carlocab avatar carlocab commented on August 27, 2024

This is your problem:

Error: No such file or directory @ realpath_rec - /home/runner

Probably from:

https://github.com/Homebrew/brew/blob/07f14c32e9996196661bdc20830f48797079c463/Library/Homebrew/utils/github/actions.rb#L29

I suspected that too, but IIRC I've seen that error on CI runs well before I started using GitHub::Actions::Annotation.

from homebrew-test-bot.

Bo98 avatar Bo98 commented on August 27, 2024

I suspected that too, but IIRC I've seen that error on CI runs well before I started using GitHub::Actions::Annotation.

I'll need to see an example run of this to tell. I've not seen that error until recently and GITHUB_WORKSPACE being set to a directory that won't exist in the Docker container makes sense as a cause.

from homebrew-test-bot.

dawidd6 avatar dawidd6 commented on August 27, 2024

Does setting container to a blank value on macOS error?

Yep

from homebrew-test-bot.

Bo98 avatar Bo98 commented on August 27, 2024

Does setting container to a blank value on macOS error?

Yep

This works for me: https://github.com/Bo98/workflow-test/blob/main/.github/workflows/test.yml

from homebrew-test-bot.

dawidd6 avatar dawidd6 commented on August 27, 2024

Interesting. Looks like it was changed a year ago:
actions/runner#265

So I guess we can now drop a lot of code in our workflows and just use jobs.<id>.container, nice.

from homebrew-test-bot.

carlocab avatar carlocab commented on August 27, 2024

I'll need to see an example run of this to tell.

Here are some examples: https://github.com/Homebrew/homebrew-core/runs/4120630533?check_suite_focus=true#step:7:33

https://github.com/Homebrew/homebrew-core/runs/4160230870?check_suite_focus=true#step:7:195

https://github.com/Homebrew/homebrew-core/runs/3638699455?check_suite_focus=true#step:7:33

The ENOENT seems to happen on an audit failure, which probably means that this is triggered by the annotations code.

On the other hand, it also didn't kill the test-bot run, unlike what's happening now. But I suppose thatโ€™ll be because the error is happening behind a test call in those examples. Now the error is in test-bot code.

from homebrew-test-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.