49 Commits

Author SHA1 Message Date
Ivan Kuchin ad0190de62 output flaky tests in summary and status 2026-06-10 12:18:11 +02:00
Ivan Kuchin d9e6fafc7a retry failing feature specs if there are <= 10 2026-06-03 20:25:38 +02:00
Dombi Attila a57de7a6da Correct spec name typos, filter out non spec files from CI spec runs
Update the spec running globs to include specs in the root spec folder.
2026-05-05 22:40:15 +03:00
Judith Roth 3b72cce9ce Adapt tests for new Hocuspocus repo location 2026-02-23 13:59:45 +01:00
Judith Roth dbd810110a [#70175] Add Hocuspocus to CI 2026-02-19 15:24:55 +01:00
Oliver Günther b36272cfd7 Remove npm run build:fast after esbuild introduction 2025-08-20 14:22:11 +02:00
Christophe Bliard 48fd44a74d Print more information about background processes 2025-06-26 18:21:21 +02:00
Dombi Attila 173879125a Let bundler take the version from the Gemfile.lock 2025-02-10 15:21:48 +02:00
Oliver Günther b151e8017d Use explicit fast build without source maps and minify for testing and PullPreview (#16563)
Use explicit fast build without source maps and minify for testing and PP
2024-08-30 10:41:53 +02:00
Ivan Kuchin a9121bd10c remove unneeded shopts 2024-07-26 17:28:35 +02:00
Ivan Kuchin e8f49d7ab1 use curly braces expansion for listing all spec directories 2024-07-26 17:28:23 +02:00
Ivan Kuchin df349d36d1 use singular asterisk for finding modules specs 2024-07-26 17:13:01 +02:00
Christophe Bliard 90e644e7dc Merge branch 'release/13.1' into dev 2023-12-18 14:27:38 +01:00
Christophe Bliard cd5651706b Fix path to selenium-manager 2023-12-15 17:51:28 +01:00
Dombi Attila 002b541194 Install bundler in the CI docker script right before usage. 2023-12-15 16:26:06 +02:00
Cyril Rohr 32ce2600af Smaller CI image and parallelise setup commands (#14227) 2023-11-23 15:07:17 +01:00
Cyril Rohr dfc5448d72 Save/Load CI docker image from cache (#14211) 2023-11-22 17:41:55 +01:00
Cyril Rohr 6dea256cbe Fix postgres config 2023-11-06 17:38:33 +01:00
Cyril Rohr 8ff5d7117a Use fast build for CI assets 2023-11-06 17:38:33 +01:00
Cyril Rohr 78a0cf052a Improve CI cache support (#14022)
Improve CI cache support
2023-10-27 18:30:14 +02:00
Christophe Bliard c86e0aaf3a Trigger download of chrome/chromedriver binaries in CI
When a new chrome or chromedriver version is available, the CI build
updates it. In fact, each of the 32 rspec processes will try to download
the new version and then run chromedriver. This leads to problems as the
chromedriver binary being run may still be downloaded by another rspec
process. This leads to the following error: "Text file busy".

This commit adds a step to the CI build that downloads the binaries
before the tests are run.
2023-08-24 11:58:48 +02:00
Oliver Günther a5f27e5e47 Remove webdrivers once more, let selenium handle chromedriver 2023-08-22 15:38:12 +02:00
Klaus Zanders bd7b2818b0 Revert "Merge pull request #13312 from opf/dependabot/bundler/dev/selenium-webdriver-4.11.0"
This reverts commit bad9b3f496, reversing
changes made to 19c13199b2.
2023-08-01 16:22:14 +02:00
Klaus Zanders e699825f7a Remove webdrivers gem 2023-08-01 08:17:29 +02:00
Klaus Zanders a429407323 Revert "Merge pull request #13190 from opf/remove-webdrivers"
This reverts commit 0f0088375e, reversing
changes made to 0b8441e154.
2023-07-25 16:59:22 +02:00
Klaus Zanders 7e4f2d82a1 Remove webdrivers tasks from CI runs 2023-07-20 11:24:02 +02:00
Pavel Balashou be1db39b7b Enable globstar and extglob for run functions. 2023-07-05 15:17:10 +02:00
Pavel Balashou 4224c2d179 Add modules spes to be run by ci. 2023-07-05 15:17:10 +02:00
Cyril Rohr 4fe2a73087 Speedup assets precompilation for CI (#12900) 2023-06-19 12:14:44 +02:00
Cyril Rohr b8d1f2a091 Use multi-stage dockerfile to parallelize builds (#12890)
* Use multi-stage dockerfile to parallelize builds
2023-06-16 12:37:43 +02:00
Cyril Rohr dd36b5c381 Enable on-demand test runners with scaleway (#12795)
* Use dockerfile build cache
* Improve entrypoint to speed up test setup
* Fix asset helper
* Disable angular cache until webpack fixes dangling caches. Also experiment with max-old-space-size
* No need for maintaining test schema under CI. Saves ~30s of db:test:prepare stuff
* DOCKER_BUILDKIT: 1 for AWS
* turbo_tests verbose
* PostgreSQL conf for CI
* Add comment on how to switch back to AWS self-hosted runners
2023-06-15 21:04:54 +02:00
Christophe Bliard 47f1b5eca7 Log rspec seed and files info with turbo_tests 2023-06-14 17:22:00 +02:00
Cyril Rohr ff91def680 Add CI benchmark script
Fix entrypoint

fix
2023-05-25 21:36:17 +02:00
Cyril Rohr 846cb76235 Reduce verbosity of CI 2023-05-25 21:19:01 +02:00
Cyril Rohr 15405cb90f Use turbo tests for unit tests as well 2023-05-25 21:18:58 +02:00
Cyril Rohr fe98be8a3c Cleanup CI entrypoint 2023-05-25 21:17:31 +02:00
Cyril Rohr fa61bcbad9 Use turbo_tests for better test splitting 2023-05-25 21:17:31 +02:00
ulferts ca361b017b remove legacy specs completely 2022-10-17 14:23:39 +02:00
Christophe Bliard 305a3f7c30 Use different db for specs and legacy specs on CI
Legacy specs is using fixtures, which leaves some data in the database
and leads to errors if the database is used again without having
truncated the tables.

Using different databases for legacy and parallel test ensures we run
all tests with a blank state.
2022-10-06 14:06:39 +02:00
Oliver Günther 045b3f16c1 Add zeitwerk:check action runner 2022-02-03 20:11:35 +01:00
Cyril Rohr 588a526531 Make postgres13 the default version when installing OpenProject (#9088)
* Reexport PGVERSION and PGBIN according to existing install
* Display message if PostgreSQL version deprecated
* Do not launch postgres if using external URI
* Add script to auto-upgrade postgres database for all-in-one dockerfile
* Add documentation for packages and all-in-one docker image
2021-06-11 10:05:21 +02:00
Philipp Tessenow a46de71009 [#36204] Add new GitHub plugin tab enabling users to copy git actions (#9027)
* Let GitHub integration show changes in a separate tab

* added new github integration icons to icon font
* add tab content:  working tab-header and copy-menu

* modernise github_integrations ruby code

* refactored some code to be more modern ruby (if wrote most of it 7
  years ago and couldn't look at some parts without squinting too much)
* make some intended-to-be-private module methods actually private
* fixed all rubocop errors in the /modules/github_integration
* re-organized tests a little
* gave our rubocop.yml some RSpec-related defaults -- happy to discuss
  these, but I think we can live with these as a good starting point

👆 all without actually (intentionally) changing the behaviour

* removed dead angular template code

* codeclimate found more things than rubocop :)

* removed create-pr-button since we decided against implementing that feature

* added missing translations

* properly cache the github related part of the wp api

* lower case pull requests in translations

* fix specs
2021-04-07 09:34:56 +02:00
Benjamin Bädorf beb4e6ba50 Refactor/user avatar to principal (#9069)
* Fix some ium stylings

* Extend create service to also test with empty names

* Add PrincipalLike type to pass around non-created placeholder refs

* Add icon-context

* Move principal rendering to its own module

* Fix emit create new placeholder to principals

* Revert op-principal for now

* Add memberships form API to properly post

* Fix types for returned principals

* Move untilDestroyed in role

* Filter input if not string in role-search

* Pass correct inputs to success component

* Return principal after saving membership

* Fix small stuff around  the ium

* Fix the way HalResources are selected and passed

* Move principal module to be exported by common

* Disable quotemark in tslint until eslint is enabled

* Fix image path in success

* Adapt modal to run all steps in one within the modal helper component

* Several fixes to modals

* Fix ium success component styles,
* Registration modal y-overflow
* Add SMTP parameters to .env.example

* Add disabled option to op-option-list, disabled placeholder users for non-ee instances

* Add correct ee link to placeholder user option

* Fix build

* Removed unused sass files

* Fix principal search not found indicator, added placeholder add image

* Fix enterprise edition url, use dirty instead of touched check

* Use backend class names for frontend principal types

* Fix duplicate import and principal type usage

* Also disable banners if with_ee is present in test

* Extend specs for placeholders

* Fix disabled attribute

* Extend spec WIP

* Improved inline-validation styles, fixed more PrincipalType usages

* Add group happy path test, fix more PrincipalType usage

* Fix a translation

* Revert line deletion

* Rewrite same spec examples into shared examples

* Fix name of shared example

* Dont run assets:clean to remove angular assets

* Output whether assets are there at all

* Update user-avatar usages to principal

* Fix some op-principal usages

* Fix principal typing

* Remove ls of non-existent directory

* Rename more user-avatar instances

* Avatars now render correctly

* Fix an op-principal instance, default to avatar class for avatars

* Always add principal id to default principal tag

* Small fixes to op-principal

* Fix multiline user display

* Dirty fix for capybara click events

* Update avatar sizing

* Fixed some specs

* Fix unit specs

* Added op-link styles

* Fix add placeholder image link

* Remove byebug debugger statements

Co-authored-by: Oliver Günther <mail@oliverguenther.de>
2021-03-16 21:53:47 +01:00
Cyril Rohr cd371fe093 One off hosted runners (#9016)
* On-demand hosted action runner, and use runtime logs to improve test speed
* Add support for uploading capybara screenshots to S3
2021-02-19 14:00:14 +01:00
Oliver Günther b855b27ba6 Use SummaryLogger 2021-02-04 20:27:44 +01:00
Oliver Günther 6aeff72412 Migrate and dump on first process, load schema on rest
This will be faster than running parallel:prepare which will call `db:setup`
and in turn execute seeds on all processes
2021-02-03 07:58:00 +01:00
Cyril Rohr f9de19fe51 Fix CI entrypoint 2021-02-02 20:56:35 +00:00
Cyril Rohr 130202a68c Display error summary if any test errors 2021-02-02 20:54:59 +00:00
Cyril Rohr b4086b2968 Standalone CI docker container (#8943) 2021-02-02 15:33:33 +01:00