[No QA][TS migration] Migrate workflow_tests assertions to TypeScript#38664
Conversation
| // eslint-disable-next-line import/prefer-default-export | ||
| export {assertVerifySignedCommitsJobExecuted}; |
There was a problem hiding this comment.
some of the files in this directory are pre-generated, so to keep the interface uniform I'd rather keep it this way instead of differentiating between export default and export {...}
| }; | ||
|
|
||
| const assertionsExportsTemplate = (jobAssertions: string[]): string => { | ||
| const assertionsString = jobAssertions.map((assertion) => ` ${assertion}: ${assertion}`).join(',\n'); |
There was a problem hiding this comment.
Can you explain reasoning behind this change?
There was a problem hiding this comment.
It was doubling the names in exports, which resulted in errors inside the generated files. Added comment
|
PR Author checklist is failing, you need to click on one more checkbox @BrtqKr |
| const steps = [ | ||
| createStepAssertion('Checkout', true, null, 'CHECKLIST', 'Checkout'), | ||
| createStepAssertion('authorChecklist.ts', true, null, 'CHECKLIST', 'Running authorChecklist.ts', [{key: 'GITHUB_TOKEN', value: '***'}], []), | ||
| ]; |
There was a problem hiding this comment.
| ]; | |
| ] as const; |
| }; | ||
| const assertCreateNewVersionJobExecuted = (workflowResult, semverLevel = 'BUILD', didExecute = true, isSuccessful = true) => { | ||
| } | ||
| function assertCreateNewVersionJobExecuted(workflowResult: Step[], semverLevel = 'BUILD', didExecute = true, isSuccessful = true) { |
There was a problem hiding this comment.
| function assertCreateNewVersionJobExecuted(workflowResult: Step[], semverLevel = 'BUILD', didExecute = true, isSuccessful = true) { | |
| function assertCreateNewVersionJobExecuted(workflowResult: Step[], semverLevel = 'BUILD', didExecute = true, isSuccessful = true) { |
| const result = await act | ||
| .runEvent('[EVENT]', { | ||
| workflowFile: path.join(repoPath, '.github', 'workflows'), | ||
| workflowFile: path.join(repoPath, '.github', 'workflows', '${workflowName}.yml'), |
There was a problem hiding this comment.
Because otherwise, it was generating a template that wouldn't work from the beginning. This script has been created as a helper for creating new workflow templates, but wasn't well maintained, I've adjusted this to the typescript, with a couple of improvements.
|
Also @BrtqKr let's change the PR title to |
|
@jjcoffee kind bump 🙂 |
|
Also @BrtqKr we got conflicts here |
|
@fabioh8010 Waiting for this to come out of draft 🙏 |
|
@jjcoffee sorry for turning it back into a draft, but some of the tests stopped working after merging main, now it should be fine 🙏 |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #32060 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Details
Fixed Issues
$ #32060
PROPOSAL:
Tests
npm run workflow-testOffline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop