Skip to content

[Improve][CI] Optimize CI - #9900

Merged
corgy-w merged 1 commit into
apache:devfrom
hawk9821:ci_fix
Oct 14, 2025
Merged

corgy-w merged 1 commit into
apache:devfrom
hawk9821:ci_fix

Conversation

@hawk9821

@hawk9821 hawk9821 commented Sep 26, 2025 •

Copy link
Copy Markdown
Contributor

Purpose of this pull request

  1. Add a delayed-scheduling job to optimize task scheduling, prioritizing long-running jobs for execution
  2. Optimize the free_disk_space.sh script by adding detailed logs and step-by-step cleanup operations. Log Format:
------------------------------------------------------------------------------
Operation: Remove apt cache
Time taken: 16 seconds
Freed disk space: .63 GB
------------------------------------------------------------------------------

------------------------------------------------------------------------------
Operation: Remove android directories
Time taken: 0 seconds
Freed disk space: 0 GB
------------------------------------------------------------------------------

------------------------------------------------------------------------------
Operation: Remove other large directories
Time taken: 43 seconds
Freed disk space: 13.87 GB
------------------------------------------------------------------------------
  1. Adjust the timeout duration of some connector IT tasks to improve stability
  2. Newly add the ci_duration_analysis.py script for analyzing CI task execution duration
  • CI Analysis Results :
Sequence Number Job Name Job ID CONCLUSION STARTED_AT Total Duration (Seconds) Total Duration (Minutes) Expected
1 Run / changes 51298274877 success 2025-09-26 04:23:48 21 0.35 20
2 Run / License header 51298274884 success 2025-09-26 04:23:48 93 1.55 20
3 Run / Code style 51298274853 success 2025-09-26 04:23:49 108 1.8 20
4 Run / Sanity check results 51298358364 success 2025-09-26 04:25:40 3 0.05 20
5 Run / Check Helm Chart Syntax 51298358365 success 2025-09-26 04:25:40 6 0.1 20
6 Run / unit-test (8, windows-latest) 51298361511 success 2025-09-26 04:25:45 2470 41.17 60
7 Run / unit-test (11, ubuntu-latest) 51298361513 success 2025-09-26 04:25:45 3014 50.23 80
8 Run / connector-redis-it (11, ubuntu-latest) 51298361526 success 2025-09-26 04:25:45 8609 143.48 160
9 Run / connector-redis-it (8, ubuntu-latest) 51298361534 success 2025-09-26 04:25:45 8620 143.67 160
10 Run / kafka-connector-it (8, ubuntu-latest) 51298361547 success 2025-09-26 04:25:45 6649 110.82 140
11 Run / rocketmq-connector-it (11, ubuntu-latest) 51298361550 success 2025-09-26 04:25:45 3304 55.07 80
12 Run / transform-v2-it-part-1 (8, ubuntu-latest) 51298361563 success 2025-09-26 04:25:45 4200 70 100
13 Run / Delayed Scheduling 51298361456 success 2025-09-26 04:25:46 23 0.38 20
14 Run / unit-test (11, windows-latest) 51298361512 success 2025-09-26 04:25:46 2007 33.45 60
15 Run / unit-test (8, ubuntu-latest) 51298361516 success 2025-09-26 04:25:46 3025 50.42 80
16 Run / all-connectors-it-5 (8, ubuntu-latest) 51298361525 success 2025-09-26 04:25:46 8305 138.42 160
17 Run / all-connectors-it-5 (11, ubuntu-latest) 51298361529 success 2025-09-26 04:25:46 8110 135.17 160
18 Run / rocketmq-connector-it (8, ubuntu-latest) 51298361554 success 2025-09-26 04:25:46 3643 60.72 80
19 Run / transform-v2-it-part-1 (11, ubuntu-latest) 51298361559 success 2025-09-26 04:25:46 4178 69.63 80
20 Run / all-connectors-it-3 (11, ubuntu-latest) 51298361574 success 2025-09-26 04:25:46 6431 107.18 120
21 Run / all-connectors-it-3 (8, ubuntu-latest) 51298361583 success 2025-09-26 04:25:46 6539 108.98 120
22 Run / connector-file-local-it (11, ubuntu-latest) 51298361565 success 2025-09-26 04:25:51 4888 81.47 100
23 Run / connector-file-local-it (8, ubuntu-latest) 51298361577 success 2025-09-26 04:26:11 4887 81.45 100
24 Run / all-connectors-it-6 (11, ubuntu-latest) 51298361564 success 2025-09-26 04:57:43 6646 110.77 140
25 Run / all-connectors-it-6 (8, ubuntu-latest) 51298361672 success 2025-09-26 04:57:59 6572 109.53 120

Does this PR introduce any user-facing change?

How was this patch tested?

Check list

@github-actions github-actions Bot added the CI&CD label Sep 26, 2025
@hawk9821 hawk9821 changed the title [Improve][CI] Optimized CI [Improve][CI] Optimize CI Sep 26, 2025
from tabulate import tabulate


def fetch_jobs_from_api(api_url, token=None):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Any docs/comment for this tools? Or how to use it

@hawk9821 hawk9821 Oct 10, 2025 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The script has usage notes.

if __name__ == "__main__":
    if len(sys.argv) not in (3, 4):
        print("Usage: python ci_duration_analysis.py <owner> <run_id> [token]")
        print("Usage: <owner> is a required parameter, example: hawk9821")
        print("Usage: <run_id> is a required parameter, example: 18013073919")
        print("Usage: [token] is a non-mandatory parameter. Token acquisition method: GitHub -> Setting -> Developer Settings -> Personal access tokens -> Tokens (classic)")
        ...

@Carl-Zhou-CN Carl-Zhou-CN left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants