-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
470 changed files
with
8,183 additions
and
7,723 deletions.
There are no files selected for viewing
This file contains 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 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 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 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,25 @@ | ||
--- | ||
name: Open an internal issue for a backend fix | ||
about: Use this template to report a backend issue that an internal Expensify employee needs to fix | ||
labels: Hot Pick, Daily, Internal, AutoAssignerNewDotQuality | ||
--- | ||
|
||
<!-- Please link the original GH where the problem was reported --> | ||
**Original GH:** | ||
|
||
## Action Performed: | ||
Break down in numbered steps | ||
|
||
## Expected Result: | ||
Describe what you think the backend _SHOULD_ have done | ||
|
||
## Actual Result: | ||
Describe what the backend _ACTUALLY_ did | ||
|
||
## Screenshots/Videos | ||
|
||
<details> | ||
<summary>Add any screenshot/video evidence</summary> | ||
|
||
|
||
</details> |
This file contains 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 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 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 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 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 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 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 |
---|---|---|
|
@@ -43,6 +43,7 @@ jobs: | |
previous_merge=$(git rev-list --merges HEAD~1 | head -n 1) | ||
else | ||
# On a feature branch, find the common ancestor of the current branch and main | ||
git fetch origin main:main | ||
previous_merge=$(git merge-base HEAD main) | ||
fi | ||
echo "$previous_merge" | ||
|
@@ -60,7 +61,7 @@ jobs: | |
id: getDeltaRef | ||
run: | | ||
if [ '${{ steps.getPullRequestDetails.outputs.IS_MERGED }}' == 'true' ]; then | ||
echo "DELTA_REF=${{ steps.getPullRequestDetails.outputs.HEAD_COMMIT_SHA }}" >> "$GITHUB_OUTPUT" | ||
echo "DELTA_REF=${{ steps.getPullRequestDetails.outputs.MERGE_COMMIT_SHA }}" >> "$GITHUB_OUTPUT" | ||
else | ||
# Set dummy git credentials | ||
git config --global user.email "[email protected]" | ||
|
@@ -157,26 +158,28 @@ jobs: | |
aws-region: us-west-2 | ||
|
||
- name: Schedule AWS Device Farm test run on main branch | ||
uses: realm/aws-devicefarm/test-application@7b9a91236c456c97e28d384c9e476035d5ea686b | ||
uses: Wandalen/[email protected] | ||
id: schedule-awsdf-main | ||
with: | ||
name: App E2E Performance Regression Tests | ||
project_arn: ${{ secrets.AWS_PROJECT_ARN }} | ||
device_pool_arn: ${{ secrets.AWS_DEVICE_POOL_ARN }} | ||
app_file: zip/app-e2eRelease.apk | ||
app_type: ANDROID_APP | ||
test_type: APPIUM_NODE | ||
test_package_file: App.zip | ||
test_package_type: APPIUM_NODE_TEST_PACKAGE | ||
test_spec_file: tests/e2e/TestSpec.yml | ||
test_spec_type: APPIUM_NODE_TEST_SPEC | ||
remote_src: false | ||
file_artifacts: | | ||
Customer Artifacts.zip | ||
Test spec output.txt | ||
log_artifacts: debug.log | ||
cleanup: true | ||
timeout: 7200 | ||
action: realm/aws-devicefarm/test-application@7b9a91236c456c97e28d384c9e476035d5ea686b | ||
with: | | ||
name: App E2E Performance Regression Tests | ||
project_arn: ${{ secrets.AWS_PROJECT_ARN }} | ||
device_pool_arn: ${{ secrets.AWS_DEVICE_POOL_ARN }} | ||
app_file: zip/app-e2eRelease.apk | ||
app_type: ANDROID_APP | ||
test_type: APPIUM_NODE | ||
test_package_file: App.zip | ||
test_package_type: APPIUM_NODE_TEST_PACKAGE | ||
test_spec_file: tests/e2e/TestSpec.yml | ||
test_spec_type: APPIUM_NODE_TEST_SPEC | ||
remote_src: false | ||
file_artifacts: | | ||
Customer Artifacts.zip | ||
Test spec output.txt | ||
log_artifacts: debug.log | ||
cleanup: true | ||
timeout: 7200 | ||
- name: Print logs if run failed | ||
if: failure() | ||
|
@@ -229,14 +232,44 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
|
||
- name: Check if test has skipped tests | ||
id: checkIfSkippedTestsDetected | ||
run: | | ||
if grep -q '⚠️' "./Host_Machine_Files/\$WORKING_DIRECTORY/output.md"; then | ||
# Create an output to the GH action that the tests were skipped: | ||
echo "skippedTestsDetected=true" >> "$GITHUB_OUTPUT" | ||
else | ||
echo "skippedTestsDetected=false" >> "$GITHUB_OUTPUT" | ||
echo '✅ no skipped tests detected' | ||
fi | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
|
||
- name: 'Announce skipped tests in Slack' | ||
if: ${{ steps.checkIfSkippedTestsDetected.outputs.skippedTestsDetected == 'true' }} | ||
uses: 8398a7/action-slack@v3 | ||
with: | ||
status: custom | ||
custom_payload: | | ||
{ | ||
channel: '#e2e-announce', | ||
attachments: [{ | ||
color: 'danger', | ||
text: `⚠️ ${process.env.AS_REPO} Some of E2E tests were skipped on <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.workflow }}> workflow ⚠️`, | ||
}] | ||
} | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} | ||
|
||
- name: 'Announce regression in Slack' | ||
if: ${{ steps.checkIfRegressionDetected.outputs.performanceRegressionDetected == 'true' }} | ||
uses: 8398a7/action-slack@v3 | ||
with: | ||
status: custom | ||
custom_payload: | | ||
{ | ||
channel: '#newdot-quality', | ||
channel: '#quality', | ||
attachments: [{ | ||
color: 'danger', | ||
text: `🔴 Performance regression detected in PR ${{ inputs.PR_NUMBER }}\nDetected in <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.workflow }}> workflow.`, | ||
|
Oops, something went wrong.