Skip to content

Configure Loki to test open PRs in CI #7617

Closed as not planned
Closed as not planned

Description

@tkajtoch

Summary

Loki is a Visual Regression Testing software that integrates with Storybook. We need to run it in CI for every open PR to ensure no unwanted UI changes get merged to main.

Please follow the guide on Loki's website: https://loki.js.org/continuous-integration.html.

Due to the architecture of our current CI pipeline, Loki CI step should depend on the eui-pull-request-deploy-docs step since it depends on Storybook being deployed.

Acceptance Criteria

  • Loki should run as a separate CI step after Storybook is built and deployed
  • loki command should be executed with the --requireReference flag and CI=true environment variable set
  • failed tests should result in a failed step status and blocked PR merge

Activity

  1. tkajtoch commented on Apr 29, 2024

    @tkajtoch
    ContributorAuthor

    The blocking issue has just been merged

  2. tkajtoch commented on May 20, 2024

    @tkajtoch
    ContributorAuthor
  3. tkajtoch commented on May 28, 2024

    @tkajtoch
    ContributorAuthor

    I moved this to on hold since there's a race condition in Loki that seems to happen randomly when running in CI with Storybook 8.

    For more context: storybookjs/test-runner#442

  4. added
    Stale
    on Oct 4, 2024
  5. removed
    Stale
    on Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions