Commit Graph

208 Commits

Author SHA1 Message Date
Christophe Bliard eb93a03e00 github_pr_error: add information about merge commit 2024-03-28 11:46:59 +01:00
Christophe Bliard 1ae177c2a8 Merge branch 'release/13.4' into dev 2024-03-21 17:22:20 +01:00
Christophe Bliard d653ce6e4c [53584] Fix Portuguese languages mapping
https://community.openproject.org/wp/53584
https://community.openproject.org/wp/53586

When making Portuguese Brazilian and Portuguese Portugal translations
apart from each other in https://community.openproject.org/wp/53374, we
missed that the root key in the `pt-BR.yml` and `pt-PT.yml` files is
still `pt`. The backend is gracefully falling back to the `pt`
translations but the frontend just fails to translate and falls back to
the English strings, leading to mixed English and Portuguese in the user
interface.

A script fixes the root key in the `pt-BR.yml` and `pt-PT.yml` files.
This script is executed each time the translations are updated from
crowdin.
2024-03-21 16:32:17 +01:00
ulferts 3b2121f733 Revert "Merge remote-tracking branch 'origin/release/13.4' into dev"
This reverts commit 40b2bbeb09, reversing
changes made to b4c6cb17cc.
2024-03-21 11:31:17 +01:00
Ivan Kuchin 7787e457a3 Revert "Merge branch 'dev' into release/13.4"
This reverts commit a901541269, reversing
changes made to e573ca00b7.
2024-03-20 20:19:08 +01:00
Ivan Kuchin 9e4934cd0a change quotes using rubocop --only Style/StringLiterals,Style/QuotedSymbols -a 2024-03-20 18:05:22 +01:00
Christophe Bliard 605d731f73 Use more accurate language translation for pt-BR 2024-03-08 10:58:07 +01:00
Christophe Bliard 5aefbbc8dd Do not try displaying local screenshot urls 2024-02-19 16:02:40 +01:00
Christophe Bliard 2d6023adab github_pr_errors: use -i to display screenshots in terminal
This works only with `imgcat` and iTerm2 (or any terminal implementing
iTerm2 image protocol like Konsole).

See https://iterm2.com/documentation-images.html to know more.

Feel free to add support for more terminals.
2024-02-16 15:05:50 +01:00
as-op 47ae2444ab ci(docs): add (internal) link checker & Github pull request action 2024-02-13 14:23:12 +01:00
Christophe Bliard 3e2a0331ab Report error if unrecognized url is given 2024-02-13 10:00:06 +01:00
Aaron Contreras 814ab3f50d Merge pull request #14719 from opf/dx/add_failure_backtrace_to_github_pr_errors_script
Add failures explanation to the output
2024-02-06 09:11:50 -05:00
Oliver Günther cedd6233ca Add anonymize dump sql 2024-02-06 15:05:05 +01:00
Christophe Bliard d026f7d79c Add failures explanation to the output
The uninteresting part of the backtrace is filtered out
2024-02-05 17:05:13 +01:00
Christophe Bliard cafadbbfbc Replace faraday with httpx 2024-01-31 17:00:17 +01:00
Dombi Attila d4ce6b2aed Require Base64 in the github_pr_errors script 2024-01-29 13:13:03 +01:00
Aaron Contreras 6eb4a1932b Update docs to reference Bundler 2.5.5 2024-01-22 11:52:06 -05:00
Christophe Bliard 8fa8584538 Run rubocop --autocorrect on all files
Only the safe cops have run. rubocop version is 1.59.0.
2024-01-05 15:27:09 +01: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
Christophe Bliard 3e095fec93 Make BULK_RUN_COUNT a parameter of script/bulk_run_rspec with -c 2023-12-27 17:22:23 +01:00
Dombi Attila e74eb4ee32 Bump ruby to 3.2.2 & bundler to 2.4.22 2023-12-15 16:26:05 +02:00
ulferts cfe4580e5c Merge remote-tracking branch 'origin/release/13.0' into dev 2023-09-26 09:07:04 +02:00
Christophe Bliard c46e674b4c Do not fail github_pr_errors if PR is closed or merged 2023-09-25 09:55:34 +02:00
Klaus Zanders f64fde1c15 Fixes Performance/StringReplacement offenses 2023-09-06 13:08:22 +02:00
Klaus Zanders 26cee2729e Fixes Performance/RegexpMatch offenses 2023-09-06 12:50:32 +02:00
Klaus Zanders e93b2f353c Fixes Performance/Count offenses 2023-09-06 10:59:33 +02:00
Eric Schubert 7c81f09b6a Merge branch 'release/13.0' into dev 2023-09-05 15:33:48 +02:00
Christophe Bliard 329cb855af Make script/github_pr_error extract run_id from job url
Instead of `script/github_pr_errors -r 6073044922`, you can now use
`script/github_pr_errors https://github.com/opf/openproject/actions/runs/6073044922/job/16474191600`.
2023-09-05 08:26:15 +02:00
ulferts 71569f3edc Merge remote-tracking branch 'origin/release/13.0' into dev 2023-08-29 12:04:05 +02:00
Christophe Bliard 0f56928b49 Follow redirects for script/github_pr_errors
When log files are really big, the log API sends a redirects to where the big file is stored.
2023-08-29 10:57:32 +02:00
Christophe Bliard 8af4a60c80 [49795] Avoid zh-TW overwriting zh-CN translation file
Previously, downloading translations files from crowdin would write both
zh-CN and zh-TW to the same file, overwriting the previous one. This
commit adds a mapping to the crowdin.yml file to avoid this.

As a side effect, the script `fix_crowdin_translation_filenames.rb` is now
superfluous.
2023-08-28 10:30:10 +02:00
Pavel Balashou 59c9f6b1c0 Merge pull request #13544 from opf/code-maintenance/48457-replace-restclient-with-nethttp-in-storages-module
[#48457] Replace RestClient with Net::HTTP or Faraday.
2023-08-24 14:31:17 +02:00
Pavel Balashou 0a2cc19e67 [#48457] Replace RestClient with Net::HTTP in storages module.
https://community.openproject.org/work_packages/48457
2023-08-22 15:40:14 +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
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
ulferts 1a01b80d95 Merge remote-tracking branch 'origin/dev' into remove-webdrivers 2023-07-20 13:33:07 +02:00
Klaus Zanders 7e4f2d82a1 Remove webdrivers tasks from CI runs 2023-07-20 11:24:02 +02:00
as-op 4a584b47a0 [#49082] Documentation for PDF styling yaml
https://community.openproject.org/work_packages/49082
2023-07-20 11:01:39 +02:00
Oliver Günther 8d8dfe5e93 Remove check for in-context translations (fixed) 2023-07-17 09:26:47 +02:00
Oliver Günther 784361c03c Skip fixing in-context translation files 2023-07-17 09:15:48 +02:00
Christophe Bliard 63d3d127dc Send modules/**/en.seeders.yml to crowdin
https://community.openproject.org/wp/48450

Before this commit, `modules/bim/config/locales/en.seeders.yml` would be
sent to crowdin as `<branch>/en.seeders.yml` and would be ignored as
`config/locales/en.seeders.yml` is already sent as
`<branch>/en.seeders.yml` first.

This happens because crowdin CLI removes the common path of a group of
source files. As this file is alone in his group, the whole path is
removed and only the file name remains.

The fix is to have another empty source file in another module to change
the common path computation and get the right final file:
`<branch>/bim/config/locales/en.seeders.yml`.
2023-07-06 15:46:06 +02:00
Christophe Bliard 932693ae87 Merge pull request #12923 from opf/packaging/47354-ask-default-language-setting-in-packaged-installation
Packaging/47354 ask default language setting in packaged installation
2023-07-04 16:21:33 +02:00
Christophe Bliard 547e490f13 Add verbose output to script/github_pr_errors 2023-06-30 09:26:33 +02:00
Christophe Bliard 4b68d96d55 Improve script/github_pr_errors
* Fix mismatch between the rerun_location and location: rerun_location
  can be the example location or the example id if multiple examples
  share the same location (like for shared examples). The screenshot
  formatter now includes the example id in addition to the example
  location to make the matching possible.
* Add `-d` / `--display-rerun-info` option so that the tests execution
  group information and the instructions to rerun with same seed as CI
  is not shown by default.
* Add `-f` / `--failed-job-log` option to give an already downloaded job
  log as argument instead of fetching it from GitHub. Most useful for
  testing the script too.
2023-06-28 16:32:24 +02:00
Christophe Bliard 9bdf225d97 Add tests rerun command with seed to github_pr_errors 2023-06-22 21:36:43 +02:00
Christophe Bliard d1f0827f17 Add screenshots to github_pr_errors output
And make rubocop happier.
2023-06-22 21:36:43 +02:00
Christophe Bliard e42155fbd7 Exclude eslint job from script/github_pr_errors 2023-06-20 16:39:42 +02:00