Repository navigation
Conversation
|
The style in this PR agrees with This formatting comment was generated automatically by a script in uc-cdis/wool. |
Coverage Report for CI Build 45653703220Coverage decreased (-0.9%) to 86.801%Details
Uncovered ChangesNo uncovered changes found. Coverage Regressions52 previously-covered lines in 3 files lost coverage.
Coverage Stats
💛 - Coveralls |
Integration Tests on Kind
|
Failure AnalysisPlease find the detailed test analysis report here |
| from gen3workflow.start import prepare_metrics_directory | ||
|
|
||
|
|
||
| def test_prepare_metrics_directory_clears_stale_metrics(tmp_path, monkeypatch): |
There was a problem hiding this comment.
The lint check is failing:
************* Module gen3workflow.start
gen3workflow/start.py:7:0: C0116: Missing function or method docstring (missing-function-docstring)
gen3workflow/start.py:17:0: C0116: Missing function or method docstring (missing-function-docstring)
************* Module tests.test_start
tests/test_start.py:8:0: C0116: Missing function or method docstring (missing-function-docstring)
tests/test_start.py:22:0: C0116: Missing function or method docstring (missing-function-docstring)
tests/test_start.py:31:0: C0116: Missing function or method docstring (missing-function-docstring)
tests/test_start.py:38:0: C0116: Missing function or method docstring (missing-function-docstring)
| assert directory.is_dir() | ||
|
|
||
|
|
||
| def test_prepare_metrics_directory_surfaces_cleanup_errors(tmp_path): |
There was a problem hiding this comment.
This test fails for me locally:
gen3workflow/start.py:13: in prepare_metrics_directory
metric_file.unlink()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = PosixPath('/private/var/folders/_8/5_1db5ds3h3fbjvxvb7q6z7h0000gn/T/pytest-of-paulineribeyre/pytest-3/test_prepare_metrics_directory2/counter_123.db'), missing_ok = False
def unlink(self, missing_ok=False):
"""
Remove this file or link.
If the path is a directory, use rmdir() instead.
"""
try:
> os.unlink(self)
E PermissionError: [Errno 1] Operation not permitted: '/private/var/folders/_8/5_1db5ds3h3fbjvxvb7q6z7h0000gn/T/pytest-of-paulineribeyre/pytest-3/test_prepare_metrics_directory2/counter_123.db'
There was a problem hiding this comment.
I'm wondering if this could be an OS specific error? Since it works in GH action which runs on Linux, and we are testing it in MacOS. We could let ths line expect a broader error maybe?
with pytest.raises(IsADirectoryError):
There was a problem hiding this comment.
I see both PermissionError and IsADirectory error are subclasses of OSError
| WORKDIR /${appname} | ||
|
|
||
| # The base image already selects the non-root gen3 user, so USER is left alone everywhere. | ||
| CMD ["/bin/bash", "-c", "/${appname}/dockerrun.bash"] |
There was a problem hiding this comment.
should we delete the dockerrun.bash, bin/_common_setup.sh and bin/setup_prometheus.sh files? And i guess bin/test.sh too?
There was a problem hiding this comment.
True - i would rather not have 2 different paths if we can avoid it
Integration Tests on Kind
|
Improvements