question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tests: Collection of flukes on CI

See original GitHub issue

Hi again,

while submitting some patches recently, we observed occasional flaky behavior of the test suite on CI. ^1. This issue intends to collect references to them, in order to find out about the root cause.

At ^2, we discovered test_plugin_twitter_tweet_attachments failed on PyPy 3.7 ^3 with #690. @caronc responded to this with:

This happens ALL the time; every now and then a random test that never failed (ever) in the past just fails on TravisCI. It’s usually always related to the Attachments. […] I can’t tell if it’s a Travis-CI issue, or the way my tests are written, or if if it’s some mulch-threading issue with Apprise and the timing of some of the attachment tests (causing it to pass 99.9% of the time).

Thank you for sharing your knowledge here, I will have another look at the test cases related to attachments when I can find some time.

If it happens again, even if I’m not in front of my PC, i can give easily give Travis CI runner a kick. Feel free to just ask me to do so… (or do a force-push on the branch again; that’ll trigger it to go again too). 🤷‍♂️

I think it will be fortunate to use the “force-push” variant, in order to keep references to the failed builds on Travis CI, in order to build up more knowledge where and how often this error happens. If you like that approach, feel free to add corresponding references to this issue while we go.

With kind regards, Andreas.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:31 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
caronccommented, Oct 18, 2022

The previous runner was so slow, this test passed. 0.4995 is pretty close. I think the test just needs to be tweaked to allow for this. No worries here at all

0reactions
amotlcommented, Dec 10, 2022

PyPy3.9 again.

_______________________ test_plugin_fcm_oauth_no_colors ________________________

mock_post = <MagicMock name='post' id='66486064'>

    @pytest.mark.skipif(
        'cryptography' not in sys.modules, reason="Requires cryptography")
    def test_plugin_fcm_oauth_no_colors(mock_post):
        """
        Verify `color=no` work as intended.
        """
    
        obj = Apprise.instantiate(
            f'fcm://mock-project-id/device/?keyfile={FCM_KEYFILE}'
            '&color=no')
>       assert mock_post.call_count == 0
E       AssertionError: assert 1 == 0
E        +  where 1 = <MagicMock name='post' id='66486064'>.call_count

test/test_plugin_fcm.py:543: AssertionError

https://github.com/caronc/apprise/actions/runs/3665208554/jobs/6196128736#step:10:125

Read more comments on GitHub >

github_iconTop Results From Across the Web

Intestinal Flukes Workup: Laboratory Studies, Other Tests
The merthiolate, iodine, formalin (MIF) method is used to detect intestinal fluke parasites. The MIF method was established early as a versatile ...
Read more >
A New PCR-Based Approach Indicates the Range of ... - NCBI
The PCR test developed in this study is capable of amplifying O. viverrini, C. sinensis and potentially the minute intestinal flukes, directly ...
Read more >
2392199 Fluke Electronics Corp (Biomedical Div.) CI-3 ...
CI-3 CARDIAC OUTPUT TEST MODULE by Fluke Electronics Corp (Biomedical Div.) New OEM Original Outright. Your price: $445.66 / each.
Read more >
Diagnosis - Clonorchis - CDC
Ova and parasite (O&P) stool examinations for liver fluke eggs is the only available way to diagnose Clonorchis infection.
Read more >
BILHA - Overview: Schistosoma species Antibody, IgG, Serum
This assay can be used as a screening test for detection of antibodies to Schistosoma species. Positive results should be interpreted alongside clinical ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found