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

DEV: Download PDFs before executing the tests to not run into timeouts #2143

Merged
merged 2 commits into from
Sep 3, 2023

Conversation

MartinThoma
Copy link
Member

@MartinThoma MartinThoma commented Sep 3, 2023

Tests which have enable_socket and a small timeout might fail because the download isn't finished fast enough. That is not what we want to test.

As a fix, CI now can download files before the actual tests are executed.

@codecov
Copy link

codecov bot commented Sep 3, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (301b542) 94.13% compared to head (2ff5329) 94.13%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2143   +/-   ##
=======================================
  Coverage   94.13%   94.13%           
=======================================
  Files          41       41           
  Lines        7467     7467           
  Branches     1474     1474           
=======================================
  Hits         7029     7029           
  Misses        273      273           
  Partials      165      165           

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

@MartinThoma
Copy link
Member Author

@pubpub-zz What do you think about this?

@pubpub-zz
Copy link
Collaborator

Sounds quite good, but are you sure the coverage will not slow down process in a random way ?
we have also to remember we are running a shared ressource/cpu server

You may think a conservative guy, but mixing time-outs (to prevent infinite loops) and performances is not so nice 🫤

@MartinThoma
Copy link
Member Author

Are you sure the coverage will not slow down process in a random way?

No, I'm not. But I think compared to the download-time (especially if the internet connection might be flaky or the server might be down) the impact of that should be negligible.

I'll merge it for now and will expand it over time in hope that this solves the issues you experienced. Let me know when/if you have the issues again :-)

@MartinThoma MartinThoma changed the title TST: Ensure test_watermarking_speed is not flaky DEV: Download PDFs before executing the tests to not run into timeouts Sep 3, 2023
@MartinThoma MartinThoma merged commit 31ecda3 into main Sep 3, 2023
14 checks passed
@MartinThoma MartinThoma deleted the tst/test_watermarking_speed branch September 3, 2023 20:52
MartinThoma added a commit that referenced this pull request Sep 3, 2023
## What's new

### Bug Fixes (BUG)
-  Cope with missing /I in articles (#2134)
-  Fix image look-up table in EncodedStreamObject (#2128)
-  remove_images not operating in sub level forms (#2133)

### Robustness (ROB)
-  Cope with damaged PDF (#2129)

### Documentation (DOC)
-  How to take ownership (#2123)

### Developer Experience (DEV)
-  Download PDFs before executing the tests to not run into timeouts (#2143)
-  Add workflow_dispatch to CI (#2145)
-  Automatically create release message / tag message (#2127)
-  Ensure the REL commit message is consistently created (#2126)

### Testing (TST)
-  Add test for correct rendering of watermarks (#2130)

[Full Changelog](3.15.4...3.15.5)
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.

None yet

2 participants