-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[No QA][TS migration] migrate workflow tests #38491
[No QA][TS migration] migrate workflow tests #38491
Conversation
@@ -27,19 +27,19 @@ const TESTBUILD__VALIDATEACTOR__SET_HAS_READY_TO_BUILD_LABEL_FLAG__FALSE__STEP_M | |||
const TESTBUILD__VALIDATEACTOR__TEAM_MEMBER_HAS_FLAG__STEP_MOCKS = [ | |||
TESTBUILD__VALIDATEACTOR__IS_TEAM_MEMBER__TRUE__STEP_MOCK, | |||
TESTBUILD__VALIDATEACTOR__SET_HAS_READY_TO_BUILD_LABEL_FLAG__TRUE__STEP_MOCK, | |||
] as const; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why remove as const? Those arrays aren't supposed to be modified, so that's fine in this file.
UPDATE: it's been causing erorrs, because it lacked satisfies StepIdentifier[]
@@ -11,7 +11,7 @@ const VALIDATEGITHUBACTIONS__VERIFY__STEP_MOCKS = [ | |||
VALIDATEGITHUBACTIONS__VERIFY__SETUP_NODE__STEP_MOCK, | |||
VALIDATEGITHUBACTIONS__VERIFY__VERIFY_JAVASCRIPT_ACTION_BUILDS__STEP_MOCK, | |||
VALIDATEGITHUBACTIONS__VERIFY__VALIDATE_ACTIONS_AND_WORKFLOWS__STEP_MOCK, | |||
] as const; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
VERIFYPODFILE__VERIFY__SETUP_NODE__STEP_MOCK, | ||
VERIFYPODFILE__VERIFY__VERIFY_PODFILE__STEP_MOCK, | ||
] as const; | ||
const VERIFYPODFILE__VERIFY__STEP_MOCKS = [VERIFYPODFILE__VERIFY__CHECKOUT__STEP_MOCK, VERIFYPODFILE__VERIFY__SETUP_NODE__STEP_MOCK, VERIFYPODFILE__VERIFY__VERIFY_PODFILE__STEP_MOCK]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
@@ -9,7 +9,7 @@ const VERIFYSIGNEDCOMMITS__VERIFYSIGNEDCOMMITS__VERIFY_SIGNED_COMMITS__STEP_MOCK | |||
['GITHUB_TOKEN'], | |||
[], | |||
); | |||
const VERIFYSIGNEDCOMMITS__VERIFYSIGNEDCOMMITS__STEP_MOCKS = [VERIFYSIGNEDCOMMITS__VERIFYSIGNEDCOMMITS__VERIFY_SIGNED_COMMITS__STEP_MOCK] as const; | |||
const VERIFYSIGNEDCOMMITS__VERIFYSIGNEDCOMMITS__STEP_MOCKS = [VERIFYSIGNEDCOMMITS__VERIFYSIGNEDCOMMITS__VERIFY_SIGNED_COMMITS__STEP_MOCK]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
workflow_tests/testBuild.test.ts
Outdated
const ExtendedAct = require('./utils/ExtendedAct').default; | ||
/* eslint-disable @typescript-eslint/naming-convention */ | ||
|
||
/* eslint-disable @typescript-eslint/require-await */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you need this?
const assertions = require('./assertions/validateGithubActionsAssertions'); | ||
const mocks = require('./mocks/validateGithubActionsMocks'); | ||
const ExtendedAct = require('./utils/ExtendedAct').default; | ||
/* eslint-disable @typescript-eslint/require-await */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
those functions didn't need async apparently, it didn't break the tests
workflow_tests/verifyPodfile.test.ts
Outdated
const assertions = require('./assertions/verifyPodfileAssertions'); | ||
const mocks = require('./mocks/verifyPodfileMocks'); | ||
const ExtendedAct = require('./utils/ExtendedAct').default; | ||
/* eslint-disable @typescript-eslint/require-await */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
const assertions = require('./assertions/verifySignedCommitsAssertions'); | ||
const mocks = require('./mocks/verifySignedCommitsMocks'); | ||
const ExtendedAct = require('./utils/ExtendedAct').default; | ||
/* eslint-disable @typescript-eslint/require-await */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added one small comment
workflow_tests/testBuild.test.ts
Outdated
const mocks = require('./mocks/testBuildMocks'); | ||
const ExtendedAct = require('./utils/ExtendedAct').default; | ||
/* eslint-disable @typescript-eslint/naming-convention */ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove new line here
@SzymczakJ Is this PR ready for cross-review? |
@fabioh8010 sorry, a PR that I based on was reverted 😅 . Just fixed conflicts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but please merge with main
and test if workflow tests are passing before opening (npm run workflow-test
)
@mollfpr bump! |
@mollfpr bump 😃 |
Reviewer Checklist
Screenshots/Videos |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay 🙏
We did not find an internal engineer to review this PR, trying to assign a random engineer to #32045 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
@@ -19,4 +19,4 @@ function assertVerifyJobExecuted(workflowResult: Step[], didExecute = true) { | |||
} | |||
|
|||
// eslint-disable-next-line import/prefer-default-export |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove this eslint now?
@@ -18,4 +18,4 @@ function assertVerifyJobExecuted(workflowResult: Step[], didExecute = true) { | |||
} | |||
|
|||
// eslint-disable-next-line import/prefer-default-export |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And all these pages too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
🚀 Deployed to staging by https://github.com/mountiny in version: 1.4.59-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.60-13 🚀
|
Details
Fixed Issues
$ #32045
$ #32044
$ #32043
$ #32041
$ #32042
PROPOSAL: N/A
Tests
npm run workflow-test
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop