-
Notifications
You must be signed in to change notification settings - Fork 39
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
Finish launches and merges #135
Comments
@thomaswinkler is this workaround working only on Cypress 10+ |
The workaround is based on |
@thomaswinkler could you please include imports? I can't find Thank you! |
@gustawx Yes, You can implement const fs = require("fs");
const glob = require("glob");
function deleteLaunchFiles() {
const getLaunchTempFiles = () => {
return glob.sync("rplaunch*.tmp");
};
const deleteTempFile = (filename) => {
fs.unlinkSync(filename);
};
const files = getLaunchTempFiles();
files.forEach(deleteTempFile);
} Let me know if it works. Launching and merging is now very reliable in our test suites. Unfortunately it's just a lot of bugs in required components and even bugfixes (as #103) are not merged. Do have a rather complex setup and configuration now, working around, fixing and adding features to get all infos into Report Portal we need. |
@thomaswinkler thank you very much, it works fine now but I found another issue: tests marked as |
@gustawx skipping is one of the many bugs I also ran into. Assume with skip you are referring to Also see https://docs.cypress.io/guides/core-concepts/writing-and-organizing-tests#Pending for infos on Fixing |
@thomaswinkler thank you very much for your help. |
If anyone interested, I could prepare a pull request for fixing skipped (pending) tests. @gustawx re: your question about custom commands. Fixing might just require declaring the report portal commands like you need to do for all custom commands in Cypress. See Types-for-Custom-Commands documentation for details. Using one myself and no issues at all with custom commands. |
@thomaswinkler: yes please, PR with pending/skipped tests fix would be very helpful. Skipped tests are causing a lot of mess in test runs. |
@ivan-stratify, @gustawx I just created #141 to support finishing of skipped tests. Would be great if you could test and confirm it works for you. |
@thomaswinkler tested - all works fine, great job! Who's going to merge it? |
@gustawx, not sure. Seems not like anyone working on a release. Also did not receive any feedback to my proposed workarounds from maintainers so far. Would now continue to create few more pull requests on other issues. Maybe that will get a conversation and eventually a new release going. |
Hi @thomaswinkler, you said that you use a customized version for mergeLaunches. Can share your version here? I tried to make a workaround for the problem with merge more than 20 launches, but it didn't work.Thank you! I'm using Cypress 8.5, but I managed to implement the solution for unfinished launches and merge timeouts as you suggested above in cypress/plugins/index.js and it works. Thank for that! |
@AmsterGet @ElenaRomanchuk it looks like you are an active @epam contributors in this repository. Is anyone from epam still maintaing this repo? Can someone take care of the PR raised by @thomaswinkler . There is also a very easy fix proposed for issue related to failing to merge more than 20 results... |
Hello guys! @thomaswinkler huge thanks for your contribution! I'll try to review and publish your changes this/next week! Feel free to ping me in case of the delay from my side or other asks. |
@AmsterGet thank you for your answer. |
@AmsterGet Thank you for your feedback. Please let me create a few more PRs first. There is at least some changes required to improve reliability of the suggested workaround. It's basically about error handling and avoiding the wait to never finish. Additionally I would like to suggest a new approach for finding screenshots based on I could also support moving the workaround to plugin. |
@AmsterGet created my pull requests. Not all related to this issue only, but issues I ran into over last couple month. @gustawx would be interested in your feedback as well on #146 and #148. |
@AmsterGet For now, I added pull requests for all issues we ran into or features we required. Please note, I tried to separate into different pull requests what we are using already in production. If you need, I can point you at some branch that has everything merged. I would next look into creating a pull request for keeping the plugin running until merge is finished. Ok? |
hello @thomaswinkler sorry for such a late reponse but I was overloaded with work and changed my work focus on a different subject. I'm coming back to this now and want to move it forward. Could you please resolve the merge conflict #146 ? I will, do the review and test this next week. btw. great job @thomaswinkler ! @AmsterGet will my review and testing be enough for you to merge the PRs? |
Hello guys! |
Hi @thomaswinkler My Env: |
We've been struggling with unfinished launches and merge timeouts in ReportPortal. Unfinished launches, also reported in other issues (such as #62, #63, #64, #73, #79, #133, ...) , for us, especially did come up for suites with number of test greater than 10-20. Smaller numbers appear flaky, but finish at least most of the times.
Root cause appears to be cypress-io/cypress#7139.
As
agent-js-cypress
is using an async architecture, it also suffers from Cypress killing IPC subprocess before it finishes pushing all data into ReportPortal. IPC messages come in very slow, so depending on the number of events / messages, pushing all changes to ReportPortal takes much longer than Cypress keeps browser runtime open.The following workaround on Cypress 10+ did fix upload and merge for us. As I do not think the issue can be easily fixed in
agent-js-cypress
, I would recommend to try the workaround and document. This requiresisLaunchMergeRequired
to betrue
. Merging itself could also be disabled inafter:run
depending on project needs, but to find out whenagent-js-cypress
is finished, therplaunchinprogress
temp files are needed.cypress.config.ts:
Also be aware of an issue in
@reportportal/client-javascript
not merging more than 20 launches.reportportal/client-javascript#86
reportportal/client-javascript#103
The text was updated successfully, but these errors were encountered: