-
Notifications
You must be signed in to change notification settings - Fork 94
Add Reassure tests (Phase 1) #618
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
Merged
roryabraham
merged 36 commits into
Expensify:main
from
callstack-internal:feature/reassure
Apr 23, 2025
Merged
Changes from 26 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
78f09d0
Update Reassure version and docs
fabioh8010 cfa3b88
Add empty perf test functions
fabioh8010 ff135bd
Move updateSnapshots to OnyxUtils
fabioh8010 9fed464
Implement several tests for Onyx.ts
fabioh8010 1cf0020
Merge remote-tracking branch 'origin/main' into feature/reassure
fabioh8010 56e358c
Add test for tupleGet
fabioh8010 215653e
Remove one-object tests
fabioh8010 a10cde2
Finish tests for Onyx.ts
fabioh8010 c97ac27
Minor fix
fabioh8010 32fe4b5
Update Reassure to 1.4.0-next.0
fabioh8010 8069e53
Use measureAsyncFunction in Onyx.perf-test.ts
fabioh8010 5a82e9d
Implement some OnyxUtils tests
fabioh8010 661af4e
Update Reassure to 1.4.0
fabioh8010 493c31a
Fix Onyx.perf-test.ts tests to correctly set setup/cleanup functions
fabioh8010 0d330a3
Finish tests for OnyxUtils
fabioh8010 a7d3c3b
Create variable for Object.keys(mockedReportActionsMap)
fabioh8010 1389439
Increase test timeout
fabioh8010 945d57f
Implement tests for OnyxCache
fabioh8010 fbd4196
Implement tests for OnyxConnectionManager
fabioh8010 4789b68
Merge branch 'main' into feature/reassure
fabioh8010 4a34c15
Fix types
fabioh8010 d98bc3d
Add gh-actions-build command
fabioh8010 b7f7730
Add compiled GH actions to .prettierignore
fabioh8010 d144844
Remove .vscode/settings.json
fabioh8010 c520dd4
Fix Reassure workflow
fabioh8010 ecd8610
Improve tests
fabioh8010 e345a47
Improve buildActions.sh script
fabioh8010 ec952eb
Improve Reassure workflow
fabioh8010 75a8397
Fix script
fabioh8010 b963633
Use script from E/App
fabioh8010 0bbd8fa
Test removing steps
fabioh8010 0c88d28
Add setupNode YML
fabioh8010 f82a5a7
Uses fetch-depth 0
fabioh8010 a6c9a94
Merge remote-tracking branch 'origin/main' into feature/reassure
fabioh8010 4bcd420
Use SHA
fabioh8010 9c7d14d
Install dependencies before Reassure
fabioh8010 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
File renamed without changes.
26,902 changes: 26,902 additions & 0 deletions
26,902
.github/actions/javascript/validateReassureOutput/index.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26,708 changes: 0 additions & 26,708 deletions
26,708
.github/actions/validateReassureOutput/index.js
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| #!/bin/bash | ||
| # | ||
| # Used to precompile all Github Action node.js scripts using ncc. | ||
| # This bundles them with their dependencies into a single executable node.js script. | ||
|
|
||
| # In order for this script to be safely run from anywhere, we cannot use the raw relative path '../actions'. | ||
| declare ACTIONS_DIR | ||
| ACTIONS_DIR="$(dirname "$(dirname "$0")")/actions/javascript" | ||
|
|
||
| # List of paths to all JS files that implement our GH Actions | ||
| declare -r GITHUB_ACTIONS=( | ||
| "$ACTIONS_DIR/validateReassureOutput/validateReassureOutput.ts" | ||
| ) | ||
|
|
||
| # This will be inserted at the top of all compiled files as a warning to devs. | ||
| declare -r NOTE_DONT_EDIT='/** | ||
| * NOTE: This is a compiled file. DO NOT directly edit this file. | ||
| */ | ||
| ' | ||
|
|
||
| # This stores all the process IDs of the ncc commands so they can run in parallel | ||
| declare ASYNC_BUILDS | ||
|
|
||
| for ((i=0; i < ${#GITHUB_ACTIONS[@]}; i++)); do | ||
| ACTION=${GITHUB_ACTIONS[$i]} | ||
| ACTION_DIR=$(dirname "$ACTION") | ||
|
|
||
| # Build the action in the background | ||
| npx ncc build --transpile-only --external encoding "$ACTION" -o "$ACTION_DIR" & | ||
| ASYNC_BUILDS[i]=$! | ||
| done | ||
|
|
||
| for ((i=0; i < ${#GITHUB_ACTIONS[@]}; i++)); do | ||
| ACTION=${GITHUB_ACTIONS[$i]} | ||
| ACTION_DIR=$(dirname "$ACTION") | ||
|
|
||
| # Wait for the background build to finish | ||
| wait "${ASYNC_BUILDS[$i]}" | ||
|
|
||
| # Prepend the warning note to the top of the compiled file | ||
| OUTPUT_FILE="$ACTION_DIR/index.js" | ||
| echo "$NOTE_DONT_EDIT$(cat "$OUTPUT_FILE")" > "$OUTPUT_FILE" | ||
| done |
|
fabioh8010 marked this conversation as resolved.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.