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

Maintenance: Improve CI/GHA, satisfy link checker, improve code style #351

Merged
merged 10 commits into from
Apr 12, 2022

Conversation

amotl
Copy link
Member

@amotl amotl commented Dec 19, 2020

Hi there,

this patch intended to slightly adjust the CI/GHA configuration and satisfy the documentation link checker. After discovering some more flaws and potential improvements on infrastructure and code style, more commits have been added.

Tests

  • Update integration tests to use CrateDB version from CRATEDB_VERSION environment variable, defaulting to 4.7.1 instead of 4.2.0 as before. It makes it possible to pull this axis into the test matrix on CI, see below.
  • Satisfy documentation link checker.

CI

  • Invoke integration tests on Linux only, skipping macOS and Windows 1.
  • Add macOS and Windows to test matrix.
  • Add CrateDB to test matrix, now running tests on both CrateDB 3.3.6 and 4.7.1.
  • Use windows-2019 image to improve runtime significantly (100%).

Style

  • Fix Python warnings à la DeprecationWarning: invalid escape sequence.
  • Improve code style by implementing suggestions from LGTM.com to silence their alerts.
  • Adjust some wordings within documentation.

With kind regards,
Andreas.

Footnotes

  1. After resolving Problem invoking the test suite on macOS #343 and https://github.com/mfussenegger/cr8/pull/337, we will be able to also run the integration tests on the corresponding operating systems.

@amotl amotl changed the title Improve CI tests on GHA Maintenance: Improve CI/GHA, satisfy link checker, improve code style Apr 11, 2022
@amotl amotl marked this pull request as ready for review April 11, 2022 18:05
@amotl amotl requested a review from mfussenegger April 11, 2022 18:05
@amotl amotl removed the request for review from mfussenegger April 11, 2022 18:38
@@ -8,7 +8,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-latest, macos-latest, windows-2019]
Copy link
Member Author

Choose a reason for hiding this comment

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

I found that using windows-2019 instead of windows-2022, which happened to become windows-latest just recently, significantly improves runtime, so I also submitted crate/crate#12344.

Copy link
Member Author

Choose a reason for hiding this comment

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

^^ Doesn't help on the CrateDB test suite. 😞

Comment on lines 28 to 29
isort --recursive --check --diff crate/ tests/ setup.py
flake8 crate/crash
Copy link
Member

Choose a reason for hiding this comment

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

Please keep these.

Copy link
Member Author

@amotl amotl Apr 12, 2022

Choose a reason for hiding this comment

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

Apologies. Dropped commit 7bd8d9f 👍.

@amotl amotl merged commit 9a537b7 into master Apr 12, 2022
@amotl amotl deleted the amo/more-ci branch April 12, 2022 12:06
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.

2 participants