Skip to content

Some general Python test improvements - #2316

Merged
Hocuri merged 4 commits into
masterfrom
sqlx-next-fix-backup-test
Apr 18, 2021
Merged

Hocuri merged 4 commits into
masterfrom
sqlx-next-fix-backup-test

Conversation

@Hocuri

@Hocuri Hocuri commented Mar 26, 2021 •

Copy link
Copy Markdown
Collaborator

This PR originally contained a fix for sqlx which turned out not not to be necessary. But on the way, I made some general improvements:

@Hocuri
Hocuri force-pushed the sqlx-next-fix-backup-test branch from 93cb37d to 06dd73f Compare March 29, 2021 14:42
@Hocuri

This comment has been minimized.

@Hocuri Hocuri changed the title [WIP] sqlx - fix test_import_export_online_all [WIP] Some general Python test improvements Apr 5, 2021
@Hocuri
Hocuri force-pushed the sqlx-next-fix-backup-test branch from 06dd73f to 1e38218 Compare April 5, 2021 13:13
@Hocuri Hocuri mentioned this pull request Apr 6, 2021
9 tasks done
Base automatically changed from sqlx-next to master April 6, 2021 14:03
@Hocuri
Hocuri force-pushed the sqlx-next-fix-backup-test branch from 1e38218 to 4fe0607 Compare April 6, 2021 15:35
@Hocuri Hocuri changed the title [WIP] Some general Python test improvements Some general Python test improvements Apr 6, 2021
@Hocuri
Hocuri requested a review from link2xt April 6, 2021 15:40
@Hocuri
Hocuri requested a review from adbenitez April 18, 2021 10:34
@Hocuri
Hocuri force-pushed the sqlx-next-fix-backup-test branch from 4fe0607 to abb1bb9 Compare April 18, 2021 10:35
original_image_path = data.get_path("d.png")
chat1.send_image(original_image_path)

path = tmpdir.join("attachment.txt")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Add a comment that this ensures import progress is smooth enough?

By the way export progress is currently based on file count rather than file sizes. Maybe makes sense to change this, or is reading file sizes before start of export expensive?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

By the way export progress is currently based on file count rather than file sizes. Maybe makes sense to change this, or is reading file sizes before start of export expensive?

I don't know, never tried this out. Although it doesn't seem to be that important to me from a user perspective (esp. if there are tens/hundreds of files, like usual in production).

What is a bit annoying is that the progress is stuck quite some time during the beginning of the export because the large SQL file is exported. Maybe we should just export the sql file at the end instead of at the beginning.

@Hocuri
Hocuri force-pushed the sqlx-next-fix-backup-test branch from 085622a to 645e511 Compare April 18, 2021 14:19
@Hocuri
Hocuri merged commit 553d393 into master Apr 18, 2021
@Hocuri
Hocuri deleted the sqlx-next-fix-backup-test branch April 18, 2021 17:20
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.

3 participants