Skip to content

Better ci - #1090

Closed
nakulj wants to merge 21 commits into
getslash:developfrom
parallelsystems:better-ci
Closed

nakulj wants to merge 21 commits into
getslash:developfrom
parallelsystems:better-ci

Conversation

@nakulj

@nakulj nakulj commented Oct 9, 2026

Copy link
Copy Markdown

No description provided.

JarredAllen and others added 21 commits September 22, 2026 16:02
## Background

The repo doesn't presently support Python 3.14, which we want.

## Description

Update to support python 3.14.

To run in python 3.14, we only needed to relax the pinned version of `dessert` to allow selecting a version which supports Python 3.14. However, allowing CI to pass on that version required some more extensive reworks, mostly to test code but with a couple real lints that needed to be fixed.

## Validation

Their CI suite now passes, as does running tests/lints locally on my machine.

I have not personally vetted their CI suite for thoroughness, but I think it's probably fine since this is what the old maintainers were using when we relied on them.

## Development History 

* Relax dessert pin to support Python 3.12+

dessert 1.4.x calls ast.Str, which was deprecated in Python 3.8 and
removed in Python 3.12, so any `slash run` on 3.12 or newer dies during
collection with:

    AttributeError: module 'ast' has no attribute 'Str'

dessert 1.6.3 drops that usage. Widen the constraint to >=1.6.3,<2.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* Test against Python 3.11 and 3.14 in CI

Replace the 3.7-3.11 matrix with 3.11 and 3.14, and fix everything that
broke on the way there. Requires-python, the classifiers and the tox
envlist move to 3.11+ accordingly, since several of these fixes rely on
stdlib APIs that predate 3.10.

Fix the pytest config table name. pytest only ever read
[tool.pytest.ini_options], so [tool.pytest] had been silently ignored:
testpaths, timeout_method and addopts were never in effect. pytest 9
reads [tool.pytest] natively with typed values and now fails outright on
the string addopts. Renaming the table re-enables
-W error::DeprecationWarning, which surfaced the next two items.

Drop pkg_resources. It is absent from a 3.12+ venv entirely and warns on
import under 3.11. slash.__version__, slash.site, the notifications
plugin, doc/conf.py and the site-customization test move to
importlib.metadata and importlib.resources.

Use the snake_case pyparsing API in pattern_matching; the camelCase
aliases warn.

Port ExtensionImporter to PEP 451. find_module/load_module were dropped
from the import system in 3.12, so slash.ext.X redirection had been
silently doing nothing there.

Stop borrowing CPython's `test` package as a scratch namespace in
test_interruptions; it is not shipped with many 3.14 installs. Register
a synthetic module instead.

Teach the matcher grammar about quoted strings. The
"not 'division by zero'" filtering case only passed by accident:
pyparsing <= 3.2 parsed it as the bare word `not`, which happened to
yield the expected False, and pyparsing 3.3 raises instead. It now
parses as intended, and quoted multi-word patterns work for real.

Relax the pylint and astroid pins to 4.x; 2.17/2.15 crash with an
AstroidError on 3.14. That surfaced a latent possibly-used-before-
assignment in slash.log, where an unrecognized compression algorithm
would have raised UnboundLocalError instead of InvalidConfiguraion, plus
two astroid inference false positives that are silenced locally.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* Fix a couple more issues found by claude

* Suppress new lint

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
emport's import_file registers a file's parent package with
SourceFileLoader.load_module(), which Python 3.14 deprecates (removal in
3.15). With DeprecationWarning promoted to an error, importing a
slashconf directory fails on 3.14. emport's latest release still has
the call, so port its import_file into slash.utils.import_utils using
exec_module() and drop the dependency.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Geordie Roscoe <137822494+ps-groscoe@users.noreply.github.com>
Co-authored-by: Geordie Roscoe <137822494+ps-groscoe@users.noreply.github.com>
Co-authored-by: Geordie Roscoe <137822494+ps-groscoe@users.noreply.github.com>
Replace emport with an in-tree import_file
An Error captured from a chained exception now carries each cause or
context in its message, so wrappers raised with `raise ... from exc`
no longer hide the underlying failure in reporters such as Backslash.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nakulj nakulj closed this Oct 9, 2026
@nakulj
nakulj deleted the better-ci branch October 9, 2026 20:05
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