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

Separate slow CI job to it's own workflow #3012

Merged
merged 4 commits into from
Apr 5, 2022

Conversation

tunetheweb
Copy link
Member

Brief summary of the change made

When GitHub Actions or Coverage experiences issues (as they are want to do!) we sometimes have to rerun the CI jobs. The Critical Rules Test is slow to run, but doesn't impact Coverage, so separate that out to it's own job so it doesn't need to be rerun if it passes.

Are there any other side effects of this change that we should be aware of?

Nope.

Pull Request checklist

  • Please confirm you have completed any of the necessary steps below.

  • Included test cases to demonstrate any code changes, which may be one or more of the following:

    • .yml rule test cases in test/fixtures/rules/std_rule_cases.
    • .sql/.yml parser test cases in test/fixtures/dialects (note YML files can be auto generated with tox -e generate-fixture-yml).
    • Full autofix test cases in test/fixtures/linter/autofix.
    • Other.
  • Added appropriate documentation for the change.

  • Created GitHub issues for any relevant followup/future enhancements if appropriate.

@codecov
Copy link

codecov bot commented Apr 5, 2022

Codecov Report

Merging #3012 (05e3509) into main (fc22204) will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff            @@
##             main     #3012   +/-   ##
========================================
  Coverage   99.99%   100.00%           
========================================
  Files         164       164           
  Lines       11997     11997           
========================================
+ Hits        11996     11997    +1     
+ Misses          1         0    -1     
Impacted Files Coverage Δ
src/sqlfluff/core/templaters/jinja.py 100.00% <0.00%> (+0.59%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fc22204...05e3509. Read the comment docs.

Copy link
Member

@pwildenhain pwildenhain left a comment

Choose a reason for hiding this comment

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

Super sensible 👍🏻

workflow_dispatch:
schedule:
# 2am each night
- cron: '00 2 * * *'
Copy link
Member

Choose a reason for hiding this comment

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

Since it's running on a schedule, how will we be alerted if it fails? Email?

Copy link
Member Author

Choose a reason for hiding this comment

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

The GitHub altering on scheduled runs is a bit lacking to be honest. Long been complained about: https://git.luolix.topmunity/t/no-email-notification-on-schedule-cron-job-failure/119638/5

I think only the last person to alter it (me!) gets a notification. Which sucks to be honest.

Now to be honest this cron job isn’t really needed. I like it in case there is no activity on repo for a while (not something we have a problem with!!) so can see when something broke if, for example, dependencies update.

@tunetheweb tunetheweb merged commit 220b4ac into sqlfluff:main Apr 5, 2022
@tunetheweb tunetheweb deleted the separate-critical-rules branch April 5, 2022 18:21
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