Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): introduce declarative pod specs #4139

Merged
merged 2 commits into from
Sep 18, 2024
Merged

Conversation

mboskamp
Copy link
Member

@mboskamp mboskamp self-assigned this Feb 28, 2024
@mboskamp mboskamp added the ci:jdk Runs the builds for all supported Java versions. label Mar 22, 2024
@mboskamp mboskamp added ci:all-as Runs the builds for all application servers. ci:all-db Runs the builds for all databases. ci:default-build Runs the builds that have no explicit trigger (e.g. different history levels). ci:migration Runs the process instance migration builds. ci:rest-api Runs extra builds for the REST API (currently only WLS compatibility builds). ci:rolling-update Runs the rolling update builds. labels May 23, 2024
@mboskamp
Copy link
Member Author

CI stage failure analysis

I ran the CI with the following labels to understand the impact of the CI changes. Find the analysis of the failures below.
CI labels:

  • ci:all-as
  • ci:all-db
  • ci:default-build
  • ci:jdk
  • ci:migration
  • ci:rest-api
  • ci:rolling-update

ASSEMBLY

Camunda Platform - Webapp - Root

Type: build error
Name: EACCES
Rootcause: unknown

Log

[2024-05-28T10:47:34.945Z] [INFO] npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
[2024-05-28T10:47:35.747Z] [INFO] npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
[2024-05-28T10:47:35.747Z] [INFO] npm ERR! code EACCES
[2024-05-28T10:47:35.747Z] [INFO] npm ERR! syscall open
[2024-05-28T10:47:35.747Z] [INFO] npm ERR! path /.npmrc
[2024-05-28T10:47:35.747Z] [INFO] npm ERR! errno -13
[2024-05-28T10:47:35.747Z] [INFO] npm ERR! Error: EACCES: permission denied, open '/.npmrc'
[2024-05-28T10:47:35.747Z] [INFO] npm ERR!  [Error: EACCES: permission denied, open '/.npmrc'] {
[2024-05-28T10:47:35.747Z] [INFO] npm ERR!   errno: -13,
[2024-05-28T10:47:35.747Z] [INFO] npm ERR!   code: 'EACCES',
[2024-05-28T10:47:35.747Z] [INFO] npm ERR!   syscall: 'open',
[2024-05-28T10:47:35.747Z] [INFO] npm ERR!   path: '/.npmrc'
[2024-05-28T10:47:35.747Z] [INFO] npm ERR! }
[2024-05-28T10:47:35.747Z] [INFO] npm ERR! 
[2024-05-28T10:47:35.747Z] [INFO] npm ERR! The operation was rejected by your operating system.
[2024-05-28T10:47:35.747Z] [INFO] npm ERR! It is likely you do not have the permissions to access this file as the current user
[2024-05-28T10:47:35.747Z] [INFO] npm ERR! 
[2024-05-28T10:47:35.747Z] [INFO] npm ERR! If you believe this might be a permissions issue, please double-check the
[2024-05-28T10:47:35.748Z] [INFO] npm ERR! permissions of the file and its containing directories, or try running
[2024-05-28T10:47:35.748Z] [INFO] npm ERR! the command again as root/Administrator.
[2024-05-28T10:47:35.748Z] [INFO] 
[2024-05-28T10:47:35.748Z] [INFO] npm ERR! A complete log of this run can be found in:
[2024-05-28T10:47:35.748Z] [INFO] npm ERR!     /home/jenkins/agent/workspace/22_cambpm-ce_cambpm-main_PR-4139/.npm/_logs/2024-05-28T10_47_35_621Z-debug-0.log
[2024-05-28T10:47:35.748Z] [INFO] node:child_process:902
[2024-05-28T10:47:35.748Z] [INFO]     throw err;
[2024-05-28T10:47:35.748Z] [INFO]     ^
[2024-05-28T10:47:35.748Z] [INFO] 
[2024-05-28T10:47:35.748Z] [INFO] Error: Command failed: npm set @xlts.dev:registry https://****/
[2024-05-28T10:47:35.748Z] [INFO] npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
[2024-05-28T10:47:35.748Z] [INFO] npm ERR! code EACCES
[2024-05-28T10:47:35.748Z] [INFO] npm ERR! syscall open
[2024-05-28T10:47:35.748Z] [INFO] npm ERR! path /.npmrc
[2024-05-28T10:47:35.748Z] [INFO] npm ERR! errno -13
[2024-05-28T10:47:35.748Z] [INFO] npm ERR! Error: EACCES: permission denied, open '/.npmrc'
[2024-05-28T10:47:35.748Z] [INFO] npm ERR!  [Error: EACCES: permission denied, open '/.npmrc'] {
[2024-05-28T10:47:35.748Z] [INFO] npm ERR!   errno: -13,
[2024-05-28T10:47:35.748Z] [INFO] npm ERR!   code: 'EACCES',
[2024-05-28T10:47:35.748Z] [INFO] npm ERR!   syscall: 'open',
[2024-05-28T10:47:35.748Z] [INFO] npm ERR!   path: '/.npmrc'
[2024-05-28T10:47:35.748Z] [INFO] npm ERR! }
[2024-05-28T10:47:35.748Z] [INFO] npm ERR! 
[2024-05-28T10:47:35.748Z] [INFO] npm ERR! The operation was rejected by your operating system.
[2024-05-28T10:47:35.748Z] [INFO] npm ERR! It is likely you do not have the permissions to access this file as the current user
[2024-05-28T10:47:35.749Z] [INFO] npm ERR! 
[2024-05-28T10:47:35.749Z] [INFO] npm ERR! If you believe this might be a permissions issue, please double-check the
[2024-05-28T10:47:35.749Z] [INFO] npm ERR! permissions of the file and its containing directories, or try running
[2024-05-28T10:47:35.749Z] [INFO] npm ERR! the command again as root/Administrator.
[2024-05-28T10:47:35.749Z] [INFO] 
[2024-05-28T10:47:35.749Z] [INFO] npm ERR! A complete log of this run can be found in:
[2024-05-28T10:47:35.749Z] [INFO] npm ERR!     /home/jenkins/agent/workspace/22_cambpm-ce_cambpm-main_PR-4139/.npm/_logs/2024-05-28T10_47_35_621Z-debug-0.log
[2024-05-28T10:47:35.749Z] [INFO] 
[2024-05-28T10:47:35.749Z] [INFO]     at checkExecSyncError (node:child_process:828:11)
[2024-05-28T10:47:35.749Z] [INFO]     at execSync (node:child_process:899:15)
[2024-05-28T10:47:35.749Z] [INFO]     at exec (/home/jenkins/agent/workspace/22_cambpm-ce_cambpm-main_PR-4139/webapps/frontend/scripts/xlts.js:23:10)
[2024-05-28T10:47:35.749Z] [INFO]     at Object.<anonymous> (/home/jenkins/agent/workspace/22_cambpm-ce_cambpm-main_PR-4139/webapps/frontend/scripts/xlts.js:41:3)
[2024-05-28T10:47:35.749Z] [INFO]     at Module._compile (node:internal/modules/cjs/loader:1099:14)
[2024-05-28T10:47:35.749Z] [INFO]     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
[2024-05-28T10:47:35.749Z] [INFO]     at Module.load (node:internal/modules/cjs/loader:975:32)
[2024-05-28T10:47:35.749Z] [INFO]     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
[2024-05-28T10:47:35.749Z] [INFO]     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) {
[2024-05-28T10:47:35.750Z] [INFO]   status: 243,
[2024-05-28T10:47:35.750Z] [INFO]   signal: null,
[2024-05-28T10:47:35.750Z] [INFO]   output: [
[2024-05-28T10:47:35.750Z] [INFO]     null,
[2024-05-28T10:47:35.750Z] [INFO]     Buffer(0) [Uint8Array] [],
[2024-05-28T10:47:35.750Z] [INFO]     Buffer(982) [Uint8Array] [
[2024-05-28T10:47:35.750Z] [INFO]       110, 112, 109,  32,  87,  65,  82,  78,  32,  99, 111, 110,
[2024-05-28T10:47:35.750Z] [INFO]       102, 105, 103,  32, 103, 108, 111,  98,  97, 108,  32,  96,
[2024-05-28T10:47:35.750Z] [INFO]        45,  45, 103, 108, 111,  98,  97, 108,  96,  44,  32,  96,
[2024-05-28T10:47:35.750Z] [INFO]        45,  45, 108, 111,  99,  97, 108,  96,  32,  97, 114, 101,
[2024-05-28T10:47:35.750Z] [INFO]        32, 100, 101, 112, 114, 101,  99,  97, 116, 101, 100,  46,
[2024-05-28T10:47:35.750Z] [INFO]        32,  85, 115, 101,  32,  96,  45,  45, 108, 111,  99,  97,
[2024-05-28T10:47:35.750Z] [INFO]       116, 105, 111, 110,  61, 103, 108, 111,  98,  97, 108,  96,
[2024-05-28T10:47:35.750Z] [INFO]        32, 105, 110, 115, 116, 101,  97, 100,  46,  10, 110, 112,
[2024-05-28T10:47:35.750Z] [INFO]       109,  32,  69,  82,
[2024-05-28T10:47:35.750Z] [INFO]       ... 882 more items
[2024-05-28T10:47:35.750Z] [INFO]     ]
[2024-05-28T10:47:35.750Z] [INFO]   ],
[2024-05-28T10:47:35.750Z] [INFO]   pid: 4668,
[2024-05-28T10:47:35.750Z] [INFO]   stdout: Buffer(0) [Uint8Array] [],
[2024-05-28T10:47:35.750Z] [INFO]   stderr: Buffer(982) [Uint8Array] [
[2024-05-28T10:47:35.750Z] [INFO]     110, 112, 109,  32,  87,  65,  82,  78,  32,  99, 111, 110,
[2024-05-28T10:47:35.750Z] [INFO]     102, 105, 103,  32, 103, 108, 111,  98,  97, 108,  32,  96,
[2024-05-28T10:47:35.750Z] [INFO]      45,  45, 103, 108, 111,  98,  97, 108,  96,  44,  32,  96,
[2024-05-28T10:47:35.750Z] [INFO]      45,  45, 108, 111,  99,  97, 108,  96,  32,  97, 114, 101,
[2024-05-28T10:47:35.751Z] [INFO]      32, 100, 101, 112, 114, 101,  99,  97, 116, 101, 100,  46,
[2024-05-28T10:47:35.751Z] [INFO]      32,  85, 115, 101,  32,  96,  45,  45, 108, 111,  99,  97,
[2024-05-28T10:47:35.751Z] [INFO]     116, 105, 111, 110,  61, 103, 108, 111,  98,  97, 108,  96,
[2024-05-28T10:47:35.751Z] [INFO]      32, 105, 110, 115, 116, 101,  97, 100,  46,  10, 110, 112,
[2024-05-28T10:47:35.751Z] [INFO]     109,  32,  69,  82,
[2024-05-28T10:47:35.751Z] [INFO]     ... 882 more items
[2024-05-28T10:47:35.751Z] [INFO]   ]
[2024-05-28T10:47:35.751Z] [INFO] }
[2024-05-28T10:47:35.751Z] [INFO] 
[2024-05-28T10:47:35.751Z] [INFO] Node.js v17.9.1

Camunda Platform - webapp - webjar

Type: build error, phantom error
Name: -
Rootcause: unknown, possibly caused by EACCES
notes: no error in the log, failure indicated in the Maven reactor summary.

Distro EE

Camunda Platform EE - Webapp - Plugins - Root

Type: build error
Name: EUSAGE
Rootcause: unknown, possibly out-of-sync package.json and package-lock.json

Details

[2024-05-28T11:16:55.935Z] [INFO] npm ERR! code EUSAGE
[2024-05-28T11:16:55.935Z] [INFO] npm ERR! 
[2024-05-28T11:16:55.935Z] [INFO] npm ERR! `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
[2024-05-28T11:16:55.935Z] [INFO] npm ERR! 
[2024-05-28T11:16:55.935Z] [INFO] npm ERR! Missing: [email protected] from lock file
[2024-05-28T11:16:55.935Z] [INFO] npm ERR! Missing: [email protected] from lock file
[2024-05-28T11:16:55.935Z] [INFO] npm ERR! Missing: [email protected] from lock file
[2024-05-28T11:16:55.935Z] [INFO] npm ERR! Missing: [email protected] from lock file
[2024-05-28T11:16:55.935Z] [INFO] npm ERR! Missing: [email protected] from lock file
[2024-05-28T11:16:55.935Z] [INFO] npm ERR! Missing: [email protected] from lock file
[2024-05-28T11:16:55.935Z] [INFO] npm ERR! Missing: [email protected] from lock file
[2024-05-28T11:16:55.935Z] [INFO] npm ERR! Missing: [email protected] from lock file
[2024-05-28T11:16:55.936Z] [INFO] npm ERR! Missing: [email protected] from lock file
[2024-05-28T11:16:55.936Z] [INFO] npm ERR! 
[2024-05-28T11:16:55.936Z] [INFO] npm ERR! Clean install a project
[2024-05-28T11:16:55.936Z] [INFO] npm ERR! 
[2024-05-28T11:16:55.936Z] [INFO] npm ERR! Usage:
[2024-05-28T11:16:55.936Z] [INFO] npm ERR! npm ci
[2024-05-28T11:16:55.936Z] [INFO] npm ERR! 
[2024-05-28T11:16:55.936Z] [INFO] npm ERR! Options:
[2024-05-28T11:16:55.936Z] [INFO] npm ERR! [--no-audit] [--foreground-scripts] [--ignore-scripts]
[2024-05-28T11:16:55.936Z] [INFO] npm ERR! [--script-shell <script-shell>]
[2024-05-28T11:16:55.936Z] [INFO] npm ERR! 
[2024-05-28T11:16:55.936Z] [INFO] npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
[2024-05-28T11:16:55.936Z] [INFO] npm ERR! 
[2024-05-28T11:16:55.936Z] [INFO] npm ERR! Run "npm help ci" for more info
[2024-05-28T11:16:55.936Z] [INFO] 
[2024-05-28T11:16:55.936Z] [INFO] npm ERR! A complete log of this run can be found in:
[2024-05-28T11:16:55.936Z] [INFO] npm ERR!     /home/camunda/.npm/_logs/2024-05-28T11_16_52_623Z-debug-0.log

parent/pom.xml Show resolved Hide resolved
@mboskamp mboskamp added ci:skipTests Skips tests execution in Assembly and Distro-ee stages. and removed ci:all-as Runs the builds for all application servers. ci:all-db Runs the builds for all databases. ci:default-build Runs the builds that have no explicit trigger (e.g. different history levels). ci:migration Runs the process instance migration builds. ci:rest-api Runs extra builds for the REST API (currently only WLS compatibility builds). ci:rolling-update Runs the rolling update builds. labels Jun 12, 2024
@mboskamp mboskamp added the ci:e2e Runs the frontend end-to-end tests. label Jun 21, 2024
@mboskamp mboskamp added ci:all-as Runs the builds for all application servers. ci:all-db Runs the builds for all databases. ci:default-build Runs the builds that have no explicit trigger (e.g. different history levels). ci:migration Runs the process instance migration builds. ci:rest-api Runs extra builds for the REST API (currently only WLS compatibility builds). ci:rolling-update Runs the rolling update builds. labels Jul 23, 2024
@mboskamp mboskamp removed ci:e2e Runs the frontend end-to-end tests. ci:migration Runs the process instance migration builds. ci:rest-api Runs extra builds for the REST API (currently only WLS compatibility builds). ci:rolling-update Runs the rolling update builds. labels Aug 8, 2024
@mboskamp mboskamp added ci:rest-api Runs extra builds for the REST API (currently only WLS compatibility builds). ci:webapp-integration Runs the webapp integration builds. and removed ci:all-as Runs the builds for all application servers. ci:all-db Runs the builds for all databases. ci:default-build Runs the builds that have no explicit trigger (e.g. different history levels). labels Aug 12, 2024
@mboskamp mboskamp removed the ci:skipTests Skips tests execution in Assembly and Distro-ee stages. label Aug 27, 2024
@mboskamp mboskamp force-pushed the 52-declarative-pod-specs branch 2 times, most recently from b4ff922 to efa3aee Compare September 2, 2024 09:26
@mboskamp
Copy link
Member Author

mboskamp commented Sep 2, 2024

Current state:

Open TODOs:

@mboskamp mboskamp marked this pull request as ready for review September 16, 2024 08:34
@mboskamp mboskamp added the ci:e2e Runs the frontend end-to-end tests. label Sep 16, 2024
@psavidis
Copy link
Contributor

psavidis commented Sep 17, 2024

Review

Stages Confirmed

  • ASSEMBLY - screenshot
  • stage-restapi-docs - screenshot - Runs only on master or version branches.
  • platform-jdk-openjdk-jdk-11-latest - screenshot
  • platform-jdk-openjdk-jdk-17-latest - screenshot
  • platform-jdk-jdk-11-latest - Will be treated in separate PR
  • platform-jdk-jdk-17-latest - Will be treated in separate PR

@mboskamp Do we have an execution for demonstrates the usage of the podspec for the stage-restapi-docs stage?

❓Is my understanding correct that the jdk-11-latest and jdk-17-latest are going to be treated separately in another PR?

@mboskamp
Copy link
Member Author

@mboskamp Do we have an execution for demonstrates the usage of the podspec for the stage-restapi-docs stage?

Looking at the condition for stage-restapi-docs I believe it only runs on master or version branches (e.g. 7.21). See also cambpmDefaultBranch.

❓Is my understanding correct that the jdk-11-latest and jdk-17-latest are going to be treated separately in another PR?
Correct, there is a follow-up ticket for re-introducing the following stages:

  • platform-jdk-jdk-21-latest
  • platform-jdk-jdk-17-latest
  • platform-jdk-jdk-11-latest

@mboskamp mboskamp merged commit b22d963 into master Sep 18, 2024
8 checks passed
@mboskamp mboskamp deleted the 52-declarative-pod-specs branch September 18, 2024 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:e2e Runs the frontend end-to-end tests. ci:jdk Runs the builds for all supported Java versions. ci:rest-api Runs extra builds for the REST API (currently only WLS compatibility builds). ci:webapp-integration Runs the webapp integration builds.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants