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

Little python test cleanup #9018

Merged
merged 5 commits into from
Sep 17, 2024
Merged

Little python test cleanup #9018

merged 5 commits into from
Sep 17, 2024

Conversation

hlinnaka
Copy link
Contributor

  • Remove a few unused / redundant functions
  • Move functions related to auth tokens to separate python file. For readability; neon_fixtures.py is huge.
  • Mark a few fixtures as session-scoped

Copy link

github-actions bot commented Sep 16, 2024

4968 tests run: 4804 passed, 0 failed, 164 skipped (full report)


Flaky tests (3)

Postgres 17

Postgres 16

Code coverage* (full report)

  • functions: 32.0% (7414 of 23166 functions)
  • lines: 49.9% (59567 of 119341 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
3f2ba6a at 2024-09-17T00:31:40.152Z :recycle:

@hlinnaka hlinnaka force-pushed the misc-test-cleanup branch 3 times, most recently from f856d29 to 4f71386 Compare September 16, 2024 22:46
hlinnaka added a commit that referenced this pull request Sep 16, 2024
hlinnaka added a commit that referenced this pull request Sep 16, 2024
There was another copy of it in utils.py. The only difference is that
the version in utils.py tolerates files that are concurrently
removed. That seems fine for the few callers in neon_fixtures.py too.
hlinnaka added a commit that referenced this pull request Sep 16, 2024
pg_distrib_dir doesn't include the Postgres version and only depends
on env variables which cannot change during a test run, so it can be
marked as session-scoped. Similarly, the platform cannot change during
a test run.
hlinnaka added a commit that referenced this pull request Sep 16, 2024
hlinnaka added a commit that referenced this pull request Sep 16, 2024
There was another copy of it in utils.py. The only difference is that
the version in utils.py tolerates files that are concurrently
removed. That seems fine for the few callers in neon_fixtures.py too.
hlinnaka added a commit that referenced this pull request Sep 16, 2024
pg_distrib_dir doesn't include the Postgres version and only depends
on env variables which cannot change during a test run, so it can be
marked as session-scoped. Similarly, the platform cannot change during
a test run.
hlinnaka added a commit that referenced this pull request Sep 16, 2024
@hlinnaka hlinnaka enabled auto-merge (rebase) September 16, 2024 22:48
This is in preparation of replacing neon_fixtures.get_dir_size with
neon_fixtures.utils.get_dir_size() in next commit.
There was another copy of it in utils.py. The only difference is that
the version in utils.py tolerates files that are concurrently
removed. That seems fine for the few callers in neon_fixtures.py too.
pg_distrib_dir doesn't include the Postgres version and only depends
on env variables which cannot change during a test run, so it can be
marked as session-scoped. Similarly, the platform cannot change during
a test run.
@tristan957
Copy link
Member

Went ahead and kicked your CI for you.

@hlinnaka hlinnaka merged commit 2db840d into main Sep 17, 2024
81 checks passed
@hlinnaka hlinnaka deleted the misc-test-cleanup branch September 17, 2024 03:53
hlinnaka added a commit that referenced this pull request Sep 17, 2024
hlinnaka added a commit that referenced this pull request Sep 17, 2024
This is in preparation of replacing neon_fixtures.get_dir_size with
neon_fixtures.utils.get_dir_size() in next commit.
hlinnaka added a commit that referenced this pull request Sep 17, 2024
There was another copy of it in utils.py. The only difference is that
the version in utils.py tolerates files that are concurrently
removed. That seems fine for the few callers in neon_fixtures.py too.
hlinnaka added a commit that referenced this pull request Sep 17, 2024
pg_distrib_dir doesn't include the Postgres version and only depends
on env variables which cannot change during a test run, so it can be
marked as session-scoped. Similarly, the platform cannot change during
a test run.
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