-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
feat: add new config prop populateGitInfo #34329
feat: add new config prop populateGitInfo #34329
Conversation
This comment has been minimized.
This comment has been minimized.
@yury-s thanks for the review.
|
This comment has been minimized.
This comment has been minimized.
* since: v1.50 | ||
- type: ?<[boolean]> | ||
|
||
Whether to populate [`property: TestConfig.metadata`] with Git info. |
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.
Maybe also mention that the metadata will automatically appear in the html report, otherwise it's not clear what the use of the option?
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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.
Let's either update the new ui-mode*
test or revert it completely, otherwise looks good.
This comment has been minimized.
This comment has been minimized.
Hi @yury-s ! I've tried to update ui mode test to check git info in metadata, and I'm a bit stuck.
PR is updated. Could you please assist on the issues? |
This comment has been minimized.
This comment has been minimized.
@yury-s I've fixed the assertion, used output panel of the ui mode. But point 2. is still relevant - metadata is not populated in ui mode for some reason: I've logged GitCommitInfoPlugin output, it definitely populates config.metadata: Object.assign(config.metadata, info);
+ console.log('Git commit info - config.metadata:', config.metadata); Could you point the direction, how to fix it? |
This comment has been minimized.
This comment has been minimized.
c00e781 should fix it. In UI mode we run the plugins once in |
This comment has been minimized.
This comment has been minimized.
Test results for "tests 1"3 failed 14 flaky37718 passed, 649 skipped Merge workflow run. |
Yes, now it works! Thank you! |
Fixes #34094