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

chore: configure chromatic snapshot tests#896

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
greyscaled merged 4 commits intomainfromvapurrmaid/444/chromatic
Apr 6, 2022

Conversation

greyscaled
Copy link
Contributor

Resolves:#444

Summary

This commit installs and configures a GH action for chromatic. Chromatic
is used for snapshot testing build-over-build.

Details

  • chore(site): install chromatic

  • chore(site): add chromatic package.json script

Suggested by the docs for convenience so that we can run chromatic like:

yarn run chromatic ...
  • chore: gitignore storybook builds

  • ci: configure chromatic

This action configures chromatic to run in CI on pushes to all branches.
By running this in CI, we get the following:

  • snapshot (build-over-build)
  • checks in our CI

The snapshots and build-over-build behavior are per branch; this way we
can work on a feature branch without worrying about changes being made
to mainline independently.

Impact

This is largely an internal workflow chore, it has no user/product-facing impact.

Resolves:#444Summary:This commit installs and configures a GH action for chromatic. Chromaticis used for snapshot testing build-over-build.Details:* chore(site): install chromatic* chore(site): add chromatic package.json scriptSuggested by the docs for convenience so that we can run chromatic like:```consoleyarn run chromatic ...```* chore: gitignore storybook builds* ci: configure chromaticThis action configures chromatic to run in CI on pushes to all branches.By running this in CI, we get the following:- snapshot (build-over-build)- checks in our CIThe snapshots and build-over-build behavior are per branch; this way wecan work on a feature branch without worrying about changes being madeto mainline independently.
@greyscaledgreyscaled requested a review froma team as acode ownerApril 6, 2022 20:41
@greyscaledgreyscaled self-assigned thisApr 6, 2022
@codecov
Copy link

codecovbot commentedApr 6, 2022
edited
Loading

Codecov Report

Merging#896 (3df9af1) intomain (fe23dcd) willincrease coverage by0.18%.
The diff coverage isn/a.

@@            Coverage Diff             @@##             main     #896      +/-   ##==========================================+ Coverage   65.77%   65.96%   +0.18%==========================================  Files         216      216                Lines       13734    13734                Branches      103      103              ==========================================+ Hits         9033     9059      +26+ Misses       3782     3761      -21+ Partials      919      914       -5
FlagCoverage Δ
unittest-go-65.58% <ø> (+0.03%)⬆️
unittest-go-macos-latest52.87% <ø> (-0.12%)⬇️
unittest-go-ubuntu-latest55.26% <ø> (-0.09%)⬇️
unittest-go-windows-202252.13% <ø> (+0.02%)⬆️
unittest-js58.87% <ø> (ø)
Impacted FilesCoverage Δ
cli/cliui/agent.go77.19% <0.00%> (-5.27%)⬇️
peer/channel.go83.04% <0.00%> (-2.93%)⬇️
provisioner/echo/serve.go56.80% <0.00%> (-2.41%)⬇️
peer/conn.go78.93% <0.00%> (-2.04%)⬇️
provisionerd/provisionerd.go80.17% <0.00%> (-0.59%)⬇️
peerbroker/proxy.go61.62% <0.00%> (+3.48%)⬆️
coderd/provisionerdaemons.go63.57% <0.00%> (+4.55%)⬆️
peerbroker/dial.go83.60% <0.00%> (+6.55%)⬆️
coderd/database/db.go68.96% <0.00%> (+13.79%)⬆️
pty/start_other.go88.23% <0.00%> (+23.52%)⬆️

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last updatefe23dcd...3df9af1. Read thecomment docs.

Copy link
Member

@kylecarbskylecarbs left a comment

Choose a reason for hiding this comment

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

I tried to fix this with the semantic config, but I'd prefer if we kept the syntax simple and stopped using(). I think a more explicit ending message helps reads interpret a consistent format.

I'd like to enforce this with CI, but I did a bad job haha!

Something like:chore: configure Chromatic snapshot tests

greyscaled reacted with thumbs up emoji
@greyscaledgreyscaled changed the titlechore(site): configure chromatic snapshot testschore: configure chromatic snapshot testsApr 6, 2022
@greyscaled
Copy link
ContributorAuthor

I tried to fix this with the semantic config, but I'd prefer if we kept the syntax simple and stopped using(). I think a more explicit ending message helps reads interpret a consistent format.

I'd like to enforce this with CI, but I did a bad job haha!

Something like:chore: configure Chromatic snapshot tests

Updated PR title, I'll ensure I squash with the same title!

Thanks for identifying this, I agree we can omit scopes for now.

@greyscaled
Copy link
ContributorAuthor

@presleyp and@BrunoQuaresma I'm merging this right now because it will help us with the current in-flight PRs that add storybook rather than later.

presleyp reacted with thumbs up emoji

@greyscaledgreyscaled merged commit5782879 intomainApr 6, 2022
@greyscaledgreyscaled deleted the vapurrmaid/444/chromatic branchApril 6, 2022 21:51
greyscaled added a commit that referenced this pull requestApr 6, 2022
This is an oversight from#896 . It turns out that because we use the GitHub integration with Chromatic, we don't need to wait for the results to be reported in the action - they get reported in the other checks created by Chromatic.This option was spit-out in a check:https://github.com/coder/coder/runs/5859427236?check_suite_focus=true#step:4:38Relates to#444
greyscaled added a commit that referenced this pull requestApr 6, 2022
This is an oversight from#896 . It turns out that because we use the GitHub integration with Chromatic, we don't need to wait for the results to be reported in the action - they get reported in the other checks created by Chromatic.This option was spit-out in a check:https://github.com/coder/coder/runs/5859427236?check_suite_focus=true#step:4:38Relates to#444
@missknissmisskniss added this to theV2 Beta milestoneMay 15, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@kylecarbskylecarbskylecarbs approved these changes

@deansheatherdeansheatherdeansheather approved these changes

@code-ashercode-ashercode-asher approved these changes

Assignees

@greyscaledgreyscaled

Labels
None yet
Projects
None yet
Milestone
V2 Beta
Development

Successfully merging this pull request may close these issues.

Test | UX | Storybook snapshot testing (build-over-build) for regression prevention
5 participants
@greyscaled@kylecarbs@deansheather@code-asher@misskniss

[8]ページ先頭

©2009-2025 Movatter.jp