Skip to content

Remove Ramble code that supports python2#1649

Open
linsword13 wants to merge 1 commit into
GoogleCloudPlatform:developfrom
linsword13:py2-unused
Open

Remove Ramble code that supports python2#1649
linsword13 wants to merge 1 commit into
GoogleCloudPlatform:developfrom
linsword13:py2-unused

Conversation

@linsword13

Copy link
Copy Markdown
Member

Since now Ramble only supports python3.6 and up.

  • Get rid of mentions of py2
  • Remove a couple future imports that were for py2 compatibility. As a result the _PrependFileLoader is not needed any more.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request cleans up Python 2 and Python 3.5 compatibility code, including removing python2 from preferred Python interpreters, dropping __future__ imports, and removing the _PrependFileLoader class. The review feedback suggests updating outdated comments in bin/ramble that still reference Python 2, and removing a redundant self.fullname assignment in RepoLoader.

Comment thread bin/ramble
Comment thread lib/ramble/ramble/repository.py
@ramble-pr-bot

ramble-pr-bot Bot commented Jul 1, 2026

Copy link
Copy Markdown

Ramble Performance Test Metrics

Results produced with commit: 34a83df

Test Name Outcome Duration (s) Most Recent Run (s) Last 5 Avg (s)
test_analyze_large_file passed 2.9407 2.9405 (1ebc534) 2.9284
test_large_template_expansion passed 2.1762 2.1471 (1ebc534) 2.1558
test_many_experiments passed 38.8931 36.5583 (1ebc534) 37.7597
test_many_objects_defaults passed 21.1425 19.4925 (1ebc534) 20.1742
test_matrix_filter_perf passed 1.6567 1.5775 (1ebc534) 1.6123

@codecov

codecov Bot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.29%. Comparing base (1ebc534) to head (34a83df).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1649      +/-   ##
===========================================
- Coverage    93.30%   93.29%   -0.01%     
===========================================
  Files          352      352              
  Lines        34223    34207      -16     
===========================================
- Hits         31931    31915      -16     
  Misses        2292     2292              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Since now Ramble only supports python3.6 and up.

* Get rid of mentions of py2
* Remove a couple future imports that were for py2 compatibility. As a result the `_PrependFileLoader` is not needed any more.
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.

1 participant