40 Commits

Author SHA1 Message Date
Oliver Günther 5e0ea7fe4e Add missing secret key base for testing 2026-05-13 08:00:11 +02:00
Cyril Rohr d482f1f708 Fix docker bloat (#21948)
* Refactor Docker build/runtime stages for slimmer images

Split runtime and build dependencies into separate stages and build the app in a dedicated stage before runtime copy.

Add a slim prune stage that removes non-runtime source trees, source maps, duplicate enterprise source videos, module test/doc folders, and extra vendored gem artifacts.

This ensures bytes are removed before the final slim copy, so layer size actually decreases while keeping runtime behavior intact.

* Add target-specific Docker image validation in CI

Introduce script/ci/docker_validate_image.sh with validations for slim, slim-bim, and all-in-one images.

Checks include runtime binary presence/absence, plugin asset/module integrity, slim pruning expectations, BIM tooling, and all-in-one API startup/embedded services.

Update docker workflow to run the validator for every matrix target before push.

* fix

* Generate YAML-safe auto Hocuspocus secret

All-in-one startup auto-generates OPENPROJECT_COLLABORATIVE__EDITING__HOCUSPOCUS__SECRET in the entrypoint.

Environment overrides are parsed through YAML, so leading punctuation in the previous charset (e.g. %) could trigger Psych parsing errors and abort boot.

Restrict generated secret characters to alphanumeric to keep parsing stable while preserving high entropy.

* Fix all-in-one hocuspocus runtime and validation

* Fix all-in-one memcached startup handover
2026-02-11 10:40:54 +01:00
Christophe Bliard c071923d92 Limit to first url 2024-09-23 14:32:12 +02:00
Oliver Günther dadb0c9a5c exit 0 on no URL found 2024-09-10 10:59:36 +02:00
Oliver Günther a742945e95 Fall back empty versions to "not set"
This way they will trigger the warning comment
2024-09-10 09:55:34 +02:00
Oliver Günther b0103d5085 Add version check when needs review label is added 2024-09-09 20:26:26 +02:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
Christophe Bliard c795874f7f Update copyright year for 2024
command used: `rg -l 'Copyright \(C\) 2012-202\d the OpenProject' | xargs -n 100 sed -i -r 's/Copyright \(C\) 2012-202. the OpenProject/Copyright (C) 2012-2024 the OpenProject/'`
2024-01-02 16:23:54 +01: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
Oliver Günther e08203c8c4 Remove pandoc and option to migrate from textile 2023-07-31 19:22:16 +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
Christophe Bliard 21a696ef9b Update copyright information for 2023 2022-12-30 15:51:26 +01:00
Christophe Bliard a33524ef6d remove ruby magic comment for utf-8
ruby interprets source encoding as utf-8 since 2.0.0, making magic comment redundant and useless
2022-03-10 19:36:58 +01:00
Oliver Günther 425b57b007 Replace dangerfile with eslint plugins
We currently use dangerfile only for jasmine fdescribe/fit tests and
Angular onPush checks.

Both can be replaced by eslint plugins.
2021-07-20 14:14:28 +02:00
Cyril Rohr b4086b2968 Standalone CI docker container (#8943) 2021-02-02 15:33:33 +01:00
ulferts c383c5821f Fix/remove cucumber (#8847)
* replace very last cuke with spec

* remove cuke support files

* remove cucumber gems

* remove traces of cucumber

* remove no longer required route

* forcefully clear parallel_test features task

* attempt removal of binstub

* attempt to stabilize spec
2020-11-16 09:20:51 +00:00
Benjamin Bädorf 5f45ee07ab Move development docker-compose file to the main directory (#8798)
* Move development docker-compose file to the main directory

This requires us to move some other files around, like the pullpreview and example docker-compose file for production
setups. This commit also does some housekeeping, like removing some old files and deduping configuration.

* Updated to selenium grid

* Fix in-Docker Selenium tests

The Selenium tests now run inside a Docker Chrome Container. Backwards compatability with non-docker setups is not
guaranteed, though it should not be hard to implement with a couple of small fixes.

* Updated docker development documentation

* Improved test timings, changed the documentation

* Updated docker testing again

* Run npm in the frontend directory

* Really run npm in the frontend directory

* Also run npm in frontend when setting up travis cache

* Change directory for one command only

* Change default test driver name

* CI test change fixes

* Fixed syntax error

* Added dev check

* Trying to fix firefox resizing

* Trying to get tests running

* Stop resizing firefox

* Fixed apple icon spec

* fix host in url helpers for omniauth spec

* Fix omniauth specs

* Fix docs

* Small fixes to docker tests

* Added package.json back in

* Change env variables

Co-authored-by: Markus Kahl <machisuji@gmail.com>
2020-11-12 14:05:03 +00:00
ulferts 647c9c4dbd fix cucumber runs on travis 2020-09-28 11:07:32 +02:00
ulferts 1fd6f09336 explicitly setup parallel_tests binstub on travis 2020-09-28 10:18:58 +02:00
Oliver Günther ac4c15791a Explicitly install danger binstub 2020-09-25 11:37:24 +02:00
Oliver Günther d463f51795 Cache webdrivers on CI in cache_prepare step (#8697)
This may prevent the github 429 requests we keep seeing.
2020-09-22 11:18:30 +02:00
Oliver Günther 32133fa87c Remove from ci setup and runner 2020-02-21 08:45:55 +01:00
Oliver Günther bdad2ae1b2 Skip dangerfile 2019-11-14 15:37:47 +01:00
Wieland Lindenthal 99b6850b75 Add ENV variable OPENPROJECT_EDITION to runner.sh 2019-07-12 12:10:38 +02:00
Oliver Günther 880a7e57ec Circumvent travis cache bug with ENV RECOMPILE_ON_TRAVIS_CACHE_ERROR 2019-06-19 09:31:44 +02:00
Oliver Günther 13ac8b3680 Recompile if cached file missing 2019-06-18 13:17:56 +02:00
Oliver Günther b0c8779e9c Switch to combined translations output 2019-06-18 10:38:38 +02:00
ulferts 8e395c5982 remove mysql from ci 2019-06-05 21:17:25 +02:00
Wieland Lindenthal d7fce84b9f Extend Travis CI to test BIM edtion with postgres by adding ENV variable OPENPROJECT_EDITION 2019-03-28 16:27:36 +01:00
Oliver Günther 6c3744ce3d Be careful not to add + 1 to initial start_revision
When db_revision is nil, the start_revision is added by one before
looking up revisions, skipping the first revision since it returns
1 instead of 0 for the first revision.
2019-02-19 10:43:05 +01:00
Oliver Günther 1dab873e7b Remove legacy repo specs as they are doubled in svn/git model spec 2019-02-18 15:38:12 +01:00
Oliver Günther bc9d61843d Allow skipping mysql for saas 2018-12-10 14:08:10 +01:00
Oliver Günther e047096c1d Disable watch mode 2018-10-25 12:04:58 +02:00
Jens Ulferts c72b89982e fail travis if preliminary steps fail 2018-10-02 10:00:57 +02:00
Jens Ulferts 1c4571180c update parallel_testing task 2018-10-01 09:47:52 +02:00
Jens Ulferts dc18ad856d check avoid caching node modules 2018-09-24 08:37:12 +02:00
Jens Ulferts ad2f428189 move ci script files 2018-09-19 08:10:23 +02:00