python / python/typeshed

Use Docker to ensure local tests and CI pipeline tests agree?

Open
#12,523 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

project: infrastructure
Dominant language
Python
Stars
5.1k
Forks
2.1k
Avg merge
1d 19h
Merged PRs (30d)
82

Description

Refs:

Both these CI pipelines show errors despite me running tests/runtests.py locally beforehand and seeing no errors.

I assume this is the result of some sort of versioning issue between the testing tools being used. Would it be possible to provide a Docker container that has the tooling matching the CI pipeline so that running tests locally matches test results in the CI pipeline?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with tests/runtests.py and the two linked CI pipeline runs, comparing the local testing tools and versions with those used in CI. Determine whether a Docker-based environment can reproduce the CI results locally; done means the documented local command and CI pipeline use matching tooling and report consistent test outcomes.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
ci-cd, testing-qa, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.