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

Simplify session properties tests to not checked cached payload #1412

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

bidetofevil
Copy link
Collaborator

@bidetofevil bidetofevil commented Sep 22, 2024

Goal

Getting the last saved session was flakey in the same way getting the last saved background activity was flakey. Fixed this by just not checking that, but instead checking when the session is done, which is not flakey because that save happens on the main test thread.

At the same time, I made the non-flakey saved envelope payload validation function generic and usable for sessions, if we ever need it

Copy link
Contributor

github-actions bot commented Sep 22, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

Copy link
Collaborator Author

bidetofevil commented Sep 22, 2024

@bidetofevil bidetofevil marked this pull request as ready for review September 22, 2024 04:32
@bidetofevil bidetofevil requested a review from a team as a code owner September 22, 2024 04:32
Copy link

codecov bot commented Sep 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.50%. Comparing base (2dc5f93) to head (8615c9b).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1412      +/-   ##
==========================================
+ Coverage   82.49%   82.50%   +0.01%     
==========================================
  Files         477      477              
  Lines       10954    10954              
  Branches     1670     1670              
==========================================
+ Hits         9036     9038       +2     
+ Misses       1192     1190       -2     
  Partials      726      726              

see 4 files with indirect coverage changes

@bidetofevil bidetofevil changed the title Simply session properties tests to not checked cached payload Simplify session properties tests to not checked cached payload Sep 23, 2024
Copy link
Contributor

@fractalwrench fractalwrench left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator Author

bidetofevil commented Sep 23, 2024

Merge activity

  • Sep 23, 11:21 AM EDT: @bidetofevil started a stack merge that includes this pull request via Graphite.
  • Sep 23, 11:22 AM EDT: Graphite rebased this pull request as part of a merge.
  • Sep 23, 11:31 AM EDT: @bidetofevil merged this pull request with Graphite.

@bidetofevil bidetofevil merged commit ccb96a4 into main Sep 23, 2024
5 checks passed
@bidetofevil bidetofevil deleted the hho/simplfy-session-props-tests branch September 23, 2024 15:31
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.

2 participants