Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@purelind
Copy link
Collaborator

@purelind purelind commented Aug 7, 2024

  • remove not exist jdbc test on 6.1
  • remove wip from context because those tests passed

@ti-chi-bot
Copy link

ti-chi-bot bot commented Aug 7, 2024

I have already done a preliminary review for you, and I hope to help you do a better job.

Summary of changes

  1. Removed JDBC test on 6.1: The pull request removes files related to the JDBC test for the 6.1 release. It has deleted the following Groovy and YAML files: pull_integration_jdbc_test.groovy and pod-pull_integration_jdbc_test.yaml.
  2. Removed "wip" from context: The term "wip" (work-in-progress) has been removed from the build context in the file release-6.1-presubmits.yaml. This suggests that these tests are now considered complete and not a work in progress.
  3. Commented out parallelsAlwaysFailFast() in pull_integration_common_test.groovy, which means that if one branch of the parallel stage fails, the others will not be stopped immediately.
  4. Removed the entire test stage related to the JDBC test in pull_integration_jdbc_test.groovy.

Potential Problems

  1. If the JDBC tests are still needed, removing them completely could be an issue. You may want to verify if there's a valid reason for their removal.
  2. Commenting out parallelsAlwaysFailFast() could lead to more resources usage in case of failure as it will not stop other parallel stages immediately after one fails. Although it may provide more information about failures in other branches, it may also increase the time and resources taken by the build.
  3. Removal of the tests in pull_integration_jdbc_test.groovy could also lead to decreased code coverage if no other tests are covering the same code.

Suggestions

  1. Verify with the author if the total removal of the JDBC tests was intended and if there's a replacement for these tests.
  2. Consider the trade-off between resource usage and gaining more information about failures when deciding to comment out parallelsAlwaysFailFast().
  3. Verify the impact on code coverage due to removal of tests in pull_integration_jdbc_test.groovy. If necessary, create new tests to cover the missing parts.

@ti-chi-bot ti-chi-bot bot removed the lgtm label Aug 7, 2024
@ti-chi-bot
Copy link

ti-chi-bot bot commented Aug 7, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-08-07 06:50:34.276073467 +0000 UTC m=+421164.143172556: ✖️🔁 reset by purelind.

@ti-chi-bot
Copy link

ti-chi-bot bot commented Aug 7, 2024

New changes are detected. LGTM label has been removed.

@ti-chi-bot
Copy link

ti-chi-bot bot commented Aug 7, 2024

[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

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot
Copy link

ti-chi-bot bot commented Aug 7, 2024

I have already done a preliminary review for you, and I hope to help you do a better job.

Summary of changes:

  1. Addition of new Dockerfile for tiflash_nightly in both linux-amd64 and linux-arm64.
  2. Modification of the get_dockerfile_url function in the release-all-images-by-branch.groovy file, adding a condition for the Product 'tiflash'.
  3. Deletion of the pull_integration_jdbc_test.groovy file, which is responsible for the jdbc test on 6.1.
  4. Deletion of the pod-pull_integration_jdbc_test.yaml file.
  5. Commenting out of the parallelsAlwaysFailFast() function in the pull_integration_common_test.groovy file for releases 6.1 and 6.5.
  6. Commenting out of the parallelsAlwaysFailFast() function in the pull_integration_jdbc_test.groovy file for release 6.5.
  7. Removal of the wip context from several tests in the prow-jobs/pingcap/tidb/release-6.1-presubmits.yaml file.

Potential issues:

  1. The removal of the jdbc test on 6.1 might cause issues if other code relies on this test being available.
  2. The modification in the get_dockerfile_url function needs to be checked to ensure it doesn't affect other functionality.
  3. The removal of the wip context might cause issues if other parts of the codebase are still expecting it.
  4. The commenting out of the parallelsAlwaysFailFast() function might affect the speed and efficiency of the tests.

Suggestions for fixes:

  1. Check if any other code relies on the jdbc test on 6.1. If so, some sort of replacement might need to be implemented.
  2. Test the get_dockerfile_url function thoroughly to ensure it still works as expected with the modification.
  3. Check the codebase for any parts that still expect the wip context and modify them as needed.
  4. If the speed and efficiency of the tests are impacted by the change to the parallelsAlwaysFailFast() function, consider finding another solution.

@ti-chi-bot
Copy link

ti-chi-bot bot commented Aug 7, 2024

I have already done a preliminary review for you, and I hope to help you do a better job.

The pull request titled "chore: fix on presubmit 6.1" contains several changes:

  1. Removal of non-existent jdbc test: The jdbc test files (pull_integration_jdbc_test.groovy and pod-pull_integration_jdbc_test.yaml) were removed. This indicates that the jdbc test does not exist in the 6.1 release and the corresponding files are no longer necessary.

  2. Removal of 'wip' from context: The 'wip' (work in progress) label was removed from several contexts in the release-6.1-presubmits.yaml and release-6.5-presubmits.yaml files. This indicates that these tests are no longer in a 'work in progress' state and have passed.

  3. Changes in Dockerfiles: Two new Dockerfiles were added: tiflash_nightly for linux-amd64 and linux-arm64. These Dockerfiles are used to build and run the tiflash server in a docker container.

  4. Changes in Groovy files: Changes were made in release-6.1/pull_integration_common_test.groovy and release-6.5/pull_integration_common_test.groovy files. The line parallelsAlwaysFailFast() was commented out in both files, which means that the pipeline will no longer fail fast when any of the parallel tasks fail.

Potential problems:

  1. Removal of tests: If the jdbc tests were removed mistakenly or if they are still in use for other parts of the system, this could cause problems.

  2. Dockerfile base image: The base image used in the Dockerfiles could have vulnerabilities or be out of date.

  3. Changes in Groovy files: By commenting out parallelsAlwaysFailFast(), the pipeline might take longer to complete, as it will wait for all tasks to finish even if one has already failed.

Suggestions for fixes:

  1. If the jdbc tests are still necessary, they should not be removed. If they are no longer used, this change is fine.

  2. Regularly update the base image used in Dockerfiles to ensure security and up-to-date features.

  3. If the project prefers faster feedback over completeness of test results, it may be better to re-enable parallelsAlwaysFailFast(). If the project prefers the completeness of test results over speed, the current change is fine.

@purelind purelind added the lgtm label Aug 7, 2024
@ti-chi-bot ti-chi-bot bot merged commit f83cabc into PingCAP-QE:main Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant