Skip to content

[core] Pin pip and virtualenv exactly in the Dockerfiles - #4390

Merged
Harshg999 merged 1 commit into
masterfrom
fix/pin-pip-virtualenv-in-dockerfiles
Oct 29, 2026
Merged

Harshg999 merged 1 commit into
masterfrom
fix/pin-pip-virtualenv-in-dockerfiles

Conversation

@Harshg999

Copy link
Copy Markdown
Collaborator

The Dockerfiles installed pip and virtualenv with lower bounds ("pip>=26.2.2", "virtualenv>=21.14.12"). A lower bound lets every image build pick up whatever is newest, so builds are not reproducible and a new pip or virtualenv release can break them without any change here.

Pin them exactly instead, to the versions the Makefile already uses: pip 26.2.2 (desktop/core/pip-bootstrap-requirements.txt) and virtualenv 21.14.13 (VIRTUAL_ENV_VERSION in Makefile.vars). Both are at or above the minimum fixed releases for the eMudhra CA incident. Add comments to keep the pins in sync.

The Dockerfiles installed pip and virtualenv with lower bounds
("pip>=26.2.2", "virtualenv>=21.14.12"). A lower bound lets every image
build pick up whatever is newest, so builds are not reproducible and a
new pip or virtualenv release can break them without any change here.

Pin them exactly instead, to the versions the Makefile already uses:
pip 26.2.2 (desktop/core/pip-bootstrap-requirements.txt) and virtualenv
21.14.13 (VIRTUAL_ENV_VERSION in Makefile.vars). Both are at or above
the minimum fixed releases for the eMudhra CA incident. Add comments to
keep the pins in sync.
@Harshg999 Harshg999 self-assigned this Oct 28, 2026
@github-actions

Copy link
Copy Markdown

⚠️ No test files modified. Please ensure that changes are properly tested. ⚠️

@github-actions

Copy link
Copy Markdown

UI Code Coverage Report

Lines Statements Branches Functions
Coverage: 33%
40.15% (31632/78765) 32.06% (14985/46740) 26.4% (2414/9142)

@github-actions

Copy link
Copy Markdown

Coverage

Backend Code Coverage Report •
FileStmtsMissBranchBrPartCoverMissing
TOTAL5700728917219691299247% 
report-only-changed-files is enabled. No changed files were found in the coverage report :)

@Harshg999
Harshg999 merged commit a775bf3 into master Oct 29, 2026
6 checks passed
@Harshg999
Harshg999 deleted the fix/pin-pip-virtualenv-in-dockerfiles branch October 29, 2026 06:51
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