From 6326a3a9c1dd6b124c8f69bc24c811569a8886a4 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Thu, 18 May 2023 10:16:54 -0400 Subject: [PATCH] chore: remove ref from checkout workflow (#27490) Issue number: N/A --------- ## What is the current behavior? Screenshots in a branch are currently compared against the screenshots on `main`. While we ultimately need to compare against ground truths in `main`, this can cause tests to seemingly fail at random. For example, this branch was created based on https://github.com/ionic-team/ionic-framework/commit/eb2772c0ce623de70cce42b5d36e86cdbba7bafb. However, https://github.com/ionic-team/ionic-framework/commit/381de0b3d324805161232d8556fffd7022fcd84c was added to `main` after the first commit and has new screenshot diffs. I do not have the latest ground truths for the changed screenshots in this branch, so the screenshot tests failed in https://github.com/ionic-team/ionic-framework/actions/runs/4995702351/jobs/8947969061 even though I did not change any component implementations. ## What is the new behavior? - Test runs in CI now run against the ground truths available in the branch. When a commit is added to the merge queue, it will be tested against the latest `main` and any commits ahead of it in the queue. As a result, if there _is_ a conflict then the test run will fail at that point and the commit will be removed from the merge queue. ## Does this introduce a breaking change? - [ ] Yes - [x] No ## Other information --- .github/workflows/actions/build-core/action.yml | 3 --- .github/workflows/build.yml | 3 --- 2 files changed, 6 deletions(-) diff --git a/.github/workflows/actions/build-core/action.yml b/.github/workflows/actions/build-core/action.yml index 978f7a6782..a5cf54ada6 100644 --- a/.github/workflows/actions/build-core/action.yml +++ b/.github/workflows/actions/build-core/action.yml @@ -4,9 +4,6 @@ runs: using: 'composite' steps: - uses: actions/checkout@v3 - with: - # Checkout the latest commit in this branch - ref: ${{ github.event.pull_request.head.sha }} - uses: actions/setup-node@v3 with: node-version: 16.x diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3ca6263334..bbe12728ea 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,9 +17,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - with: - # Checkout the latest commit in this branch - ref: ${{ github.event.pull_request.head.sha }} - uses: ./.github/workflows/actions/build-core test-core-clean-build: