Commit Graph

302 Commits

Author SHA1 Message Date
Oliver Günther 5e0ea7fe4e Add missing secret key base for testing 2026-05-13 08:00:11 +02:00
Ivan Kuchin 34081a9b4e less repetition in script fixing pt root keys 2026-04-07 19:58:39 +02:00
Ivan Kuchin e45afcffee use unlimited line width for reformatted yaml from crowdin
Co-authored-by: Alexander Brandon Coles <a.coles@openproject.com>
2026-03-30 19:23:58 +02:00
Ivan Kuchin d8c5727401 show number of crowdin files found too
Co-authored-by: Alexander Brandon Coles <a.coles@openproject.com>
2026-03-30 19:23:58 +02:00
Ivan Kuchin a9e3700a1d script to rewrite yaml files using psych 2026-03-30 19:23:58 +02:00
Christophe Bliard 3679504e27 Use Bearer token directly for GitHub API requests
I got some 403 errors when using Basic auth with username and token.

Good thing: it makes the GITHUB_USERNAME env variable useless.
2026-03-11 12:10:34 +01:00
Alexander Brandon Coles 474324fb18 Add out-of-hours CI failure reporting 2026-03-10 15:26:38 -03:00
Pavel Balashou 089e3f46f7 Address Rubocop complaints volume 1. 2026-02-25 11:05:33 +01:00
Pavel Balashou 6ef68298c1 Merge branch 'dev' into jira-migration 2026-02-23 16:08:11 +01:00
Pavel Balashou 5a3b024607 Extend jira generation script.
- Add users
- Add issue comments
- Sets assignee and reports randomly
2026-02-23 10:55:17 +01:00
OpenProject Actions CI 4f789b788a Merge branch 'release/17.1' into dev 2026-02-21 04:13:29 +00:00
OpenProject Actions CI d71d33c4fa Merge branch 'release/17.0' into release/17.1 2026-02-20 11:20:44 +00:00
Oliver Günther fec23fc7fe Prevent non-semver tags from being cut off 2026-02-20 12:19:57 +01:00
Eric Schubert 6dd0f01e93 Merge pull request #21988 from opf/chore/remove-warnings-from-api-spec-validation
[chore] remove abbreviated example nodes
2026-02-17 10:02:25 +01:00
Eric Schubert 6943ad129e [chore] remove abbreviated example nodes
- add custom rule to manipulate example objects
- amend validation script to use config file
2026-02-13 14:53:07 +01:00
Christophe Bliard 4f384be0b5 Add script to test seeding in all locales
Used by a workflow introduced in #21959 in commit ae41e6a77d.
2026-02-12 09:43:35 +01:00
Dombi Attila c7eb130469 Merge branch 'dev' into merge-release/17.1-20260212041910 2026-02-12 10:28:06 +02:00
Christophe Bliard ae41e6a77d Add workflow to test seeding in all locales
There is a `script/i18n/test_seed_all_locales` to test seeding in all
locales, or one locale.

A GitHub action tests all locales seeding every week on Sunday at 2 AM
UTC. It can also be triggered manually.

Example:
    script/i18n/test_seed_all_locales         # Seed all locales sequentially
    script/i18n/test_seed_all_locales --list  # Output available locales as JSON
    script/i18n/test_seed_all_locales zh-CN   # Seed a single locale
2026-02-11 15:49:54 +01:00
Eric Schubert abbaf045c5 [chore] fix api spec validation
- validation script used unmaintained npm package
- switched to actively maintained package from same maintainer
- pipe full output to stdout
- bump node major version in development backend Dockerfile
- fix two api spec errors and two random warnings - boyscout, hell yeah
2026-02-11 14:11:20 +01: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
as-op 2762a72ca2 switch selection of projects from frontend js to backend with pagination support 2026-02-09 16:03:35 +01:00
as-op bc7a4aa73a [#71395] Create a tool to populate Jira with projects and issues
https://community.openproject.org/work_packages/71395
2026-02-05 16:30:41 +01:00
as-op eb90fbab1f [#69138] Show the state of the work package of type "project initiation request"
https://community.openproject.org/work_packages/69138
2025-11-25 16:05:12 +01:00
Christophe Bliard 8b25e16864 Add rm -f db/structure.sql to reset the test database
When `db/structure.sql` exists, it's used when doing `rails db:migrate`
instead of running the migrations. When switching to a branch with less
migrations, the test database will be created with the
`db/structure.sql` file which contains the migrations of the previous
branch. They should not be there.

To have the correct database structure for tests, the `db/structure.sql`
file must be removed before running `db:migrate`.
2025-11-13 11:35:03 +01:00
Christophe Bliard c17e5a703b Fix some certificate checking issues with openssl 3.6.0
[skip ci]
2025-10-29 14:11:36 +01:00
Oliver Günther 259c1d4f74 Build workflows using the fixed next release branch
This reference is updated through devkit
2025-10-27 11:53:58 +01:00
Christophe Bliard 0108374bd3 Update script/github_pr_errors with better rerun instructions
The script now recommends using the commands from
`docs/development/testing/handling-flaky-tests/README.md` to be closer
to CI conditions.

[skip ci]
2025-10-21 16:26:49 +02:00
Christophe Bliard 04ec392d14 Add check for YAML header syntax in docs README files 2025-10-07 12:21:41 +02:00
Christophe Bliard 90751c5b9e Add check for README.md correct case in docs/ 2025-10-07 12:12:04 +02:00
Cyril Rohr b54931b783 Enable dev branch for scheduled docker builds 2025-09-18 11:18:40 +02:00
Cyril Rohr 8917c92fb5 Fix for matrix format in docker scheduled workflow (#20358) 2025-09-18 11:15:38 +02:00
Cyril Rohr 7ba86234aa Merge pull request #20248 from opf/maintenance/daily-docker-release-builds
Split docker workflow into release and scheduled
2025-09-17 17:01:47 +02:00
Oliver Günther f7e8e9a954 require cgi in github script 2025-09-17 14:22:25 +02:00
Christophe Bliard 4be455ef3b Print Pull Request base branch and SHA
I found it useful to know which branch the PR is based on to run it
locally.

[skip ci]
2025-08-29 11:17:49 +02:00
as-op f449570b42 rename default meeting PDF export
closes https://github.com/opf/openproject/pull/19720#discussion_r2273473849
2025-08-14 12:45:13 +02:00
Andrej Sandorf 0f43548ae7 Merge branch 'dev' into feature/65124-fitko-styling-pdf-export-of-meeting-minutes 2025-08-14 12:38:07 +02:00
as-op 5b5caaa186 [#65994] PDF export of project list
https://community.openproject.org/work_packages/65994
2025-07-31 14:59:03 +02:00
as-op 999e873a31 [#65124] FITKO styling "Föderales IT- Standardisierungsboard" of PDF export of meeting minutes
https://community.openproject.org/work_packages/65124
2025-07-29 16:26:48 +02:00
as-op 32ff7de6af obey rubocop 2025-07-22 14:32:48 +02:00
as-op 7166a79d77 chore(refactoring): move shared and entity-specific code out of models/work_package/pdf_export/ 2025-07-22 14:24:28 +02:00
Kabiru Mwenja b52debb70d Style/ItBlockParameter: Use it block parameter.RuboCopStyle/ItBlockParameter (#19318) 2025-06-26 13:36:49 +03:00
Andrej Sandorf c723673fe9 [#60730] PDF export of meetings (#18714)
* [#60730] PDF export of meeting agenda and/or meeting minutes

https://community.openproject.org/work_packages/60730
2025-06-04 17:15:39 +02:00
Christophe Bliard 975256dea3 Improve anonymization script
- check if parent directory of this script is an OpenProject repository
  suitable to run the command to add the admin user.
- use a variable for the database name in the given instructions to load
  it. It makes it easier to change to an existing database name.

[skip ci]
2025-05-26 16:10:48 +02:00
Henriette Darge b2ca041022 Merge branch 'dev' into merge-release/16.0-20250520034636 2025-05-20 10:43:07 +02:00
Christophe Bliard 387aa29673 Add TZ=UTC to the CI command suggested by github_pr_errors
The CI runs in UTC, so we should use `TZ=UTC` when trying to reproduce
the failure locally.

Co-authored-by: Klaus Zanders <k.zanders@openproject.com>
2025-05-19 11:41:56 +02:00
Henriette Darge f496da2aad Merge release/16.0 into dev 2025-05-16 14:56:25 +02:00
Jan Sandbrink c7768513bd Move success translation to separate key
We do this mainly because we faced an issue with Crowdin, where
the translation didn't work correctly in languages that have a separate
translation for the zero plural case.

Looking at the way we use those translations though, it also makes sense in
general to change the translations like this. Having success as the special case
of zero failures is not quite right, because we also have zero failures if there is
a single warning, but we don't show success in that case. Success is always a separate
branch in a case statement and thus it makes sense to treat it as a separate translation.
2025-05-16 09:51:51 +02:00
OpenProject Actions CI 6e4dc59212 Merge branch 'release/16.0' into dev 2025-05-13 03:46:17 +00:00
Christophe Bliard b762b6e723 Preserve screenshots in bulk_run_rspec
[skip ci]
2025-05-12 15:38:50 +02:00
Christophe Bliard 12725af51d Install OpenProject gems before anonymizing the database
Do it early so that if it fails, no time has been spent anonymizing the
database.

[skip ci]
2025-05-07 18:13:20 +02:00