Skip to content

Reduce the usage of fake workers in integration tests#2000

Merged
bidetofevil merged 1 commit intomainfrom
hho/reduce-fake-workers
Mar 7, 2025
Merged

Reduce the usage of fake workers in integration tests#2000
bidetofevil merged 1 commit intomainfrom
hho/reduce-fake-workers

Conversation

@bidetofevil
Copy link
Copy Markdown
Contributor

@bidetofevil bidetofevil commented Mar 6, 2025

Goal

Most workflows don't require faking workers anymore since we have a wait-for-payload mechanism in the integration tests now, which is more representative of the actual workflow.

The one remaining worker to fake is for ANR testing. Not sure if we can do without it but leaving it in for now.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.41%. Comparing base (35d9a56) to head (c8284b3).
Report is 3 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2000      +/-   ##
==========================================
+ Coverage   85.39%   85.41%   +0.01%     
==========================================
  Files         482      482              
  Lines       11234    11234              
  Branches     1686     1686              
==========================================
+ Hits         9593     9595       +2     
  Misses        901      901              
+ Partials      740      738       -2     

see 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

testCaseAction = {
embrace.logWarning("test message")
flushLogs()
clock.tick(2000L)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Need to move time ahead so the batching logic kicks in

allowPeriodicCacheExecution()
assertEquals(1, cacheStorageService.storedPayloads.size)
snapshot = loadSnapshot(cacheStorageService)
val dataSupplier = { cacheStorageService.storedPayloads }
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Note: this is further refactored in a PR later on

@bidetofevil bidetofevil marked this pull request as ready for review March 6, 2025 23:28
@bidetofevil bidetofevil requested a review from a team as a code owner March 6, 2025 23:28
@bidetofevil bidetofevil requested review from fractalwrench and removed request for a team March 6, 2025 23:28
@bidetofevil bidetofevil force-pushed the hho/reduce-fake-workers branch from 1dd2058 to e1134e0 Compare March 6, 2025 23:54
@bidetofevil bidetofevil force-pushed the hho/harness-slimming branch from 804e59a to fac324a Compare March 7, 2025 00:12
@bidetofevil bidetofevil force-pushed the hho/reduce-fake-workers branch from e1134e0 to bace552 Compare March 7, 2025 00:12
@bidetofevil bidetofevil force-pushed the hho/harness-slimming branch from fac324a to 9ee7061 Compare March 7, 2025 01:22
@bidetofevil bidetofevil force-pushed the hho/reduce-fake-workers branch from bace552 to 240adbb Compare March 7, 2025 01:22
Copy link
Copy Markdown
Member

@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

@bidetofevil bidetofevil changed the base branch from hho/harness-slimming to graphite-base/2000 March 7, 2025 14:47
@bidetofevil bidetofevil force-pushed the hho/reduce-fake-workers branch 2 times, most recently from 5a094f6 to 1244467 Compare March 7, 2025 15:00
@bidetofevil bidetofevil changed the base branch from graphite-base/2000 to main March 7, 2025 15:01
@bidetofevil bidetofevil force-pushed the hho/reduce-fake-workers branch from 1244467 to c8284b3 Compare March 7, 2025 15:01
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 7, 2025

Dependency Review

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

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

Copy link
Copy Markdown
Contributor Author

bidetofevil commented Mar 7, 2025

Merge activity

  • Mar 7, 10:18 AM EST: A user started a stack merge that includes this pull request via Graphite.
  • Mar 7, 10:18 AM EST: A user merged this pull request with Graphite.

@bidetofevil bidetofevil merged commit 70f7b49 into main Mar 7, 2025
11 checks passed
@bidetofevil bidetofevil deleted the hho/reduce-fake-workers branch March 7, 2025 15:18
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