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

Split the workflows into catalog.yml, client.yml, and lambdas.yml #3866

Open
wants to merge 1 commit into
base: ci_pylint_isort
Choose a base branch
from

Conversation

dimaryaz
Copy link
Contributor

@dimaryaz dimaryaz commented Feb 6, 2024

It makes more sense than JS vs Python, and lets us filter by paths and skip unnecessary testing.

It makes more sense than JS vs Python, and lets us filter by paths and skip unnecessary testing.
@dimaryaz dimaryaz requested review from nl0 and sir-sigurd February 6, 2024 23:51
@dimaryaz dimaryaz self-assigned this Feb 6, 2024
Copy link

codecov bot commented Feb 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6e2f076) 35.59% compared to head (2b7dd93) 35.59%.

Additional details and impacted files
@@               Coverage Diff                @@
##           ci_pylint_isort    #3866   +/-   ##
================================================
  Coverage            35.59%   35.59%           
================================================
  Files                  711      711           
  Lines                31347    31347           
  Branches              4681     4681           
================================================
  Hits                 11157    11157           
  Misses               19034    19034           
  Partials              1156     1156           
Flag Coverage Δ
api-python 91.21% <ø> (ø)
catalog 10.44% <ø> (ø)
lambda 86.74% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

paths:
- '.github/workflows/catalog.yml'
- 'catalog/**'
- 'shared/**'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@nl0: does anything besides the catalog depend on this?

Copy link
Member

Choose a reason for hiding this comment

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

no, i don't think so

- '.github/workflows/lambdas.yml'
- 'lambdas/**'
jobs:
linter:
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

we might want to use yaml extension as it's recommended in https://yaml.org/faq.html

Copy link
Member

Choose a reason for hiding this comment

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

lint-docs job is not really related to catalog

Comment on lines +3 to +6
paths:
- '.github/workflows/catalog.yml'
- 'catalog/**'
- 'shared/**'
Copy link
Member

@sir-sigurd sir-sigurd Feb 7, 2024

Choose a reason for hiding this comment

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

I think that doesn't work well with required jobs (you can see them in repo settings -> branches -> master)
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions

If a workflow is skipped due to branch filtering, path filtering, or a commit message, then checks associated with that workflow will remain in a "Pending" state. A pull request that requires those checks to be successful will be blocked from merging.

you can check registry workflow in enterprise for idea on how to implement filtering

also I suggest testing this CI stuff in a fork

@dimaryaz dimaryaz mentioned this pull request Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants