Best way to use Google's hosted jQuery, but fall back to my hosted library on Google fail

What would be a good way to attempt to load the hosted jQuery at Google (or other Google hosted libs), but load my copy of jQuery if the Google attempt fails? I'm not saying Google is flaky. There...

Resume FTP download after timeout

I'm downloading files from a flaky FTP server that often times out during file transfer and I was wondering if there was a way to reconnect and resume the download. I'm using Python's ftplib. Here...

multiprocessing: How can I ʀᴇʟɪᴀʙʟʏ redirect stdout from a child process?

NB. I have seen https://stackoverflow.com/questions/1501651/log-output-of-multiprocessing-process - unfortunately, it doesn't answer this question. I am creating a child process (on windows) via...

Doctrine iterate seems flaky

As I discovered in another question, loading 300k rows as entities with Doctrine is not a good idea and will consume at least a gigabyte of memory. Since I needed some bitwise operations anyway, I...

how to set primary monitor for Windows-7, in C#

I believe I will need an example of doing this in SetDisplayConfig(). My Windows-7 system has two monitors. When my program is in one mode, the 1st monitor must be on and primary, and the 2nd...

How to retrieve branch names in a custom Git merge driver?

I'm writing a custom merge driver that needs to be aware of the names of the branches it is merging. I managed to retrieve the name of the branch being merged into (destination) with git...

Recover from trigger ERROR state after Job constructor threw an exception?

When using Quartz.net to schedule jobs, I occasionally receive an exception when instantiating a job. This, in turn causes Quartz to set the trigger for the job to an error state. When this...

cocoapods [!] Error installing Crashlytics

Crashlytics as a cocoapod is breaking for our CI system. Basically we have a Rakefile that runs some tasks to do a pod update, build our app, and run tests, etc. However, we recently switched to...

How can I check the expected intent sent without actually launching activity in Espresso?

I have a UI test which clicks a button, and then launch a new Activity in its onClickListener. The test checks whether expected intent is sent or not. My problem is, I want to test whether...

How do you disable animations at the system level for an android device/emulator using adb with API 23?

Based on reading, the values window_animation_scale, transition_animation_scale and animator_duration_scale need to be set to 0 The following works for API 22 but not for API 23: adb shell...

Animated Button block the Detox

This is what I meant about the animating button. I let it have an ID, but it can't be located by the Detox somehow. Detox eliminates flakiness by automatically synchronizing your tests with the...

Can you re-run failed test cases in parallel using RobotFramework?

I am using RobotFramework to script test cases and I was wondering if it was possible to re-run failed test cases in parallel with the "pabot" command. Currently I am using the following commands...

How does allure get the test status in categories.json

After executing test I am getting the XML files in allure-results directory. From there I am generating the HTML report using the command: allure generate allure-results --clean -o...

Why is Azure app service not reliably reading my connection strings when I am using the production (base app service) slot

I have an ASP.NET Core 2.1 API that I am deploying to an Azure App Service. I use Azure SQL Server for my backing databases. Below is a screenshot of the App Service (base) Application Settings...

pytest - rerun failed test after all other tests

In my scenario, I have one test that writes a file, and one (but potentially many more) tests that would want to read that file. I cannot simply extract writing that file to a function/fixture,...

Failed: script timeout: result was not received in 11 seconds From: Task: Protractor.waitForAngular() - Locator: By(css selector, #my-btn)

I'm trying to write some e2e test for my Angular application using Protractor. I have a simple html button having id=my-btn which I want to click, using: $('#my-btn').click(); Unfortunately I'm...

'--disable-dev-shm-usage' does not resolve the Chrome crash issue in Docker

Since our e2e test has expanded to over 50+ tests we decided to run tests in parallel to speed it up. Since default gitlab pipeline has limited resources (and dev-shm-size trick did not worked) we...

What does the subset argument do in pandas.io.formats.style.Styler.format?

The public documentation for pandas.io.formats.style.Styler.format says subset : IndexSlice An argument to DataFrame.loc that restricts which elements formatter is applied to. But looking at the...

Any way to make a retries for flaky tests using jest-puppeteer?

I faced with a problem, that there are no built-in way to retry flaky tests in Jest. I'm using Jest + TS + Puppeteer. Anyone have the same problem or possible solutions\suggestions? I tried to...

Why do I see 403 forbidden in Azure application gateway?

The error I see when accessing https://www.example.com regardless of whether I have a listener (443) and rule is: 403 - Forbidden You don't have permission to access / on this server. If I add a...

Bash Script - Comparing last modified dates

Trying to match the date output to the same format as curl last modified date which is: Last-Modified: Thu, 16 Apr 2020 08:14:26 GMT, with the Awk filter as in the script below it is 16 Apr 2020...

Understanding Active Storage Direct Upload errors: `Error storing "File_1.jpeg". Status: 0`

Our app recently switched to direct uploads to S3 via Rails Active Storage (introduced in Rails 5.2) For the most part, it's working alright, but we're noticing that an error gets thrown around 2%...

SecurityContextHolder returns the Wrong Username

While testing REST endpoints using MockMVC, the Spring SecurityContextHolder occasionally returns the wrong username within the same test. I have a service, in which there is a method that returns...

Webflux WebClient retry and Spring Cloud Circuit Breaker Resilience4J Retry pattern walk into a bar

Would like to ask a question about two technologies. We first started with an application that has to call other third parties rest API, hence, we used the Webflux WebClient in our SpringBoot...

Flutter integration test - bad state, no element

In my integration tests I have to keep doing: await tester.pumpAndSettle(const Duration(seconds: [some duration])); to wait for the widgets to load to the screen after animation delays, otherwise...

How to run Espresso UI tests in Azure devops pipeline

I've been reading posts and I ended up with a *.yaml that works but looks like is taking way too long because I've tried it with more or less 5 or 6 tests, locally it needs 4 seconds to pass and...

Hunt for root cause of flaky test in Python

There is a flaky test, and we have no clue what the root cause could be. with pytest.raises(foo.geocoder.GeocodingFailed): foo.geocoder.geocode('not a valid place') Sometimes the exception...

UI Tests Flaky on CI

update: VNC into the build machine (without making any changes) somehow fixes this....strange Context We use Mac EC2 instances CI cluster to run UI tests. The cluster is set up to recycle every...

Android Studio Arctic Fox unable to run JUnit configuration with mockk

I just upgrade my Android Studio to the latest one. And currently I guess some of my test classes producing flaky test result and I want to run repeat mode in Android Studio as I did in Android...

c++ - Flaky atomic lock.. but why?

Question solved: see the edit. x86_64, Linux, gcc 11.1, gnu++20. Before using const std::lock_guard <mutex> lock( mut ); I wanted to give a go to my own implementation of multithreading lock, to...

Relevant tags