Closed purelind closed 2 months ago
I have already done a preliminary review for you, and I hope to help you do a better job.
Pull Request Summary: The main change in this PR is the modification of the log collection directory in several files related to the pull integration tests for the 'tiflash' component. The changes are applied uniformly across different release versions of the product. Specifically, the PR encapsulates the log collection and archiving code in a 'dir' block that points to the correct working directory.
Potential Problems:
${WORKSPACE}/tiflash/tests/${TEST_PATH}
directory doesn't exist or has incorrect permissions.tar -czvf ${TEST_PATH}-logs.tar.gz {} +
will create a new archive file for every log file found. This might not be the desired behavior if there are multiple log files.docker ps -a
is used without any follow-up action. If the intent was to debug, this might not be helpful in a CI/CD pipeline as the output might get lost in the logs.Fixing Suggestions:
${WORKSPACE}/tiflash/tests/${TEST_PATH}
exists and has the correct permissions before attempting to use it.tar
command should be modified to do so.docker ps -a
is to debug, consider capturing its output into a file and add that file to the artifacts to be archived.[APPROVALNOTIFIER] This PR is APPROVED
Approval requirements bypassed by manually added approval.
This pull-request has been approved by:
The full list of commands accepted by this bot can be found here.
The pull request process is described here
correct the dir to collect log.