Commit Graph
743 Commits
Author SHA1 Message Date
David Rotermund 010024e625 Missing git-bridge build files 2026-10-22 02:28:58 +02:00
Maria Florencia Besteiro Gonzalez c0cb6710ba Merge pull request #35948 from overleaf/dk-git-bridge-health-check-race
[git-bridge] Fix health check race on shared probe file

GitOrigin-RevId: 1463880cb4770a730e3e164bf9a5ff89366434b5
2026-09-17 11:40:21 +00:00
Maria Florencia Besteiro Gonzalez 803b41bfdd Merge pull request #35804 from overleaf/lg-jetty-netty-security-upgrade
[Security upgrade] bump jetty and netty in git-bridge

GitOrigin-RevId: 650f017732f67be90048e41e314cd6646f182d08
2026-09-17 11:40:17 +00:00
Domagoj Kriskovic 0a913bba5e simplify health check comments
GitOrigin-RevId: cc31a6fd98a2c21b8163912e25542e5584d1794f
2026-09-17 11:37:03 +00:00
Domagoj Kriskovic 655034fb8e [git-bridge] Make liveness detect a dead service
GitOrigin-RevId: 266f6db044eec8b362b07bdfed45f892dd272413
2026-09-17 11:36:59 +00:00
Miguel Serrano 4f9ada1ecb [web] Add env variable to control GceMetadataLogLevelChecker (#35273)
The feature should be disabled in Server Pro, since the container is expected not to make any external request.

GitOrigin-RevId: 38b59de61e498c58a5fbacf48d2244481d099187
2026-09-17 11:31:27 +00:00
Miguel Serrano 2b05a3c9df Revert "[git-bridge] Setup ArtifactRegistry for maven central proxy (#35167)" (#35178)
This reverts commit ae949219b2e19d969f74e103b502177e1a3743a2.

GitOrigin-RevId: 81be00d03c931f22993df2eb79640ce52205464a
2026-09-17 11:17:19 +00:00
Miguel Serrano ae47a39cdc [git-bridge] Setup ArtifactRegistry for maven central proxy (#35167)
* [git-bridge] Setup ArtifactRegistry for maven central proxy

GitOrigin-RevId: ae949219b2e19d969f74e103b502177e1a3743a2
2026-09-17 11:17:07 +00:00
John Lees-Miller aa97f5794c [git-bridge] fix symlink handling (#35133)
GitOrigin-RevId: 282823db63f64bfae950b00e77a6cdc2a048b0ce
2026-09-17 11:16:15 +00:00
Kristina 4622848a19 [web] optimize process notifications and add monitoring metrics (#34699)
GitOrigin-RevId: 411355cbdbb25d871b9cfb2afbb0ad235041337f
2026-09-17 11:12:59 +00:00
Jakob Ackermann 9fd0d644cf [agents] refine guidance for running tests (#34977)
* [monorepo] fix handling of quoted MOCHA_GREP

* [agents] refine guidance for running tests

- nudge it towards scoped module targets
- nudge it to really run e2e tests when changed
- nudge it towards a11y cypress matchers
- recommend quoting for MOCHA_GREP

* [web] fix forwarding of mocha args from module Makefile

* [monorepo] use BRANCH_NAME_TAG_SAFE for building the ci image name

* [web] also make BRANCH_NAME_TAG_SAFE available in module Makefile

(It's not really needed, but will make copilot happy.)

GitOrigin-RevId: bfda3c8fe2b4f857ef111ac63f94b35a82ad75f8
2026-06-26 08:07:37 +00:00
Maria Florencia Besteiro Gonzalez 1e03046d68 Merge pull request #34587 from overleaf/lg-security-netty-codec-http2
[Security upgrade] bump io.netty:netty-codec-http2 to 4.1.135.Final in services/git-bridge

GitOrigin-RevId: e6b6b110bd4ce9c70c91f701cc3cb4f0868f870a
2026-06-25 08:06:26 +00:00
Miguel Serrano 4ba7f01ba4 [git-bridge] Cache maven artifacts in base layer (#34424)
* [git-bridge] Cache maven artifacts in base layer

Adds a Dockerfile stage to resolve dependencies in the `base` layer, which is cached for production and e2e/dev builds.

GitOrigin-RevId: 0830a3be0c02e5e09e370cf64cdccc30ebf42d7a
2026-06-12 08:06:25 +00:00
David f27112179a Merge pull request #33771 from overleaf/mj-git-bridge-default-main
[git-bridge] Default new projects to main rather than master

GitOrigin-RevId: 3d7d60c0aab6e5d0d10d282d6d491d4f735ed94c
2026-06-12 08:06:20 +00:00
David be5f8b425a Merge pull request #34450 from overleaf/dp-handle-dot-git-error
[git-bridge] Surface GitUserException messages to the git client

GitOrigin-RevId: 45256ca8005142a0f70839e2567341a5984955a7
2026-06-11 08:05:18 +00:00
David bfc46c4591 Merge pull request #34467 from overleaf/dp-git-bridge-dynamic-port
[git-bridge] Bind integration test server to a dynamic port

GitOrigin-RevId: 12b570dbb4bc092c05e864c28ff554d672084804
2026-06-11 08:05:14 +00:00
David 1542fbab57 Merge pull request #33770 from overleaf/mj-git-bridge-hook-readbranch
[git-bridge] Ensure pushed branches match branch on disk

GitOrigin-RevId: 9fb6b6f6475790ad83b560a84b625e6a2b806254
2026-06-10 08:05:29 +00:00
Miguel Serrano 73e437ad96 Revert "[git-bridge] Cache maven artifacts in Dockerfile (#34390)" (#34399)
This reverts commit 1222ba62bc6242874d76e26c69b366fbde62f519.

GitOrigin-RevId: dc45e995b30ffc958a4ce62206d8f4dd7d41ca50
2026-06-09 08:06:32 +00:00
Miguel Serrano dedc521295 [git-bridge] Cache maven artifacts in Dockerfile (#34390)
* [git-bridge] Cache maven artifacts in Dockerfile

GitOrigin-RevId: 1222ba62bc6242874d76e26c69b366fbde62f519
2026-06-09 08:06:18 +00:00
Liam O'BrienandClaude Opus 4.7 e53c6f2aea Notify users about expiring git PATs and expose PATs in admin panel (#33802)
* Allow admin access to user PATs

* Tests for new screen in admin panel

* Adding error for invalid token and way to parse error for OAuth 2

* Git bridge handles expired PAT

* Script for alerting on close to expiry and expired git tokens

* Refactoring and simplifying

* Updating email templates to match agreed docs

* tweak to email subject to include Overleaf

* Allowing dry run in scripts and general tidy up

* removing redundant tests and dry running script

* Fixing CI errors

* Adding new tab to admin test expectation

* Address PR feedback on oauth2-server changes

- Replace ad-hoc overleafErrorCode prop with a TokenExpiredError subclass
- Collapse listTokens/listTokensForAdmin into a single hook

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Adding cron definitions for alerting on expiring git pat

---------

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
GitOrigin-RevId: 69b9fd901a201592a580c69abe7bd7d603e85d3a
2026-06-04 08:05:26 +00:00
Gernot Schulz a0ca344065 Merge pull request #34127 from overleaf/gs-j-cd-hooks
Add deploy pipeline trigger hooks to Jenkinsfiles

GitOrigin-RevId: 80bb89615ae16b733009dca21a5fc41b5c30e993
2026-06-01 08:04:55 +00:00
David b6b03a2091 Merge pull request #33471 from overleaf/copilot/fix-git-integration-prompts
Fix incorrect auth error messages shown to git bridge users

GitOrigin-RevId: 52888e991cf1ec7f3ae28c67fcd70fa2a1a9fad9
2026-05-28 08:06:31 +00:00
Maria Florencia Besteiro Gonzalez bc8008737c Merge pull request #33847 from overleaf/lg-async-http-client-security-upgrade
[Security upgrade] bump async-http-client to 3.0.10 in git-bridge

GitOrigin-RevId: c2283a78055f1dce0644f2278167399e65a12937
2026-05-28 08:06:23 +00:00
Eric Mc Sween 2913e462ec Merge pull request #33665 from overleaf/copilot/fix-error-logging-in-git-bridge
git-bridge: Log WrongBranchException and ForcedPushException at WARN instead of ERROR
GitOrigin-RevId: 7aaa934a0df614e336ce3c20b892af1af0cd070f
2026-05-18 08:06:29 +00:00
Eric Mc Sween 529c332159 Merge pull request #33658 from overleaf/em-fix-docker-tag-length
build: truncate branch names to 96 chars for Docker image tags
GitOrigin-RevId: 9db313244e78a6d4e0aa5d8c08d25f1aac83318b
2026-05-14 08:06:45 +00:00
Eric Mc Sween d48af6dc1b Merge pull request #33213 from overleaf/em-git-bridge-structured-logging
git-bridge: structured JSON logging for GCP Cloud Logging
GitOrigin-RevId: 7ff06202cab6fe0e35c4a4f757d0b9ad04e5431a
2026-05-13 08:06:31 +00:00
renovate[bot] 931ce5f590 [CoreII] Update bouncycastle.crypto.version to v1.84 from 1.83 [SECURITY]
GitOrigin-RevId: ce579e2bc46bb23075754ddfd0760269d11c00b0
2026-05-12 08:05:15 +00:00
Chris Dryden 95f1e711da Merge pull request #32789 from overleaf/renovate-async.http.client.version
[CoreII] Update dependency org.asynchttpclient:async-http-client to v3.0.9 from 3.0.6 [SECURITY]

GitOrigin-RevId: 0490d7653fd08d8b7f26c94a036edae69911b7fb
2026-05-08 08:08:52 +00:00
renovate[bot] 0a21aa3b35 [CoreII] Update dependency io.netty:netty-codec-http2 to v4.1.132.Final from 4.1.130.Final [SECURITY]
GitOrigin-RevId: 283016277183cdc366de4c9b24982a0d70a34c63
2026-04-10 08:03:59 +00:00
Miguel Serrano 251ccbf1ad [git-bridge] Downgrade info logs to debug (#32470)
* [git-bridge] Downgrade `info` logs to `debug`

Moving most `info` logs to `debug` to reduce log noise.

GitOrigin-RevId: 21f8d11ba950078b5e3a88a245e8ed68f2548141
2026-03-30 08:05:23 +00:00
Miguel Serrano a6fd4c4f5a [git-bridge] Added warning on non-fresh repo initialisations (#32432)
* [git-bridge] Added warning on non-fresh repo initialisations

Addresses a TODO by adding a warning when trying to initialise a repo that already exists and is not fresh.

GitOrigin-RevId: f801df9e1c77bfbc8a9a4101f01d5a71c383dc0f
2026-03-26 09:06:56 +00:00
Mathias Jakobsen 3b2cbdd20e Merge pull request #32066 from overleaf/renovate-jetty.version
[Core] Update dependency org.eclipse.jetty:jetty-server to v12.1.6 from 12.1.5 [SECURITY]

GitOrigin-RevId: 68d1b10a9ecafe42d8da07753d4222079c0aa02c
2026-03-13 09:05:15 +00:00
Jakob Ackermann 49c1c65dd8 [e2e] e2e_test_setup: perform health check on all the services (#31311)
* [e2e] e2e_test_setup: perform health check on all the services

* [monorepo] install curl in nginx-proxy

GitOrigin-RevId: 0d04e2b1012e8b0349cdb297b43a303797fb1968
2026-02-05 09:05:53 +00:00
Rebeka Dekany a648015db8 Centralize prettier configuration to root level (#30501)
* Merge all .prettierignore files into top-level config

* Merge all .prettierrc files into top-level config

* Replace service-specific glob patterns in package.json format scripts with `prettier .`

* Add template files with Jinja2, Go template, envsubst, and Handlebars syntax to .prettierignore

* Ignore GitHub templates

* Ignore PUG templates to format them separately with `format:pug`

* Encourage double quotes for YAML, YML files

* Move prettier for PUG source format script to the root

* Move prettier for styles source format script to the root

* Remove prettier for jenkins files from web

* Remove prettier source format script from all services

* Make .prettierrc more readable

* Update format scripts by file type

* Organise `.prettierignore`

* Add `--cache` flag to prettier scripts for faster runs

* Format all files with prettier

* Format all or format services

* Remove `format`/`format:fix` scripts from services since now it runs from root `package.json`

* Avoid conlficts with yamllint configuration

* Remove `--cache` flag from prettier scripts

* Update all service Makefiles to use root-level prettier configuration

* Update all Jenkinsfile to use root-level prettier configuration

* Ignore auto-generated files by build_scripts

* Update package-lock.json

* Update root Makefile format targets

* Update SP Jenkinsfile format target

* Update E2E Makefile format script

* Udpate `format_js` to work in both local and CI env

* Add docker-mailtrap to .prettierignore

docker-mailtrap is a third-party git-ignored directory used for testing

* Added Docker env detection to prevent nested Docker spawning

* Ignore handlebars templates

* Add cryptographic files and test output to `.prettierignore`

* Add terraform modules to `.gitignore`

* Remove prettier-plugin-groovy

* Use npx directly instead of Docker for local formatting for faster formatting

* Auto-generate Makefiles

* Revert "Remove prettier-plugin-groovy"

This reverts commit 194a33589a2e1e4d2225d10c67e9f025e4222025.

* Mount monorepo root in RUN_LINT_FORMAT for prettier config access

* Prettier ignores all `node_modules` by default regardless of location

* Show only changed files in format output

* Ignore LICENSE files

* Enable prettier on rendered build_scripts outputs

* Ignoring all the template folders by prettier

* Remove the public/minjs entry since it does not exist

* Remove all non-existent paths

* Sync `.prettierignore` with ignored files by `.gitignore` and `.dockerignore` files

* Revert "Auto-generate Makefiles"

This reverts commit c0233e490de1bc95fe437219d65e0b66e0331ec9.

* Revert "Use npx directly instead of Docker for local formatting for faster formatting"

This reverts commit 1d2b2cf1a6c6974c76885852a90dd55e84167e41.

* Ignore dashboard JSON files

* Ignore files generated by bin/update_build_scripts

* Remove unsupported file types from `.prettierignore`

* Ignore test fixture generated files

* Ignore README file types by prettier

* Ignore generate snapshots by prettier

* Allow to format generated bin/update_build_scripts by prettier

* Ensure build script outputs prettier-compatible tsconfig.json

* Fix build script output to match prettier formatting
- Fix Jinja2 whitespace in docker-compose templates
- Change YAML quotes from single to double

* Don't read cryptographic files by prettier

* Ignore google verification files by prettier

* Revert npx prettier formatting

* Ignore domain verification files

* Show only changed files in format output

* Make `.github` prettier

* Allow all files to be formatted in jobs by prettier

* Allow server-ce/server-pro files to be formatted by prettier

* Ignore more folders in clsi, filestory, git-bridge by prettier

* Update build script with `RUN_LINTING_CI_MONOREPO`

* Ignore docker-mailtrap and downloads in server-ce by prettier

* Restore prettier configs and prettierignore for V1 since it has its own prettier (an older version)

* Source format

GitOrigin-RevId: 637adc3cc422d1f20c86d6ebc8ec514d60758287
2026-02-04 09:08:22 +00:00
Miguel Serrano af2be7c074 [git-bridge] Update envsubst and dependencies (#30747)
Updates patch versions of stable dependencies, and rebuilds
envsubst

GitOrigin-RevId: f55bc2d5c00aef110cf6a8ba89e8529211d560cb
2026-01-15 09:05:37 +00:00
Mathias Jakobsen 0fc0e54cf5 Merge pull request #29325 from overleaf/dp-git-bridge-aws-sdk
[git-bridge] Update AWS S3 SDK

GitOrigin-RevId: c40f6c0c3eef6e45e27a57462a7a4732d5151c26
2026-01-07 09:05:57 +00:00
Mathias Jakobsen 750ef6ca19 Merge pull request #30510 from overleaf/mj-git-bridge-persistent-swap-local
[git-bridge] Make git-bridge data persistent

GitOrigin-RevId: e5e7ec613db455b21b4f96c9bf8e6829cc02a4ce
2026-01-07 09:05:43 +00:00
Mathias Jakobsen bf662f74f5 Merge pull request #30458 from overleaf/mj-git-bridge-local-swap
[git-bridge] Mock S3 locally with minio

GitOrigin-RevId: d56659d601e4450f69332202b86e61a443375101
2026-01-07 09:05:38 +00:00
Mathias Jakobsen 32845170ff Merge pull request #30497 from overleaf/mj-git-bridge-staging-swap
[git-bridge] Reduce amount of projects on staging git bridge disk

GitOrigin-RevId: 428825f354487ece20b2538e7d312186d56cc03a
2026-01-07 09:05:33 +00:00
Miguel Serrano 48e7f8042b [git-bridge] Update jetty to v12 (#30221)
GitOrigin-RevId: 44b3f754b3dbced8a2ac47472e113ef4cae30c50
2025-12-18 09:05:13 +00:00
Miguel Serrano a3ec5b2797 Merge pull request #30018 from overleaf/msm-fix-esm-import
[web] Fix ESM import

GitOrigin-RevId: 887f4927248241cb3d237e0bdad36b05928657ef
2025-12-03 09:05:32 +00:00
Thomas c059a3c5b0 Handle slashes in branch names for docker build tags (#29529)
* Refactor v1 Makefile to use DOCKER_COMPOSE variable for Docker commands with tag safe branch name

* Handle slashes in branch names for docker build tags

GitOrigin-RevId: 463940e8435845978aced745575905f3bfbb8e1c
2025-11-14 09:05:25 +00:00
Gernot Schulz bed63fd954 Merge pull request #29586 from overleaf/gs-jenkins-pr-build-tags-git-br
Include commit look-up stage in git-bridge Jenkinsfile

GitOrigin-RevId: 993cabcafd057dc6767a2780c2dd11708482d536
2025-11-10 09:05:12 +00:00
Miguel Serrano 6ca1a9e472 [git-bridge] Update dependency versions (#29484)
GitOrigin-RevId: 1640ea71798f650196f20f656f8656f3abeee7e5
2025-11-04 09:06:15 +00:00
Miguel Serrano 7f4d947b56 [git-bridge] Updated envsubst builder (#29286)
GitOrigin-RevId: 8da435aea673f6e73666f0fb7dfd8522312e5f48
2025-10-24 08:05:26 +00:00
Jakob Ackermann 15a6e8ba04 [monorepo] use content hash as docker image cache key (#29046)
* [monorepo] remove docker-repos flag from build scripts

* [monorepo] use content hash as docker image cache key

* [packer] jenkins-worker: populate build cache for all services

* [v1] adopt smarter docker caching

* [latexqc] adopt smarter docker caching

* [monorepo] refresh docker cache in Jenkins

* [packer] jenkins-worker: increase disk size

* [monorepo] run jenkins_docker_build_cache as Jenkins user for v1

* [monorepo] define MONOREPO at the top of all the Makefiles

* [monorepo] add --build-arg BUILDKIT_INLINE_CACHE=1 everywhere

GitOrigin-RevId: 8110c6e68727a52ea80f3ec71711d30e17d69499
2025-10-15 08:06:41 +00:00
Jakob Ackermann 2390823a30 [monorepo] run Jenkins cleanup in parallel (#29015)
GitOrigin-RevId: 5e0df1cec874950b91edf86a2ca40b358366a897
2025-10-13 08:06:58 +00:00
Jakob Ackermann d7623b576f [monorepo] refactor retries in Jenkins to step level (#29008)
* [monorepo] refactor retries in Jenkins to step level

Change the junit reports to use step specific file names. The [hash]
template option was neat in getting unique file names, but results in
duplicate test reports on retry.

* [patches] add support for .cjs config files for mocha-multi-reporters

GitOrigin-RevId: 3a749441470b5ba633e71319589606cfbe860952
2025-10-13 08:06:37 +00:00
Jakob Ackermann c621d0f318 [git-bridge] migrate pipeline to Jenkins (#28763)
* [git-bridge] migrate pipeline to Jenkins

* [terraform] remove cloud build trigger for git-bridge

GitOrigin-RevId: fdf842a561c00a609f2de0cab894a761900322c6
2025-10-07 08:06:48 +00:00
Mathias Jakobsen 838731af8b Merge pull request #28343 from overleaf/mj-git-bridge-logs
[git-bridge] Restore git bridge logs

GitOrigin-RevId: fd4360ea3b38e3c412bb535811ffc704b78ccf95
2025-09-10 08:05:53 +00:00