Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a dummy repository to run the upgrade_python tests #16019

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

FlorentClarret
Copy link
Member

@FlorentClarret FlorentClarret commented Oct 16, 2023

What does this PR do?

Use a dummy repository to run the upgrade_python tests

Motivation

Additional Notes

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Changelog entries must be created for modifications to shipped code
  • Add the qa/skip-qa label if the PR doesn't need to be tested during QA.

@github-actions
Copy link

github-actions bot commented Oct 16, 2023

Test Results

    2 files      2 suites   5m 20s ⏱️
428 tests 423 ✔️   5 💤 0
856 runs  827 ✔️ 29 💤 0

Results for commit 774f273.

♻️ This comment has been updated with latest results.

@codecov
Copy link

codecov bot commented Oct 16, 2023

Codecov Report

Merging #16019 (774f273) into master (5ba30fc) will increase coverage by 0.16%.
The diff coverage is 100.00%.

Flag Coverage Δ
activemq ?
cassandra ?
confluent_platform ?
ddev 99.48% <100.00%> (+1.55%) ⬆️
hive ?
hivemq ?
hudi ?
ignite ?
jboss_wildfly ?
kafka ?
presto ?
solr ?
tomcat ?
weblogic ?

Flags with carried forward coverage won't be shown. Click here to find out more.

@FlorentClarret FlorentClarret marked this pull request as ready for review October 16, 2023 10:52
@FlorentClarret FlorentClarret requested a review from a team as a code owner October 16, 2023 10:52
@FlorentClarret FlorentClarret force-pushed the florentclarret/ddev/upgrade_tests branch from a0c49c2 to 3a22d4f Compare October 16, 2023 10:56
Comment on lines 12 to 21
for entry in fake_repo.path.iterdir():
config_file = entry / 'hatch.toml'
if not config_file.is_file():
continue

for i, line in enumerate(config_file.read_text().splitlines()):
if line.startswith('python = [') and PYTHON_VERSION in line:
if line.startswith('python = [') and old_version in line:
changes[config_file].append(i)

minimum_changes = sum(map(len, changes.values()))
Copy link
Contributor

Choose a reason for hiding this comment

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

It might be worth dropping this loop? IIUC it's only used to make an assertion on the number after Passed: in the output, and since the output is deterministic now we might be able to drop that (we're already asserting that it equals 2 now).

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch! Updated

@FlorentClarret FlorentClarret force-pushed the florentclarret/ddev/upgrade_tests branch from 3a22d4f to e9e18c5 Compare October 16, 2023 12:41
@FlorentClarret FlorentClarret force-pushed the florentclarret/ddev/upgrade_tests branch from e9e18c5 to 4b0ffd5 Compare October 16, 2023 12:49
@FlorentClarret FlorentClarret force-pushed the florentclarret/ddev/upgrade_tests branch from 4b0ffd5 to 774f273 Compare October 16, 2023 13:06
Copy link
Contributor

@alopezz alopezz left a comment

Choose a reason for hiding this comment

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

💯

@FlorentClarret FlorentClarret merged commit 0cbba10 into master Oct 16, 2023
@FlorentClarret FlorentClarret deleted the florentclarret/ddev/upgrade_tests branch October 16, 2023 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants