Commit graph

15 commits

Author SHA1 Message Date
Tomi Turtiainen 7d35ebc61e
ci: Ignore certain paths for e2e tests for PRs (no-changelog) (#10533)
Some checks are pending
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
2024-09-16 21:09:44 +03:00
कारतोफ्फेलस्क्रिप्ट™ c8ab9b1f84
ci: Automate more of the release process (no-changelog) (#10416) 2024-08-22 11:41:53 +02:00
कारतोफ्फेलस्क्रिप्ट™ e5514793f6
ci: Update GH actions (no-changelog) (#8453) 2024-01-26 11:26:30 +01:00
कारतोफ्फेलस्क्रिप्ट™ 32ddb4d04b
ci: Auto-cancel redundant CI jobs (no-changelog) (#7656)
This should help us reduce the load on CI workers to some extend.
2023-11-10 15:26:42 +01:00
Milorad FIlipović 1fb5166376
ci: Fix wrong ref in PR workflows which broke external builds (#7431)
Github issue / Community forum post (link here to close automatically):
#7423

This PR updates reference passed to the `checkout` action by the
`cy-pull-request.ym`. This should fix three existing issues:
- Failing unit tests for external pull requests
- Failing e2e tests for external PRs
- Passing empty `ref` to `lint` job which makes linter run on a wrong
branch
2023-10-13 10:44:26 +02:00
Iván Ovejero 6a7d1aedb1
ci: Prevent e2e failure on commented type review (no-changelog) (#6452) 2023-06-16 12:17:04 +02:00
कारतोफ्फेलस्क्रिप्ट™ 968b733fd6
ci: Add support for Node.js 18 (#5793)
* ci: Start supporting Node.js 18

Node.js 18 became the active LTS on 2022-10-25, and Node.js 16 went into maintenance mode.
https://github.com/nodejs/Release#release-schedule

We should also slowly deprecate node 16 support, [as support for it is ends much earlier now, due to support for openssl 1.1.1 ending](https://nodejs.org/en/blog/announcements/nodejs16-eol).

* Remove hashing algorithms that are not available in newer node.js/openssl

- RSA-MD4
- RSA-MDC2
- md4
- md4WithRSAEncryption
- mdc2
- mdc2WithRSA

* in e2e tests, resolve `localhost` to ipv4 instead of ipv6
2023-06-02 15:23:28 +02:00
OlegIvaniv 1626782880
ci: Debug e2e pipeline (no-changelog) (#6240)
* chore: Debug e2e pipeline

* Always fail e2e is PR status is not approved
2023-05-12 17:00:28 +02:00
OlegIvaniv d17d050a16
ci(editor): Do not run parallel jobs for a single spec (no-changelog) (#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
2023-04-21 13:31:39 +02:00
OlegIvaniv ea8c48ad37
ci: Skip e2e tests for community PRs (no-changelog) (#5971)
ci: Skip e2e tests for community PRs
2023-04-13 18:16:24 +02:00
OlegIvaniv 60d28fc761
ci: Prevent skipping of E2E fail job (no-changelog) (#5958)
* ci: Prevent skipping of E2E fail job (no-changelog)

* Set `continue-on-error: true` for e2e-reusable and add fail job

* Always run e2e checks

* Update 1-workflows.cy.ts

---------

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <netroy@users.noreply.github.com>
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
2023-04-12 14:13:42 +02:00
OlegIvaniv b1e1c5b306
ci(editor): Add final checking step after PR E2E run (no-changelog) (#5914)
* ci(editor): Add final checking step after PR E2E run (no-changelog)

* Fix spacing

* Fix markdown
2023-04-06 10:15:26 +02:00
OlegIvaniv 5ff3dea7bb
ci: Always run e2e tests on PR approval (no-changelog) (#5900)
ci: Always run e2e tests on PR approval
2023-04-04 12:29:52 +02:00
OlegIvaniv 0004dc7ee8
ci(editor): Run e2e tests in parallel and improve build caching (#5445)
* WIP: Cypress parallel CI run test

* Trigger action on branch push

* Change build artifacts path

* Make sure to checkout the repo for testing job

* Use Cypress action for installing

* Lock cypress action userd version

* Skip node install step since we're using cypress node16 container

* Let Cypress handle pnpm install

* Use setup-node action for caching pnpm

* Set CYPRESS_CACHE_FOLDER

* Set CYPRESS_CACHE_FOLDER

* Manually cache pnpm store

* Dont fix pnpm version

* Use caching action also in testing job

* Zip packages dist before uploading the artifacts and change caching key

* Use absolute build paths for zipping job

* Use zip command in action

* Use tar for zipping packages

* Debuggin directory ls

* Debugging caching of modules

* Attempt to fix permissions issue

* Porivde Cypress executable via `CYPRESS_RUN_BINARY`

* Cache /github/home

* Adjust caching keys

* Debug: search for cypress exec

* Debugging: List dirs

* Use pnpm install action to install node_modules

* Do not log /home/runner

* Use node_modules/.bin Cypress binary

* Use absolute path to nodue modules

* Run Cypress via custom command

* Try with patched cypress action

* Revert logging

* Manually specify cypress config file

* Use absolute paths

* Fix cypress config name

* Debug print cypress config

* Remove debugging, increase to 4 containers

* Increase amount of containers

* Add env-version matrix

* Replace node14 with node18 in testing matrix

* Remove debugging and add node 14

* Use just node14

* Use cypress:base and remove browser req

* Give more general timeouts

* Try with node16

* Change cache directive position

* Replace zip artifact upload with cache

* Cache full packages not just dist

* Test with variable inputs

* Add commit info message

* Remove wrongly commited code

* Allow WF API dispatch

* Try Chrome browser again for comparison

* Include Monaco in the build

* Make e2e workflow re-usable

* Comment out invalid reusable workflow args

* Use electron and add node 14 run

* Fix env arg

* Provide custom ci-build-id

* Refactor remaining e2e workflow to use reusable action

* Remove single matrix directive

* Refactor ci-pull-req

* Make lint job dependant on test jobs

* Disable debugging job

* Make containers dynamic

* Cleanup & install git for linting action

* Use regular buntu image for PR linting

* Debugging failing tests

* Remove fixed spec name

* Debug e2e env var

* Do not use realkeypress which crashes electron runner

* Debugging

* chore: remove console

* chore: remove console

* test: remove node 14 tests

* test: replace test branch with master

* test: use tests in current branch

* test: use relative path

* chore: clean up

* test: only trigger on approval

* ci: update test PR

* ci: use curr branch

* ci: only run 14 on schedule, not for slack command

* ci: only run test on approval

* ci: clean up branch, rename step

* ci: rename steps

* ci: clean up cancel

* ci: clean up env var

* ci: set var

* ci: use chromef

* ci: use electron

* chore: add console log

* chore: add console log

* ci: update to string

* ci: set all env options

* test: build

* ci: fix step issue

* Fix failing tests & upgrade to Cypress 12

* Allow WF dispatch of e2e reusable

* Fix wrong naming in e2e-tests workflow

* Redeploy

* Fix tests

* Fix NDV tests and remove skipping of webhooks execution tests

* Fix clipboard read command

* Fix execution failing tests

* Reset before each 15 and 3

* Fix flaky tests

* Cleanup and log envs

* Test fixes

* Default owner spec fixes

* Get rid of CYPRESS_RUN_ENV

* Increase amount of containers, cleanup and add mock for credentials test call

* Cleanup & fix PR tests unit tests

* Wait for WF to loade in sharing spec

* Do linting and unit tests first

* Use frozen lockfile

* Revert back ci pull request jobs order

* Refine credential input selector and move cy.waitForLoad to correct position in 15-scheduler spec

* test: build

* Wait for WF execution instead of arbitraty timeout in WF execution spec, change order of jobs for ci pull request

* Fix flaky 3-default owner spec and wait for execution list to load in 20-workflow-executions

* Use setup node action

* Remove caching for lint/unit tests

* Experiment with parallel test & lint on ci

* Provide cache key dynamically

* Run e2e in parallel on pr

* Only run node14 e2e on daily schedule

* Make sure to generate generate new ci-build-id on re-runs

* Remove debugging prints

* Address PR comments

* Rename custom onBeforeUnload handler

* Make sure 19-execution spec waits for wf to load properly before import fixtures

---------

Co-authored-by: Mutasem <mutdmour@gmail.com>
2023-03-02 16:50:21 +01:00
Mutasem Aldmour ce1f4efea7
test: Add e2e tests for PRs (#5176)
* test: add e2e tests for PRs

* test: update condition

* test: update job

* test: update with label
2023-01-17 13:44:19 +01:00