Skip to content

ci: run tests for legacy versions#935

Merged
KowalskiThomas merged 5 commits intomasterfrom
kowalski/ci-run-tests-for-legacy-versions
Apr 9, 2026
Merged

ci: run tests for legacy versions#935
KowalskiThomas merged 5 commits intomasterfrom
kowalski/ci-run-tests-for-legacy-versions

Conversation

@KowalskiThomas
Copy link
Copy Markdown
Contributor

@KowalskiThomas KowalskiThomas commented Apr 8, 2026

What is this PR?

This PR adds support for running tests in Python 2.7 (which we still support) and 3.4 (which doesn't support type hints). Those cases require special handling because the default images used in GHA tests don't support 2.7 and 3.4 anymore.

For that to work:

  • We have a new step in test.yml specifically for older versions of Python
  • We have a 3.4-specific path that doesn't require hatchling to run tests (by not installing the package for real)
  • We explicitly disable DD_ORIGIN_DETECTION_ENABLED for tests to avoid receiving the c: (container ID) tag which is unexpected in the test payloads

On top of this, the PR fixes issues:

  • Properly pass bytes parameters to bytes.join
  • Pass str objects to open which doesn't support receiving PosixPath in all Python versions
  • Add an encoding header (necessary for a file where special characters)

@KowalskiThomas KowalskiThomas force-pushed the kowalski/ci-run-tests-for-legacy-versions branch from c33cbbb to cd89cff Compare April 8, 2026 14:22
@KowalskiThomas KowalskiThomas added the changelog/no-changelog Changes don't appear in changelog label Apr 8, 2026
@KowalskiThomas KowalskiThomas marked this pull request as ready for review April 8, 2026 14:30
@KowalskiThomas KowalskiThomas requested review from a team as code owners April 8, 2026 14:30
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cd89cffd8e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

pyproject.toml lists configparser<5 as a runtime dep for Python 2.
With skip_install=true the package install is skipped, so the dep must
be declared explicitly in the affected envs (integration,
integration-admin, py34).
@KowalskiThomas KowalskiThomas merged commit 91c8691 into master Apr 9, 2026
20 checks passed
@KowalskiThomas KowalskiThomas deleted the kowalski/ci-run-tests-for-legacy-versions branch April 9, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/no-changelog Changes don't appear in changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants