Giter Site home page Giter Site logo

MacOS action hangs about unittesting HOT 6 CLOSED

niosus avatar niosus commented on June 16, 2024
MacOS action hangs

from unittesting.

Comments (6)

randy3k avatar randy3k commented on June 16, 2024 1

Would you have an idea what could be the case here? Did you maybe happen to see it happen in other projects?

Unfortunately no... my package tests are working:

You might try https://github.com/mxschmitt/action-tmate which makes debugging a bit easier.
Have to sleep now, let me see if I could find something to look into it when I wake up. :)

from unittesting.

randy3k avatar randy3k commented on June 16, 2024

I've logged in to the runner with tmate and discovered that the test was frozen at Test if no json is found..

PS: UnitTesting currently does not handle the case that any tests are frozen indefinitely. Perhaps we should add a timeout, say 5 minutes, for each test case. At the same time, the GitHub UI is not responsive if the underlying program is blocked. It is why you couldn't see which test case was frozen from the web.

from unittesting.

randy3k avatar randy3k commented on June 16, 2024

FYI, you could run the tests with the following two lines via tmate.

cd "$SUBLIME_TEXT_PACKAGES/EasyClangComplete"
python3 ../UnitTesting/scripts/run_tests.py EasyClangComplete

from unittesting.

randy3k avatar randy3k commented on June 16, 2024

I have pushed some update to the action scripts. If you re-run the tests, you should see this:

Wait for tests output.........
Start to read output...
#####
async runner is deprecated, consider using the DeferrableTestCase.
#####

Darwin
test_singleton (tests.test_singleton.test_singleton)
Test if singleton returns a unique reference. ... ok
test_override_job (tests.test_thread_pool.TestThreadPool)
Test overriding job. ... ok
test_single_job (tests.test_thread_pool.TestThreadPool)
Test single job. ... ok
test_init (tests.test_row_col.TestRowCol)
Initialization test. ... ok
test_init_from_one_indexed (tests.test_row_col.TestRowCol)
Initialization test from 1-indexed row and column. ... ok
test_init_from_zero_indexed (tests.test_row_col.TestRowCol)
Initialization test from 0-indexed row and column. ... ok
test_location (tests.test_row_col.TestRowCol)
Location is valid. ... ok
test_setup_view (tests.test_row_col.TestRowCol)
Test that setup view correctly sets up the view. ... ok
test_get_catkin_ws (tests.test_catkinizer.TestCatkinizer)
Test getting a catkin workspace. ... ok
test_get_cmake_entry (tests.test_catkinizer.TestCatkinizer)
Get cmake entry. ... ok
test_get_ros_distro_path (tests.test_catkinizer.TestCatkinizer)
Check that we can get the paths to ros. ... /Users/runner/Library/Application Support/Sublime Text/Packages/EasyClangComplete/tests/cmake_tests
ok
test_init (tests.test_catkinizer.TestCatkinizer)
Test initialization. ... ok
test_setting_getting_project_data (tests.test_catkinizer.TestCatkinizer)
Test setting and getting project data. ... ok
test_builder (tests.test_flag.TestFlag)
Test tokenizing a list of all split flags. ... ok
test_builder_invalid (tests.test_flag.TestFlag)
Test tokenizing invalid flags. ... ok
test_hash (tests.test_flag.TestFlag)
Test that hash is always the same when needed. ... ok
test_init (tests.test_flag.TestFlag)
Initialization test. ... ok
test_put_into_container (tests.test_flag.TestFlag)
Test adding to hashed container. ... ok
test_tokenize (tests.test_flag.TestFlag)
Test tokenizing a list of all split flags. ... ok
test_empty_include_and_defines (tests.test_CppProperties.TestCppProperties)
Test that empty fields are handled correctly. ... ok
test_expand_environment_variables (tests.test_CppProperties.TestCppProperties)
Test environment variables are expanded. ... ok
test_get_all_flags (tests.test_CppProperties.TestCppProperties)
Test if CppProperties.json is found. ... ok
test_no_db_in_folder (tests.test_CppProperties.TestCppProperties)
Test if no json is found. ... 
Timeout: output is frozen.

from unittesting.

niosus avatar niosus commented on June 16, 2024

Oh, man! Thanks for all the time you've put into this, I'll check it out from here on. 🙏

from unittesting.

niosus avatar niosus commented on June 16, 2024

Ok, as always, the issue was found between the screen and the back of the chair. Somehow in Github actions on MacOS an error surfaced that I did not see before. The reason for the hand was that because of the way some non-existing paths were formed MacOS wanted to access network volumes for those. With GUI MacOS would prompt the user and in the CI it would just hang. Thanks a lot for bearing with me and for your help in figuring this out! 🙏

from unittesting.

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.