Comments (3)
We should add to the test that it asserts the process is actually running/was submitted correctly
from ert.
Failed again here: https://github.com/equinor/ert/actions/runs/7741442276/job/21108609982?pr=7072
__________ test_subprocesses_live_on_after_ert_dies[using_job_queue] ___________
[gw2] darwin -- Python 3.10.13 /Users/runner/hostedtoolcache/Python/3.10.13/x64/bin/python
tmp_path = PosixPath('/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pytest-of-runner/pytest-0/popen-gw2/test_subprocesses_live_on_afte0')
try_queue_and_scheduler = None
@pytest.mark.scheduler
@pytest.mark.integration_test
async def test_subprocesses_live_on_after_ert_dies(tmp_path, try_queue_and_scheduler):
# Have ERT run a forward model that writes in PID to a file, then sleeps
# Forcefully terminate ERT and assert that the child process is not terminated
create_ert_config(tmp_path)
ert_process = subprocess.Popen(["ert", "test_run", "ert_config.ert"], cwd=tmp_path)
check_path_retry, check_path_max_retries = 0, 50
expected_path = Path(tmp_path, "test_out/realization-0/iter-0/forward_model_pid")
while not expected_path.exists() and check_path_retry < check_path_max_retries:
check_path_retry += 1
await asyncio.sleep(0.5)
> assert expected_path.exists()
E AssertionError: assert False
E + where False = <bound method Path.exists of PosixPath('/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pytest-of-runner/pytest-0/popen-gw2/test_subprocesses_live_on_afte0/test_out/realization-0/iter-0/forward_model_pid')>()
E + where <bound method Path.exists of PosixPath('/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pytest-of-runner/pytest-0/popen-gw2/test_subprocesses_live_on_afte0/test_out/realization-0/iter-0/forward_model_pid')> = PosixPath('/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pytest-of-runner/pytest-0/popen-gw2/test_subprocesses_live_on_afte0/test_out/realization-0/iter-0/forward_model_pid').exists
tests/integration_tests/scheduler/test_integration_local_driver.py:54: AssertionError
__________ test_subprocesses_live_on_after_ert_dies[using_scheduler] ___________
[gw2] darwin -- Python 3.10.13 /Users/runner/hostedtoolcache/Python/3.10.13/x64/bin/python
tmp_path = PosixPath('/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pytest-of-runner/pytest-0/popen-gw2/test_subprocesses_live_on_afte1')
try_queue_and_scheduler = None
@pytest.mark.scheduler
@pytest.mark.integration_test
async def test_subprocesses_live_on_after_ert_dies(tmp_path, try_queue_and_scheduler):
# Have ERT run a forward model that writes in PID to a file, then sleeps
# Forcefully terminate ERT and assert that the child process is not terminated
create_ert_config(tmp_path)
ert_process = subprocess.Popen(["ert", "test_run", "ert_config.ert"], cwd=tmp_path)
check_path_retry, check_path_max_retries = 0, 50
expected_path = Path(tmp_path, "test_out/realization-0/iter-0/forward_model_pid")
while not expected_path.exists() and check_path_retry < check_path_max_retries:
check_path_retry += 1
await asyncio.sleep(0.5)
> assert expected_path.exists()
E AssertionError: assert False
E + where False = <bound method Path.exists of PosixPath('/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pytest-of-runner/pytest-0/popen-gw2/test_subprocesses_live_on_afte1/test_out/realization-0/iter-0/forward_model_pid')>()
E + where <bound method Path.exists of PosixPath('/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pytest-of-runner/pytest-0/popen-gw2/test_subprocesses_live_on_afte1/test_out/realization-0/iter-0/forward_model_pid')> = PosixPath('/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pytest-of-runner/pytest-0/popen-gw2/test_subprocesses_live_on_afte1/test_out/realization-0/iter-0/forward_model_pid').exists
tests/integration_tests/scheduler/test_integration_local_driver.py:54: AssertionError
from ert.
More failures here:
- https://github.com/equinor/ert/actions/runs/7752957575/job/21143450048?pr=7081
- https://github.com/equinor/ert/actions/runs/7752860836/job/21143144088?pr=7050
from ert.
Related Issues (20)
- TypeError: 'RealNodeData' object is not subscriptable
- test_parameter_example fails consistently with hypothesis
- test_lsf_can_retrieve_stdout_and_stderr fails HOT 2
- Add Queue system used into the logs
- Explore new features of LSF 10
- Remove LOCAL JobQueue driver code
- Consider to remove self._receiver_timeout from Monitor
- After merging a5273b53fcd5869e42b4b5df7c7fc79acd82a028 stateful storage test fails
- tests/unit_tests/ensemble_evaluator/test_monitor.py::test_that_monitor_can_emit_heartbeats is flaky HOT 2
- 2x tests/unit_tests/storage/test_local_storage.py::TestStorage::runTest errors HOT 1
- Display status indicator when deleting an existing run path
- Convert Ert to use mkdocs rather than sphinx
- Mocked LSF system in integration testing does not allow killing HOT 1
- Non unique experiment names
- Two different seeds are reported in the ERT log files
- Observation configuration needs to be more general
- Potential flaky test_ies
- `Restart` experiment (or realization) from GUI does unexpected things
- Progressbar inconsistent with details view HOT 2
- Responses&observation handling could be more flexible
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ert.