Skip to content
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: Added build summary with list of packages that were pushed #253

Merged
merged 8 commits into from
Jul 14, 2022

Conversation

hnrkndrssn
Copy link
Contributor

@hnrkndrssn hnrkndrssn commented Jul 14, 2022

image

@hnrkndrssn hnrkndrssn requested a review from a team July 14, 2022 01:20
@hnrkndrssn hnrkndrssn self-assigned this Jul 14, 2022
Copy link
Contributor

@slewis74 slewis74 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So beautiful

@hnrkndrssn hnrkndrssn merged commit 5409834 into main Jul 14, 2022
@hnrkndrssn hnrkndrssn deleted the henrik/build-summary branch July 14, 2022 01:34
Copy link
Contributor

@borland borland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

async pushPackage(): Promise<void> {
info('🔣 Parsing inputs...')
const cliLaunchConfiguration = this.generateLaunchConfig()

const options: ExecOptions = {
listeners: {
stdline: input => this.stdline(input)
stdline: async input => await this.stdline(input)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ExecOptions.stdline expects a void function, so it will ignore the Promise here and won't await it.

In practice it's probably OK, but worst-case scenario is that perhaps lines could get written out of order because it will call stdline in quick succession while previous async tasks are floating in the background?

The async part seems to be because you used the GitHub actions markdown summary builder thing.
Suggest keeping stdline as a sync function, and just collect all the stuff into an array, and call createBuildSummary later on after the process has completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants