question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Speed up migrations linting in CI

See original GitHub issue

We’re running django-migrations-linter as part of our CI, it’s a great tool, thank you!

Do you have any recommendations on speeding up this step when using Github actions?

I did notice the --git-commit-id parameter, but was unable to make it work using the github.event.pull_request.sha variable. (Raises a diff error)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
0x962commented, Sep 13, 2021

Thank you for your comments, @blueyed and @David-Wobrock.

For other people who stumble upon this thread and use this amazing tool, this is my Github actions implementation. ( The relevant steps )

      - name: Caches django migrations linter
        uses: actions/cache@v2
        with:
          path: |
            $HOME/.cache/django-migration-linter
          key: ${{ runner.os }}-migrations-linter-${{ github.sha }}
          restore-keys: |
            ${{ runner.os }}-migrations-linter-${{ github.sha }}
            ${{ runner.os }}-migrations-linter-
            ${{ runner.os }}-

      - name: Run Migrations Linter
        run: MIGRATE=True python manage.py lintmigrations
0reactions
David-Wobrockcommented, Sep 13, 2021

[…] and use this amazing tool […]

🤗

Read more comments on GitHub >

github_iconTop Results From Across the Web

Avoiding downtime in migrations - GitLab Docs
The first step is to ignore the column in the application code. ... Gitlab::Database::Migration[2.1] def up remove_column :users, :updated_at end def down ...
Read more >
Optimizing speed of the starting and initialisation phase #4814
Current problem Pylint is frustratingly slow, taking several seconds to lint even tiny, simple Python files. Pylint is glacially slow ...
Read more >
Multi pipelines - Woodpecker CI
faster lint /test feedback, the pipeline doesn't have to run fully to have a lint status pushed to the remote · better organization...
Read more >
Building a cross-account continuous delivery pipeline for ...
Database migration is faster and more efficient. ... four AWS accounts to showcase multi-account and multi-VPC CI/CD database migration.
Read more >
Optimize your build speed | Android Developers
Keep your tools up to date · Avoid compiling unnecessary resources · Experiment with putting the Gradle Plugin Portal last · Use static...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found