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

ci(editor): Do not run parallel jobs for a single spec #6052

Merged
merged 4 commits into from
Apr 21, 2023

Conversation

OlegIvaniv
Copy link
Contributor

@OlegIvaniv OlegIvaniv commented Apr 21, 2023

When spec parameter is passed to e2e-reusable workflow we only want to run it on a single container and non-parallel. For this we need to conditionally set the container matrixes.
Additionally, we only want to post the "E2E Success" comment(it's a required check) after all the container specs were successful. To do this, we set output in the e2e-reusable job which will evaluate to true or false after all the container tests are done:

  check_testing_matrix:
    runs-on: ubuntu-latest
    needs: [testing]
    outputs:
      all_tests_passed: ${{ steps.all_tests_passed.outputs.result }}
    steps:
      - name: Check all tests passed
        id: all_tests_passed
        run: |
          success=true
          for status in ${{ needs.testing.result }}; do
            if [ $status != "success" ]; then
              success=false
              break
            fi
          done
          echo "::set-output name=result::$success"

This allows us to use the result to conditionally trigger the correct PR E2E status.

mutdmour
mutdmour previously approved these changes Apr 21, 2023
@cypress
Copy link

cypress bot commented Apr 21, 2023

Passing run #557 ↗︎

0 17 0 0 Flakiness 0

Details:

🌳 master 🖥️ base:16.18.1 🤖 schedule 🗃️ e2e/12-canvas.cy.ts
Project: n8n Commit: 11d8144051
Status: Passed Duration: 03:49 💡
Started: Apr 21, 2023 10:52 AM Ended: Apr 21, 2023 10:56 AM

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

mutdmour
mutdmour previously approved these changes Apr 21, 2023
@n8n-assistant n8n-assistant bot added the n8n team Authored by the n8n team label Apr 21, 2023
@github-actions
Copy link
Contributor

✅ All Cypress E2E specs passed

@codecov
Copy link

codecov bot commented Apr 21, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.01 🎉

Comparison is base (a74284b) 18.71% compared to head (70743e8) 18.72%.

❗ Current head 70743e8 differs from pull request most recent head 5abe543. Consider uploading reports for the commit 5abe543 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6052      +/-   ##
==========================================
+ Coverage   18.71%   18.72%   +0.01%     
==========================================
  Files        2582     2583       +1     
  Lines      116510   116526      +16     
  Branches    18178    18181       +3     
==========================================
+ Hits        21805    21821      +16     
  Misses      94067    94067              
  Partials      638      638              

see 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@github-actions
Copy link
Contributor

✅ All Cypress E2E specs passed

@github-actions
Copy link
Contributor

✅ All Cypress E2E specs passed

@OlegIvaniv OlegIvaniv merged commit d17d050 into master Apr 21, 2023
@OlegIvaniv OlegIvaniv deleted the individual_spec_e2e branch April 21, 2023 11:31
MiloradFilipovic added a commit that referenced this pull request Apr 24, 2023
* master: (47 commits)
  feat: Replace Vue.extend with defineComponent in editor-ui (no-changelog) (#6033)
  feat(core): Add migration to add property userActivated to user settings (no-changelog) (#5940)
  feat(core): Add license:info command (#6047)
  feat: Replace this.$refs.refName as Vue with InstanceType<T> (no-changelog) (#6050)
  refactor(editor): Turn titleChange mixin to composable (#6059)
  test: Add stickies tests (#5413)
  refactor: Patch to adjust `consistent-type-imports` (no-changelog) (#6057)
  fix(editor): Resolve expressions for grandparent nodes (#5859)
  ci(editor): Do not run parallel jobs for a single spec (no-changelog) (#6052)
  refactor(editor): Consolidate IN8nUISettings interface (#6055)
  refactor(core): Forbid raw enums (no-changelog)
  refactor(core): Sort variables files under variables folder (#6051)
  fix(core): Add breaking change record for domain and url matching (no-changelog) (#6048)
  feat(editor): Version control paywall (WIP) (#6030)
  feat(editor): Add disable template experiment (#5963)
  feat(core): Upgrade google-timezones-json to use the correct timezone for Sao Paulo (#6042)
  fix(Code Node): Update vm2 to address CVE-2023-30547 (#6039)
  docs: Add proprietary license text (no-changelog) (#6038)
  test(n8n Node): Unit tests (no-changelog)
  refactor: Accumulate `loadOptions` from all node versions to validate (no-changelog) (#6014)
  ...

# Conflicts:
#	packages/cli/src/Server.ts
sunilrr pushed a commit to fl-g6/qp-n8n that referenced this pull request Apr 24, 2023
…n8n-io#6052)

* ci(editor): Do not run parallel jobs for a single spec

* Fix syntax

* Only post e2e success comment on actual e2e success

* Set e2e-reusable output and check all container state
@janober
Copy link
Member

janober commented May 2, 2023

Got released with [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants