Skip to content

[Improve][CI] improve ci checking#9325

Merged
kezhenxu94 merged 36 commits into
apache:devfrom
SbloodyS:improve_ci
Apr 6, 2022
Merged

[Improve][CI] improve ci checking#9325
kezhenxu94 merged 36 commits into
apache:devfrom
SbloodyS:improve_ci

Conversation

@SbloodyS
Copy link
Copy Markdown
Member

@SbloodyS SbloodyS commented Apr 2, 2022

Purpose of the pull request

  1. add docs path exclude from unit-test and e2e-test and backend
  2. add dolphinscheduler-ui and dolphinscheduler-ui-next path exclude from backend
  3. add docs path include from docs-test
  4. add find ./docs in docs-test

@SbloodyS SbloodyS added the CI&CD label Apr 2, 2022
@SbloodyS SbloodyS changed the title [Improve][CI] improve ci [Improve][CI] improve ci checking Apr 2, 2022
Comment thread .github/workflows/e2e.yml Outdated
Comment on lines +20 to +26
paths-ignore:
- 'docs/**'
push:
branches:
- dev
paths-ignore:
- 'docs/**'
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.

I remember I told you that this can not be added because if the workflow is skipped, the PRs cannot be merged

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Sorry,I forgot this. I'll see if i can fix it. If not i will remove it. @kezhenxu94

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I try to modify e2e-test with https://github.com/dorny/paths-filter#examples and https://github.com/dorny/paths-filter/issues/97. Please check if this is correct. If not i will remove it. Thanks. @kezhenxu94

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It seems like dorny/paths-filter@v2 is not allowed to be used in apache/dolphinscheduler. Sad...

Copy link
Copy Markdown
Member Author

@SbloodyS SbloodyS Apr 2, 2022

Choose a reason for hiding this comment

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

I have submitted a request to apache infra to see if this plugin can be enable. https://issues.apache.org/jira/browse/INFRA-23069

In the mean time, I will mark this pr as draft until this plugin is enable or i can find another way to solve this problem.

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.

@SbloodyS you can use this getsentry/paths-filter@v2 instead, seems they have the same functionalities and this is approved already by infra team as I know

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@SbloodyS you can use this getsentry/paths-filter@v2 instead, seems they have the same functionalities and this is approved already by infra team as I know

Wow, It seems working. I will do more tests to verify it. Thanks.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 2, 2022

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 39.97%. Comparing base (a866465) to head (6715b5f).
⚠️ Report is 2596 commits behind head on dev.

Additional details and impacted files
@@             Coverage Diff              @@
##                dev    #9325      +/-   ##
============================================
- Coverage     39.98%   39.97%   -0.02%     
+ Complexity     4376     4372       -4     
============================================
  Files           822      822              
  Lines         32921    32921              
  Branches       3656     3656              
============================================
- Hits          13165    13161       -4     
- Misses        18527    18532       +5     
+ Partials       1229     1228       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@SbloodyS SbloodyS marked this pull request as draft April 2, 2022 09:29
@SbloodyS SbloodyS marked this pull request as ready for review April 2, 2022 15:47
@SbloodyS SbloodyS marked this pull request as draft April 2, 2022 16:11
@SbloodyS SbloodyS marked this pull request as ready for review April 3, 2022 01:24
@SbloodyS
Copy link
Copy Markdown
Member Author

SbloodyS commented Apr 3, 2022

@kezhenxu94 @zhongjiajie Please review. Thanks.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Apr 4, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@kezhenxu94 kezhenxu94 merged commit 40b73f7 into apache:dev Apr 6, 2022
@SbloodyS SbloodyS deleted the improve_ci branch April 6, 2022 01:34
name: Build
runs-on: ubuntu-latest
timeout-minutes: 30
needs: [ build ]
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.

Did we miss job paths-filter dependent here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It does not need to. It already exists in steps.run.

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.

@zhongjiajie we don't need explicit dependent here, result depends on build, build depends on paths-filter, so result depends on paths-filter implicitly

Copy link
Copy Markdown
Member

@zhongjiajie zhongjiajie Apr 6, 2022

Choose a reason for hiding this comment

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

Thanks for the clarification.

@kezhenxu94 kezhenxu94 mentioned this pull request Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants