Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: generate golden files for notification templates#14537

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mtojek merged 24 commits intomainfrom40-email-reports
Sep 4, 2024

Conversation

mtojek
Copy link
Member

@mtojekmtojek commentedSep 3, 2024
edited
Loading

Related:coder/internal#40

Changes:

  • generate golden files for notification templates (works only withexport DB=ci, the simplest way is run./scripts/develop.sh in background)
  • extendMessagePayload withData map[string]any
  • add new template for the workspace failed build summary (will use it in the follow-up)

Note: I believe our notification templates need some love in favor of spelling/formatting consistency. I will follow-up on this.

@mtojekmtojek self-assigned thisSep 3, 2024
@mtojekmtojek changed the titlefeat: send reports with workspace build failuresfeat: generate golden files for notification templatesSep 4, 2024
@mtojekmtojek marked this pull request as ready for reviewSeptember 4, 2024 12:45
Copy link
Contributor

@dannykoppingdannykopping left a comment

Choose a reason for hiding this comment

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

Very excited for this! Thanks a mil.
Left a couple comments; there are some extraneous changes which don't belong in this PR which I think we should remove.

require.NoError(t, err, "failed to render notification body template")
require.NotEmpty(t, body, "body should not be empty")

partialName := strings.Join(strings.Split(t.Name(), "/")[1:], "_")
Copy link
Contributor

Choose a reason for hiding this comment

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

Feels odd to have this in a test which is not explicitly for this purpose.
Can we split this out, rather?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

ok, let's rely depend onstrings.Split

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, sorry you interpreted what I said literally 😆
I meant splitting out thefunctionality into another test.

Copy link
Member

@johnstcnjohnstcn left a comment

Choose a reason for hiding this comment

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

👍

@mtojekmtojek merged commite6d8f67 intomainSep 4, 2024
26 checks passed
@mtojekmtojek deleted the 40-email-reports branchSeptember 4, 2024 16:26
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsSep 4, 2024
Copy link
Contributor

@dannykoppingdannykopping left a comment

Choose a reason for hiding this comment

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

Post-merge approval 👍 thanks Marcin!!

@mtojekmtojek restored the 40-email-reports branchSeptember 5, 2024 12:12
@github-actionsgithub-actionsbot deleted the 40-email-reports branchMarch 5, 2025 00:07
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@dannykoppingdannykoppingdannykopping left review comments

@johnstcnjohnstcnjohnstcn approved these changes

Assignees

@mtojekmtojek

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@mtojek@dannykopping@johnstcn

[8]ページ先頭

©2009-2025 Movatter.jp