Skip to content

Conversation

wookayin
Copy link
Member

@wookayin wookayin commented Jan 7, 2025

  • ci: improve build matrix configuration
  • ci: add more configurations (python3.13, neovim-version='stable')
    • test with nvim-stable (only on python 3.12 to make CI jobs not too many) as well as nvim-nightly.
    • add python 3.13
  • fix(tests): skip failing test_broadcast on neovim < 0.11

Note: Tests are still failing on nvim-nightly due to upstream bug, but as soon as neovim/neovim#31894 is fixed CI should be back to green.

Problem 1: Dynamic matrix configuration using matrix.{include,exclude}
is complicated, making it difficult to add a few additional matrix
configurations. For example, if we wanted to add a new axis in the
matrix configuration that should be enabled only for specific configs
(e.g., neovim stable vs. nightly only for python-version='3.12'), we
would need to write long lines of include or exclude rules, which are
quite difficult to read.

Solution 1: Avoid using matrix.include and matrix.exclude, and specify
runner OS version paired with python-version. The runner OS version can
be simply determined by reading the associative array `matrix.config`
with the platform-specific key.

Problem 2: macos-12 has been deprecated and can no longer be run.
Solution 2: Switch to macos-13 runner for old python versions.
- Test with python=3.13
- Test with neovim-version='stable' for python=3.12 in addition to
  neovim-version='nightly'.
The fix made in neovim#570 actually works for Nvim 0.11+, depending on the
behavior change neovim/neovim#28487.

We should just skip test_broadcast on older Nvim versions (see neovim#585).
@wookayin wookayin self-assigned this Jan 7, 2025
@wookayin wookayin added the ci label Jan 7, 2025
@wookayin wookayin requested a review from justinmk January 7, 2025 01:36
Copy link
Member

@justinmk justinmk left a comment

Choose a reason for hiding this comment

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

Nice! We have 2 passing CI jobs now :)

@justinmk justinmk merged commit 65c0802 into neovim:master Jan 7, 2025
3 of 25 checks passed
wookayin added a commit that referenced this pull request Jan 7, 2025
@wookayin wookayin deleted the ci-improvements branch January 8, 2025 14:59
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.

2 participants