Closed yibin87 closed 1 day ago
I have already done a preliminary review for you, and I hope to help you do a better job.
Based on the diff provided, this pull request only updates the image used for the builder
container in the tiflash-sanitizer-daily
pipeline from hub.pingcap.net/tiflash/tiflash-llvm-base:amd64
to hub.pingcap.net/tiflash/tiflash-llvm-base:amd64-llvm-17.0.6
.
As for potential problems, there might be compatibility issues with the new image that could affect the pipeline's overall performance. It is also possible that the new image has a larger size than the previous one, which could negatively impact the pipeline's speed.
As for fixing suggestions, I would recommend running the pipeline with the new image to make sure that it is compatible and that the pipeline's performance is not affected. It would also be a good idea to monitor the pipeline's speed to see if there is any significant difference from before. Additionally, it would be helpful to document the changes made in the pull request to make it easier for other team members to understand what was modified.
⏱️ Estimated effort to review [1-5] | 1 |
🧪 Relevant tests | No |
🔒 Security concerns | No |
⚡ Key issues to review | None |
Category | Suggestion | Score |
Maintainability |
Add missing environment variables to the new container configuration___ **Consider adding environment variables (envVars ) to the new containerTemplate for consistency with the previous configuration. This ensures that any necessary environment settings are preserved in the new container configuration.** [jenkins/pipelines/ci/tiflash/tiflash-sanitizer-daily.groovy [75-78]](https://github.com/PingCAP-QE/ci/pull/3018/files#diff-cf6e0f80b8d57ff16c04804cccb20aa2048f6041c6c159d041d860881b6fb9aeR75-R78) ```diff containerTemplate(name: 'builder', image: 'hub.pingcap.net/tiflash/tiflash-llvm-base:amd64-llvm-17.0.6', - alwaysPullImage: true, ttyEnabled: true, command: 'cat', + alwaysPullImage: true, envVars: [ + envVar(key: 'DOCKER_HOST', value: 'tcp://localhost:2375') + ], ttyEnabled: true, command: 'cat', resourceRequestCpu: '10000m', resourceRequestMemory: '32Gi', resourceLimitCpu: '20000m', resourceLimitMemory: '64Gi') ``` - [ ] **Apply this suggestion** Suggestion importance[1-10]: 9Why: The suggestion ensures consistency and maintains necessary environment settings in the new container configuration, which is crucial for the correct operation of the container. | 9 |
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: purelind
The full list of commands accepted by this bot can be found here.
The pull request process is described here
Timeline:
2024-07-01 03:08:14.018191878 +0000 UTC m=+1207420.503680710
: :ballot_box_with_check: agreed by purelind.PR Code Suggestions ✨
Category Suggestion Score Maintainability
Add missing environment variables to the new container configuration Consider adding environment variables (envVars
) to the newcontainerTemplate
for consistency with the previous configuration. This ensures that any necessary environment settings are preserved in the new container configuration.jenkins/pipelines/ci/tiflash/tiflash-sanitizer-daily.groovy [75-78]
containerTemplate(name: 'builder', image: 'hub.pingcap.net/tiflash/tiflash-llvm-base:amd64-llvm-17.0.6', - alwaysPullImage: true, ttyEnabled: true, command: 'cat', + alwaysPullImage: true, envVars: [ + envVar(key: 'DOCKER_HOST', value: 'tcp://localhost:2375') + ], ttyEnabled: true, command: 'cat', resourceRequestCpu: '10000m', resourceRequestMemory: '32Gi', resourceLimitCpu: '20000m', resourceLimitMemory: '64Gi')
- [ ] Apply this suggestion
Suggestion importance[1-10]: 9 Why: The suggestion ensures consistency and maintains necessary environment settings in the new container configuration, which is crucial for the correct operation of the container.
9
No, the second container will not use docker.
PR Type
enhancement
Description
builder
container image in the TiFlash sanitizer daily pipeline tohub.pingcap.net/tiflash/tiflash-llvm-base:amd64-llvm-17.0.6
.Changes walkthrough 📝
tiflash-sanitizer-daily.groovy
Update `builder` container image in TiFlash sanitizer pipeline
jenkins/pipelines/ci/tiflash/tiflash-sanitizer-daily.groovy
builder
container image tohub.pingcap.net/tiflash/tiflash-llvm-base:amd64-llvm-17.0.6
.