Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(apps/prod/tekton/configs/triggers): increase pipeline run timeout to 3h #1183

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

wuhuizuo
Copy link
Collaborator

@wuhuizuo wuhuizuo commented Jul 11, 2024

User description

avoid timeout on low performance mac machines.

Signed-off-by: wuhuizuo wuhuizuo@126.com


PR Type

Enhancement


Description

  • Increased the pipeline run timeout to 3 hours for tiflash and tikv components to avoid timeouts on low-performance Mac machines.

Changes walkthrough 📝

Relevant files
Enhancement
git-push.yaml
Increase pipeline run timeout for tiflash to 3 hours         

apps/prod/tekton/configs/triggers/triggers/pingcap/tiflash/git-push.yaml

  • Increased the pipeline run timeout from 2 hours to 3 hours.
+1/-1     
git-push.yaml
Increase pipeline run timeout for tikv to 3 hours               

apps/prod/tekton/configs/triggers/triggers/tikv/tikv/git-push.yaml

  • Increased the pipeline run timeout from 2 hours 30 minutes to 3 hours.

  • +1/-1     

    💡 PR-Agent usage:
    Comment /help on the PR to get a list of all available PR-Agent tools and their descriptions

    …ut to 3h
    
    avoid timeout on low performance mac machines.
    
    Signed-off-by: wuhuizuo <wuhuizuo@126.com>
    @ti-chi-bot ti-chi-bot bot requested a review from purelind July 11, 2024 06:03
    @ti-chi-bot ti-chi-bot bot added area/apps env/prod will deploy on the main product cluster labels Jul 11, 2024
    Copy link
    Contributor

    ti-chi-bot bot commented Jul 11, 2024

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

    The pull request increases the pipeline run timeout from 2 hours to 3 hours for the triggers in apps/prod/tekton/configs/triggers/triggers/pingcap/tiflash/git-push.yaml and apps/prod/tekton/configs/triggers/triggers/tikv/tikv/git-push.yaml. The reason for this change is to avoid timeout on low-performance Mac machines.

    There are no potential problems with this change. However, it is important to note that increasing the timeout may result in longer wait times for builds to complete.

    One suggestion to improve the pull request is to provide more context. It would be helpful to know how the low-performance Mac machines were affecting the pipeline and why the timeout needed to be increased.

    Another suggestion is to consider alternative solutions to the timeout problem, such as optimizing the pipeline or upgrading the machine's performance.

    Overall, this pull request seems reasonable and can be merged.

    Copy link
    Contributor

    PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here.

    PR Reviewer Guide 🔍

    ⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪
    🧪 No relevant tests
    🔒 No security concerns identified

    @wuhuizuo
    Copy link
    Collaborator Author

    /approve

    @ti-chi-bot ti-chi-bot bot added the approved label Jul 11, 2024
    Copy link
    Contributor

    PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here.

    PR Code Suggestions ✨

    CategorySuggestion                                                                                                                                    Score
    Best practice
    Standardize the timeout format to improve consistency and clarity

    Consider using a consistent time format for the timeout value. If other
    configurations use a specific format (like ISO 8601), it might be beneficial to
    align with that for consistency and clarity.

    apps/prod/tekton/configs/triggers/triggers/pingcap/tiflash/git-push.yaml [26]

    -- { name: timeout, value: 3h }
    +- { name: timeout, value: "PT3H" }
     
    • Apply this suggestion
    Suggestion importance[1-10]: 8

    Why: The suggestion improves consistency and clarity by using a standardized time format, which is beneficial for maintaining uniformity across configurations.

    8
    Possible issue
    Adjust the timeout to a more conservative increment to help identify performance bottlenecks

    Ensure that the timeout value is appropriate considering the previous value and the
    tasks performed. A significant increase might mask underlying performance issues.

    apps/prod/tekton/configs/triggers/triggers/tikv/tikv/git-push.yaml [30]

    -- { name: timeout, value: 3h }
    +- { name: timeout, value: "2h45m" }
     
    • Apply this suggestion
    Suggestion importance[1-10]: 7

    Why: The suggestion is valid as it encourages a more conservative increment in timeout, which can help in identifying underlying performance issues. However, it assumes that the previous timeout was adequate, which may not always be the case.

    7

    Copy link
    Contributor

    @purelind purelind left a comment

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    /lgtm

    Copy link
    Contributor

    ti-chi-bot bot commented Jul 11, 2024

    [APPROVALNOTIFIER] This PR is APPROVED

    This pull-request has been approved by: purelind, wuhuizuo

    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

    Copy link
    Contributor

    ti-chi-bot bot commented Jul 11, 2024

    [LGTM Timeline notifier]

    Timeline:

    • 2024-07-11 06:05:49.430927638 +0000 UTC m=+510446.666161748: ☑️ agreed by purelind.

    @ti-chi-bot ti-chi-bot bot merged commit 2cb3470 into main Jul 11, 2024
    4 checks passed
    @ti-chi-bot ti-chi-bot bot deleted the fix/increase-mac-timeout branch July 11, 2024 06:06
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    approved area/apps enhancement New feature or request env/prod will deploy on the main product cluster lgtm Review effort [1-5]: 1 size/XS
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    2 participants