Просмотр исходного кода

[monorepo] optimize Jenkins build triggers for services (#28477)

Co-authored-by: Andrew Rumble <andrew.rumble@overleaf.com>
Co-authored-by: Mathias Jakobsen <mathias.jakobsen@overleaf.com>
GitOrigin-RevId: ea7d6c435d4a81a0f42ea9b608a0cc79087cdffd
Jakob Ackermann 10 месяцев назад
Родитель
Сommit
9b2fcbe960
29 измененных файлов с 289 добавлено и 10 удалено
  1. 7 0
      libraries/access-token-encryptor/.jenkinsIncludeFile
  2. 8 0
      libraries/fetch-utils/.jenkinsIncludeFile
  3. 9 0
      libraries/logger/.jenkinsIncludeFile
  4. 7 0
      libraries/metrics/.jenkinsIncludeFile
  5. 7 0
      libraries/mongo-utils/.jenkinsIncludeFile
  6. 7 0
      libraries/o-error/.jenkinsIncludeFile
  7. 12 0
      libraries/object-persistor/.jenkinsIncludeFile
  8. 8 0
      libraries/overleaf-editor-core/.jenkinsIncludeFile
  9. 7 0
      libraries/promise-utils/.jenkinsIncludeFile
  10. 7 0
      libraries/ranges-tracker/.jenkinsIncludeFile
  11. 10 0
      libraries/redis-wrapper/.jenkinsIncludeFile
  12. 7 0
      libraries/settings/.jenkinsIncludeFile
  13. 7 0
      libraries/stream-utils/.jenkinsIncludeFile
  14. 8 0
      libraries/validation-tools/.jenkinsIncludeFile
  15. 4 1
      package-lock.json
  16. 13 0
      services/chat/.jenkinsIncludeFile
  17. 14 0
      services/clsi/.jenkinsIncludeFile
  18. 0 1
      services/clsi/buildscript.txt
  19. 7 4
      services/contacts/.jenkinsIncludeFile
  20. 16 0
      services/docstore/.jenkinsIncludeFile
  21. 17 0
      services/document-updater/.jenkinsIncludeFile
  22. 14 0
      services/filestore/.jenkinsIncludeFile
  23. 18 0
      services/history-v1/.jenkinsIncludeFile
  24. 15 0
      services/notifications/.jenkinsIncludeFile
  25. 17 0
      services/project-history/.jenkinsIncludeFile
  26. 13 0
      services/real-time/.jenkinsIncludeFile
  27. 19 4
      services/web/.jenkinsIncludeFile
  28. 10 0
      services/web/buildscript.txt
  29. 1 0
      services/web/package.json

+ 7 - 0
libraries/access-token-encryptor/.jenkinsIncludeFile

@@ -0,0 +1,7 @@
+# Autogenerated by build scripts. Do not edit.
+.eslint*
+.prettier*
+libraries/access-token-encryptor/**
+package-lock.json
+package.json
+patches/**

+ 8 - 0
libraries/fetch-utils/.jenkinsIncludeFile

@@ -0,0 +1,8 @@
+# Autogenerated by build scripts. Do not edit.
+.eslint*
+.prettier*
+libraries/fetch-utils/**
+libraries/o-error/**
+package-lock.json
+package.json
+patches/**

+ 9 - 0
libraries/logger/.jenkinsIncludeFile

@@ -0,0 +1,9 @@
+# Autogenerated by build scripts. Do not edit.
+.eslint*
+.prettier*
+libraries/fetch-utils/**
+libraries/logger/**
+libraries/o-error/**
+package-lock.json
+package.json
+patches/**

+ 7 - 0
libraries/metrics/.jenkinsIncludeFile

@@ -0,0 +1,7 @@
+# Autogenerated by build scripts. Do not edit.
+.eslint*
+.prettier*
+libraries/metrics/**
+package-lock.json
+package.json
+patches/**

+ 7 - 0
libraries/mongo-utils/.jenkinsIncludeFile

@@ -0,0 +1,7 @@
+# Autogenerated by build scripts. Do not edit.
+.eslint*
+.prettier*
+libraries/mongo-utils/**
+package-lock.json
+package.json
+patches/**

+ 7 - 0
libraries/o-error/.jenkinsIncludeFile

@@ -0,0 +1,7 @@
+# Autogenerated by build scripts. Do not edit.
+.eslint*
+.prettier*
+libraries/o-error/**
+package-lock.json
+package.json
+patches/**

+ 12 - 0
libraries/object-persistor/.jenkinsIncludeFile

@@ -0,0 +1,12 @@
+# Autogenerated by build scripts. Do not edit.
+.eslint*
+.prettier*
+libraries/fetch-utils/**
+libraries/logger/**
+libraries/metrics/**
+libraries/o-error/**
+libraries/object-persistor/**
+libraries/stream-utils/**
+package-lock.json
+package.json
+patches/**

+ 8 - 0
libraries/overleaf-editor-core/.jenkinsIncludeFile

@@ -0,0 +1,8 @@
+# Autogenerated by build scripts. Do not edit.
+.eslint*
+.prettier*
+libraries/o-error/**
+libraries/overleaf-editor-core/**
+package-lock.json
+package.json
+patches/**

+ 7 - 0
libraries/promise-utils/.jenkinsIncludeFile

@@ -0,0 +1,7 @@
+# Autogenerated by build scripts. Do not edit.
+.eslint*
+.prettier*
+libraries/promise-utils/**
+package-lock.json
+package.json
+patches/**

+ 7 - 0
libraries/ranges-tracker/.jenkinsIncludeFile

@@ -0,0 +1,7 @@
+# Autogenerated by build scripts. Do not edit.
+.eslint*
+.prettier*
+libraries/ranges-tracker/**
+package-lock.json
+package.json
+patches/**

+ 10 - 0
libraries/redis-wrapper/.jenkinsIncludeFile

@@ -0,0 +1,10 @@
+# Autogenerated by build scripts. Do not edit.
+.eslint*
+.prettier*
+libraries/fetch-utils/**
+libraries/logger/**
+libraries/o-error/**
+libraries/redis-wrapper/**
+package-lock.json
+package.json
+patches/**

+ 7 - 0
libraries/settings/.jenkinsIncludeFile

@@ -0,0 +1,7 @@
+# Autogenerated by build scripts. Do not edit.
+.eslint*
+.prettier*
+libraries/settings/**
+package-lock.json
+package.json
+patches/**

+ 7 - 0
libraries/stream-utils/.jenkinsIncludeFile

@@ -0,0 +1,7 @@
+# Autogenerated by build scripts. Do not edit.
+.eslint*
+.prettier*
+libraries/stream-utils/**
+package-lock.json
+package.json
+patches/**

+ 8 - 0
libraries/validation-tools/.jenkinsIncludeFile

@@ -0,0 +1,8 @@
+# Autogenerated by build scripts. Do not edit.
+.eslint*
+.prettier*
+libraries/o-error/**
+libraries/validation-tools/**
+package-lock.json
+package.json
+patches/**

+ 4 - 1
package-lock.json

@@ -52057,7 +52057,9 @@
         "zod-validation-error": "^4.0.1"
       },
       "devDependencies": {
+        "chai": "^4.3.6",
         "chai-as-promised": "^7.1.1",
+        "mocha": "^11.1.0",
         "typescript": "^5.0.4",
         "vitest": "^3.2.4"
       }
@@ -52569,6 +52571,7 @@
         "nodemailer": "^6.7.0",
         "on-headers": "^1.0.2",
         "otplib": "^12.0.1",
+        "overleaf-editor-core": "*",
         "p-limit": "^2.3.0",
         "p-props": "4.0.0",
         "p-queue": "^8.1.0",
@@ -52626,6 +52629,7 @@
         "@lezer/markdown": "^1.4.3",
         "@overleaf/codemirror-tree-view": "^0.1.3",
         "@overleaf/dictionaries": "https://github.com/overleaf/dictionaries/archive/refs/tags/v0.0.3.tar.gz",
+        "@overleaf/eslint-plugin": "*",
         "@overleaf/ranges-tracker": "*",
         "@overleaf/stream-utils": "*",
         "@pmmmwh/react-refresh-webpack-plugin": "^0.5.16",
@@ -52756,7 +52760,6 @@
         "mock-fs": "^5.1.2",
         "nock": "^13.5.6",
         "nvd3": "^1.8.6",
-        "overleaf-editor-core": "*",
         "p-reflect": "^3.1.0",
         "pdfjs-dist": "5.1.91",
         "pirates": "^4.0.1",

+ 13 - 0
services/chat/.jenkinsIncludeFile

@@ -0,0 +1,13 @@
+# Autogenerated by build scripts. Do not edit.
+.eslint*
+.prettier*
+libraries/fetch-utils/**
+libraries/logger/**
+libraries/metrics/**
+libraries/mongo-utils/**
+libraries/o-error/**
+libraries/settings/**
+package-lock.json
+package.json
+patches/**
+services/chat/**

+ 14 - 0
services/clsi/.jenkinsIncludeFile

@@ -0,0 +1,14 @@
+# Autogenerated by build scripts. Do not edit.
+.eslint*
+.prettier*
+libraries/fetch-utils/**
+libraries/logger/**
+libraries/metrics/**
+libraries/o-error/**
+libraries/promise-utils/**
+libraries/settings/**
+libraries/stream-utils/**
+package-lock.json
+package.json
+patches/**
+services/clsi/**

+ 0 - 1
services/clsi/buildscript.txt

@@ -7,5 +7,4 @@ clsi
 --esmock-loader=False
 --node-version=22.18.0
 --public-repo=True
---script-version=4.7.0
 --use-large-ci-runner=True

+ 7 - 4
services/contacts/.jenkinsIncludeFile

@@ -1,10 +1,13 @@
+# Autogenerated by build scripts. Do not edit.
+.eslint*
+.prettier*
+libraries/fetch-utils/**
 libraries/logger/**
 libraries/metrics/**
 libraries/mongo-utils/**
+libraries/o-error/**
 libraries/settings/**
+package-lock.json
+package.json
 patches/**
 services/contacts/**
-.eslint*
-.prettier*
-package.json
-package-lock.json

+ 16 - 0
services/docstore/.jenkinsIncludeFile

@@ -0,0 +1,16 @@
+# Autogenerated by build scripts. Do not edit.
+.eslint*
+.prettier*
+libraries/fetch-utils/**
+libraries/logger/**
+libraries/metrics/**
+libraries/mongo-utils/**
+libraries/o-error/**
+libraries/object-persistor/**
+libraries/promise-utils/**
+libraries/settings/**
+libraries/stream-utils/**
+package-lock.json
+package.json
+patches/**
+services/docstore/**

+ 17 - 0
services/document-updater/.jenkinsIncludeFile

@@ -0,0 +1,17 @@
+# Autogenerated by build scripts. Do not edit.
+.eslint*
+.prettier*
+libraries/fetch-utils/**
+libraries/logger/**
+libraries/metrics/**
+libraries/mongo-utils/**
+libraries/o-error/**
+libraries/overleaf-editor-core/**
+libraries/promise-utils/**
+libraries/ranges-tracker/**
+libraries/redis-wrapper/**
+libraries/settings/**
+package-lock.json
+package.json
+patches/**
+services/document-updater/**

+ 14 - 0
services/filestore/.jenkinsIncludeFile

@@ -0,0 +1,14 @@
+# Autogenerated by build scripts. Do not edit.
+.eslint*
+.prettier*
+libraries/fetch-utils/**
+libraries/logger/**
+libraries/metrics/**
+libraries/o-error/**
+libraries/object-persistor/**
+libraries/settings/**
+libraries/stream-utils/**
+package-lock.json
+package.json
+patches/**
+services/filestore/**

+ 18 - 0
services/history-v1/.jenkinsIncludeFile

@@ -0,0 +1,18 @@
+# Autogenerated by build scripts. Do not edit.
+.eslint*
+.prettier*
+libraries/fetch-utils/**
+libraries/logger/**
+libraries/metrics/**
+libraries/mongo-utils/**
+libraries/o-error/**
+libraries/object-persistor/**
+libraries/overleaf-editor-core/**
+libraries/promise-utils/**
+libraries/redis-wrapper/**
+libraries/settings/**
+libraries/stream-utils/**
+package-lock.json
+package.json
+patches/**
+services/history-v1/**

+ 15 - 0
services/notifications/.jenkinsIncludeFile

@@ -0,0 +1,15 @@
+# Autogenerated by build scripts. Do not edit.
+.eslint*
+.prettier*
+libraries/fetch-utils/**
+libraries/logger/**
+libraries/metrics/**
+libraries/mongo-utils/**
+libraries/o-error/**
+libraries/promise-utils/**
+libraries/settings/**
+libraries/validation-tools/**
+package-lock.json
+package.json
+patches/**
+services/notifications/**

+ 17 - 0
services/project-history/.jenkinsIncludeFile

@@ -0,0 +1,17 @@
+# Autogenerated by build scripts. Do not edit.
+.eslint*
+.prettier*
+libraries/fetch-utils/**
+libraries/logger/**
+libraries/metrics/**
+libraries/mongo-utils/**
+libraries/o-error/**
+libraries/overleaf-editor-core/**
+libraries/promise-utils/**
+libraries/redis-wrapper/**
+libraries/settings/**
+libraries/stream-utils/**
+package-lock.json
+package.json
+patches/**
+services/project-history/**

+ 13 - 0
services/real-time/.jenkinsIncludeFile

@@ -0,0 +1,13 @@
+# Autogenerated by build scripts. Do not edit.
+.eslint*
+.prettier*
+libraries/fetch-utils/**
+libraries/logger/**
+libraries/metrics/**
+libraries/o-error/**
+libraries/redis-wrapper/**
+libraries/settings/**
+package-lock.json
+package.json
+patches/**
+services/real-time/**

+ 19 - 4
services/web/.jenkinsIncludeFile

@@ -1,7 +1,22 @@
-libraries/**
-patches/**
-services/web/**
+# Autogenerated by build scripts. Do not edit.
 .eslint*
 .prettier*
-package.json
+libraries/access-token-encryptor/**
+libraries/eslint-plugin/**
+libraries/fetch-utils/**
+libraries/logger/**
+libraries/metrics/**
+libraries/mongo-utils/**
+libraries/o-error/**
+libraries/object-persistor/**
+libraries/overleaf-editor-core/**
+libraries/promise-utils/**
+libraries/ranges-tracker/**
+libraries/redis-wrapper/**
+libraries/settings/**
+libraries/stream-utils/**
+libraries/validation-tools/**
 package-lock.json
+package.json
+patches/**
+services/web/**

+ 10 - 0
services/web/buildscript.txt

@@ -0,0 +1,10 @@
+web
+--only-jenkins-include-file=True
+--dependencies=
+--docker-repos=us-east1-docker.pkg.dev/overleaf-ops/ol-docker
+--env-add=
+--env-pass-through=
+--esmock-loader=False
+--node-version=22.18.0
+--public-repo=False
+--script-version=4.7.0

+ 1 - 0
services/web/package.json

@@ -216,6 +216,7 @@
     "@lezer/markdown": "^1.4.3",
     "@overleaf/codemirror-tree-view": "^0.1.3",
     "@overleaf/dictionaries": "https://github.com/overleaf/dictionaries/archive/refs/tags/v0.0.3.tar.gz",
+    "@overleaf/eslint-plugin": "*",
     "@overleaf/ranges-tracker": "*",
     "@overleaf/stream-utils": "*",
     "@pmmmwh/react-refresh-webpack-plugin": "^0.5.16",