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

Fix flakyness of connection test #3630

Merged
merged 4 commits into from
Apr 6, 2023
Merged

Fix flakyness of connection test #3630

merged 4 commits into from
Apr 6, 2023

Conversation

cmdcolin
Copy link
Collaborator

@cmdcolin cmdcolin commented Apr 6, 2023

Ideally will help, it helped in the react 18 branch which may have surfaced the issues more readily but may be more rare on current react 17. Uses the 'user-event' library from testing-library, which has more natural 'integration testing' methods

@github-actions github-actions bot added the needs label triage Needs a label to show in changelog (breaking, enhancement, bug, documentation, or internal) label Apr 6, 2023
@cmdcolin cmdcolin force-pushed the connection_changes branch from 6a9e9b0 to 36fa0c0 Compare April 6, 2023 01:48
@cmdcolin cmdcolin force-pushed the connection_changes branch from 36fa0c0 to 7834df6 Compare April 6, 2023 01:48
: false,
)

const conf = session.assemblyManager.get(genomeName)?.configuration
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

updated from PR #3625 which actually needed more parenthesizing in it's current form, and should be easier with this method

@cmdcolin cmdcolin added bug Something isn't working housekeeping needs to be tidied up, is a drag on team performance and removed needs label triage Needs a label to show in changelog (breaking, enhancement, bug, documentation, or internal) labels Apr 6, 2023
@codecov
Copy link

codecov bot commented Apr 6, 2023

Codecov Report

Merging #3630 (3efa863) into main (b7504be) will increase coverage by 0.12%.
The diff coverage is 89.28%.

@@            Coverage Diff             @@
##             main    #3630      +/-   ##
==========================================
+ Coverage   62.94%   63.06%   +0.12%     
==========================================
  Files         871      871              
  Lines       30199    30189      -10     
  Branches     7271     7269       -2     
==========================================
+ Hits        19008    19038      +30     
+ Misses      11005    10966      -39     
+ Partials      186      185       -1     
Impacted Files Coverage Δ
packages/core/ui/SanitizedHTML.tsx 86.66% <ø> (ø)
...nnectionWidget/components/ConnectionTypeSelect.tsx 77.77% <ø> (-1.17%) ⬇️
...onnectionWidget/components/AddConnectionWidget.tsx 90.90% <86.36%> (+3.10%) ⬆️
packages/core/PluginManager.ts 89.81% <100.00%> (+0.07%) ⬆️
...onnectionWidget/components/ConfigureConnection.tsx 100.00% <100.00%> (ø)
plugins/data-management/src/ucsc-trackhub/model.ts 76.19% <100.00%> (-0.56%) ⬇️

... and 5 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@cmdcolin
Copy link
Collaborator Author

cmdcolin commented Apr 6, 2023

looked at the mock fetch typescripting because both of the runs i saw related to #3624 mentioned HttpMap being the last test run that could have produced that error, but I think that is a fluke and it's probably dotplot.test.tsx or alignments.test.tsx above it or something like that that actually uses the DOM

@@ -33,7 +33,6 @@ module.exports = {
],
setupFiles: [
'<rootDir>/config/jest/textEncoder.js',
'<rootDir>/config/jest/createRange.js',
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

createRange polyfill no longer needed, and in fact, causes problems if used

@cmdcolin cmdcolin merged commit b6ac080 into main Apr 6, 2023
@cmdcolin cmdcolin deleted the connection_changes branch April 6, 2023 02:36
cmdcolin added a commit that referenced this pull request May 18, 2023
* Connection type changes

* Misc typescript fixes to fetch mocks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working housekeeping needs to be tidied up, is a drag on team performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant