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

chore(ci): fix stencil nightly job dependencies #27298

Merged
merged 1 commit into from
Apr 27, 2023

Conversation

rwaskiewicz
Copy link
Member

@rwaskiewicz rwaskiewicz commented Apr 27, 2023

Issue number: N/A


What is the current behavior?

The Stencil nightly job fails with the following error:

The workflow is not valid. .github/workflows/stencil-nightly.yml (Line: 101, Col: 13): Job 'test-core-screenshot-legacy' depends on unknown job 'build-core'. 

.github/workflows/stencil-nightly.yml (Line: 122, Col: 12): Job 'verify-screenshots-legacy' depends on job 'test-core-screenshot-legacy' which creates a cycle in the dependency graph.

This started to fail last night. I believe this is a result of #27228, specifically this line 4fe8de7#diff-2f087e8fac034d51c50fc9350e10ceb4034298c16dd0d4f414f79d88ebb71aa0R101

What is the new behavior?

this commit updates the job dependency hierarchy for test-core-screenshot-legacy from build-core to
build-core-with-stencil-nightly. the former is not a valid job name for the stencil-nightly workflow, likely just a copy/paste error

Does this introduce a breaking change?

  • Yes
  • No

Other information

To test this, I was able to kick off a version of this job with this branch: https://github.com/ionic-team/ionic-framework/actions/runs/4819613134 and saw the new/legacy screenshot tests running:
Screenshot 2023-04-27 at 8 29 14 AM

this commit updates the job dependency hierarchy for
test-core-screenshot-legacy from `build-core` to
`build-core-with-stencil-nightly`. the former is not a valid job name
for the `stencil-nightly` workflow, likely just a copy/paste error
@stackblitz
Copy link

stackblitz bot commented Apr 27, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@rwaskiewicz rwaskiewicz changed the title chore(ci): fix stencil nightly job chore(ci): fix stencil nightly job dependencies Apr 27, 2023
@@ -98,7 +98,7 @@ jobs:
# to be the length of the shard array.
shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
totalShards: [20]
needs: [build-core]
needs: [build-core-with-stencil-nightly]
Copy link
Member Author

Choose a reason for hiding this comment

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

Alternatively, we could rename the job itself to build-core. The original intent was that when looking at the 'main' CI workflow for Framework, I found myself getting confused (was I looking at main.yml, or stencil-nightly.yml?). This served as an easier way to differentiate b/w the two. LMK if you'd prefer to make the s/build-core-with-stencil-nightly/build-core/ change

@rwaskiewicz rwaskiewicz marked this pull request as ready for review April 27, 2023 12:30
@rwaskiewicz rwaskiewicz requested a review from a team as a code owner April 27, 2023 12:30
@rwaskiewicz rwaskiewicz added this pull request to the merge queue Apr 27, 2023
Merged via the queue into main with commit ab992b0 Apr 27, 2023
@rwaskiewicz rwaskiewicz deleted the rwaskiewicz/fix-stencil-nightly branch April 27, 2023 12:56
rwaskiewicz added a commit that referenced this pull request Apr 28, 2023
Issue number: #

---------

<!-- Please refer to our contributing documentation for any questions on
submitting a pull request, or let us know here if you need any help:
https://ionicframework.com/docs/building/contributing -->

<!-- Some docs updates need to be made in the `ionic-docs` repo, in a
separate PR. See
https://github.com/ionic-team/ionic-framework/blob/main/.github/CONTRIBUTING.md#modifying-documentation
for details. -->

<!-- Please do not submit updates to dependencies unless it fixes an
issue. -->

<!-- Please try to limit your pull request to one type (bugfix, feature,
etc). Submit multiple pull requests if needed. -->

## What is the current behavior?
<!-- Please describe the current behavior that you are modifying. -->

the legacy screenshot test verification step can fail due to improper
configuration
## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->

this commit updates the name of the legacy screenshot test so that we
properly gate on verifying that the legacy tests passed

## Does this introduce a breaking change?

- [ ] Yes
- [x] No

<!-- If this introduces a breaking change, please describe the impact
and migration path for existing applications below. -->


## Other information

I tested this by kicking off the workflow -
https://github.com/ionic-team/ionic-framework/actions/runs/4830665737

Yesterday, I [put up a
PR](#27298) that did
the same. However, I failed to verify it succeeded (since we don't gate
on Stencil nightly) - only that it started (since that was the point of
failure yesterday).

Today, I have verified that it passes all the way through
![Screenshot 2023-04-28 at 9 12 25
AM](https://user-images.githubusercontent.com/1930213/235156949-67aa1b35-d141-4951-9f2c-c0722f11a520.png)

<!-- Any other information that is important to this PR such as
screenshots of how the component looks before and after the change. -->
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.

2 participants