-
Bug
-
Resolution: Done
-
Undefined
-
None
-
1.8.0
-
1
-
False
-
-
False
-
-
-
RHDH Install 3279
Description:Observed Behavior:During the CI execution, the following error was encountered:
cp: cannot stat '/tmp/rhdh/e2e-tests/test-results/*': No such file or directory
This error occurs during the cleanup phase of the CI job. The script attempts to copy or archive test results from the specified directory, but the directory is not found.
Impact:The primary impact is the potential loss of test results, which hinders debugging and analysis of test failures. This also indicates a problem with the test execution or environment setup.
Root Cause Analysis (Preliminary):• Test Execution Failure: The tests might not have executed correctly, preventing the creation of the test-results directory.
• Incorrect File Path: The file path /tmp/rhdh/e2e-tests/test-results/* might be incorrect for the test environment.
• Test Framework Configuration: The test framework might not be configured to output test results to the expected directory.
• Cleanup Process Issue: The cleanup process might be running before the test results are written to disk, or the directory might be deleted prematurely.
Steps to Reproduce:This issue occurs during the automated CI execution of the e2e tests. The exact steps to reproduce would involve triggering a new CI run with the same configuration. (Prow link: https://prow.ci.openshift.org/view/gs/test-platform-results/"logs/periodic-ci-redhat-developer-rhdh-main-e2e-tests-operator-nightly/1958439164340867072)
Actionable Recommendations:
1. Verify Test Execution: Ensure that the tests are executing correctly and that no errors are preventing the creation of the test-results directory. Review the test logs for any failures or exceptions during test execution.
2. Validate File Path: Double-check the file path /tmp/rhdh/e2e-tests/test-results/* to ensure it is correct for the test environment. Verify that the test framework is configured to output test results to this location.
3. Examine Cleanup Process: Review the cleanup process to ensure that it is not running prematurely or deleting the test-results directory before the test results are archived.
Attachments:• Link to the CI build log: https://prow.ci.openshift.org/view/gs/test-platform-results/"logs/periodic-ci-redhat-developer-rhdh-main-e2e-tests-operator-nightly/1958439164340867072/artifacts/e2e-tests-operator-nightly/redhat-developer-rhdh-operator-nightly/build-log.txt
Note: Please investigate the test execution environment and test framework configuration to identify the root cause of this issue.
Prerequisites (if any, like setup, operators/versions):
Steps to Reproduce
# <steps>