Branch indexing Connecting to https://api.github.com using GitHub bot (username/token) Obtained Jenkinsfile from f0c9821653080bcdb88d5be974d2308ccc7b963f [Pipeline] Start of Pipeline [Pipeline] echo [WARNING] label option is deprecated. To use a static pod template, use the 'inheritFrom' option. [Pipeline] podTemplate [Pipeline] { [Pipeline] node Created Pod: kubernetes sprotty/sprotty-agent-pod-6vz0d-43jbn Still waiting to schedule task β€˜sprotty-agent-pod-6vz0d-43jbn’ is offline Agent sprotty-agent-pod-6vz0d-43jbn is provisioned from template sprotty-agent-pod-6vz0d --- apiVersion: "v1" kind: "Pod" metadata: annotations: buildUrl: "http://jenkins-ui.sprotty.svc.cluster.local/sprotty/job/sprotty/job/master/146/" runUrl: "job/sprotty/job/master/146/" labels: jenkins: "slave" jenkins/label-digest: "94c9ac7d111dbbd882706642673985e1e8e78a4d" jenkins/label: "sprotty-agent-pod" name: "sprotty-agent-pod-6vz0d-43jbn" namespace: "sprotty" spec: containers: - image: "node:16-alpine" name: "node" resources: limits: memory: "2Gi" cpu: "1" requests: memory: "2Gi" cpu: "1" tty: true volumeMounts: - mountPath: "/.yarn" name: "yarn-global" readonly: false - mountPath: "/home/jenkins/agent" name: "workspace-volume" readOnly: false - env: - name: "JENKINS_SECRET" value: "********" - name: "JENKINS_TUNNEL" value: "jenkins-discovery.sprotty.svc.cluster.local:50000" - name: "JENKINS_AGENT_NAME" value: "sprotty-agent-pod-6vz0d-43jbn" - name: "JENKINS_NAME" value: "sprotty-agent-pod-6vz0d-43jbn" - name: "JENKINS_AGENT_WORKDIR" value: "/home/jenkins/agent" - name: "JENKINS_URL" value: "http://jenkins-ui.sprotty.svc.cluster.local/sprotty/" image: "docker.io/eclipsecbi/jiro-agent-basic:remoting-4.13.3" name: "jnlp" resources: limits: {} requests: memory: "256Mi" cpu: "100m" volumeMounts: - mountPath: "/home/jenkins/agent" name: "workspace-volume" readOnly: false nodeSelector: kubernetes.io/os: "linux" restartPolicy: "Never" volumes: - emptyDir: {} name: "yarn-global" - emptyDir: medium: "" name: "workspace-volume" Created Pod: kubernetes sprotty/sprotty-agent-pod-6vz0d-5d9d0 Running on sprotty-agent-pod-6vz0d-43jbn in /home/jenkins/agent/workspace/sprotty_master [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) [Pipeline] checkout The recommended git tool is: git using credential github-bot Cloning the remote Git repository Cloning with configured refspecs honoured and without tags Cloning repository https://github.com/eclipse/sprotty.git > git init /home/jenkins/agent/workspace/sprotty_master # timeout=10 Fetching upstream changes from https://github.com/eclipse/sprotty.git > git --version # timeout=10 > git --version # 'git version 2.20.1' using GIT_ASKPASS to set credentials GitHub bot (username/token) > git fetch --no-tags --force --progress -- https://github.com/eclipse/sprotty.git +refs/heads/master:refs/remotes/origin/master # timeout=10 Avoid second fetch Checking out Revision f0c9821653080bcdb88d5be974d2308ccc7b963f (master) > git config remote.origin.url https://github.com/eclipse/sprotty.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/master:refs/remotes/origin/master # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f f0c9821653080bcdb88d5be974d2308ccc7b963f # timeout=10 Commit message: "Cleanup deprecated types (#332)" > git rev-list --no-walk 584a701ad9f87c2585ec986720d145663d8765cc # timeout=10 Cleaning workspace [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Build sprotty) [Pipeline] container [Pipeline] { [Pipeline] sh > git rev-parse --verify HEAD # timeout=10 Resetting working tree > git reset --hard # timeout=10 > git clean -fdx # timeout=10 + yarn install yarn install v1.22.19 [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... [4/4] Building fresh packages... $ lerna run prepare lerna notice cli v6.1.0 lerna info ci enabled > Lerna (powered by Nx) Running target prepare for 4 project(s): - sprotty-examples - sprotty-elk - sprotty-protocol - sprotty > sprotty-protocol:prepare (node:107) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 32 error listeners added to [SyncWriteStream]. Use emitter.setMaxListeners() to increase limit (Use `node --trace-warnings ...` to show where the warning was created) (node:107) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 32 close listeners added to [SyncWriteStream]. Use emitter.setMaxListeners() to increase limit (node:107) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 32 error listeners added to [SyncWriteStream]. Use emitter.setMaxListeners() to increase limit (node:107) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 32 close listeners added to [SyncWriteStream]. Use emitter.setMaxListeners() to increase limit sprotty-protocol: yarn run v1.22.19 sprotty-protocol: $ yarn run clean && yarn run build sprotty-protocol: $ rimraf lib artifacts sprotty-protocol: $ tsc -p ./tsconfig.json && yarn run lint sprotty-protocol: $ eslint -c ../../configs/.eslintrc.js "src/**/!(*.spec.ts*)" sprotty-protocol: Done in 24.81s. > sprotty-elk:prepare > sprotty:prepare sprotty-elk: yarn run v1.22.19 sprotty-elk: $ yarn run clean && yarn run build sprotty: yarn run v1.22.19 sprotty: $ yarn run clean && yarn run build sprotty-elk: $ rimraf lib artifacts sprotty: $ rimraf lib artifacts sprotty-elk: $ tsc -p ./tsconfig.json && yarn run lint sprotty: $ tsc -p ./tsconfig.json && yarn run lint sprotty-elk: $ eslint -c ../../configs/.eslintrc.js "src/**/!(*.spec.ts*)" sprotty: $ eslint -c ../../configs/.eslintrc.js "src/**/!(*.spec.ts*|test-helper.ts)" sprotty-elk: Done in 67.90s. sprotty: Done in 88.52s. > sprotty-examples:prepare sprotty-examples: yarn run v1.22.19 sprotty-examples: $ yarn run build sprotty-examples: $ webpack && tsc sprotty-examples: asset bundle.js 2.92 MiB [emitted] (name: main) 1 related asset sprotty-examples: asset b797181c93b3755f4fa1.ttf?0e5b0adf625a37fbcd638d31f0fe72aa 70.8 KiB [emitted] [immutable] [from: ../node_modules/@vscode/codicons/dist/codicon.ttf?0e5b0adf625a37fbcd638d31f0fe72aa] (auxiliary name: main) sprotty-examples: runtime modules 2.42 KiB 8 modules sprotty-examples: orphan modules 11 bytes [orphan] 1 module sprotty-examples: modules by path ../ 2.58 MiB (javascript) 70.8 KiB (asset) sprotty-examples: modules by path ../packages/ 873 KiB sprotty-examples: modules by path ../packages/sprotty/lib/ 790 KiB 159 modules sprotty-examples: modules by path ../packages/sprotty-protocol/lib/ 50.9 KiB 11 modules sprotty-examples: modules by path ../packages/sprotty/css/*.css 17.6 KiB 6 modules sprotty-examples: modules by path ../packages/sprotty-elk/lib/*.js 14.7 KiB 2 modules sprotty-examples: modules by path ../node_modules/ 1.73 MiB (javascript) 70.8 KiB (asset) 75 modules sprotty-examples: modules by path ./ 123 KiB 35 modules sprotty-examples: webpack 5.75.0 compiled successfully in 29051 ms sprotty-examples: Done in 45.47s. > Lerna (powered by Nx) Successfully ran target prepare for 4 projects Done in 275.89s. [Pipeline] sh + yarn test yarn run v1.22.19 $ lerna run test lerna notice cli v6.1.0 lerna info ci enabled > Lerna (powered by Nx) Running target test for 3 project(s): - sprotty-elk - sprotty-protocol - sprotty > sprotty-protocol:test (node:682) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 32 error listeners added to [SyncWriteStream]. Use emitter.setMaxListeners() to increase limit (Use `node --trace-warnings ...` to show where the warning was created) (node:682) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 32 close listeners added to [SyncWriteStream]. Use emitter.setMaxListeners() to increase limit (node:682) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 32 error listeners added to [SyncWriteStream]. Use emitter.setMaxListeners() to increase limit (node:682) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 32 close listeners added to [SyncWriteStream]. Use emitter.setMaxListeners() to increase limit sprotty-protocol: $ mocha --config ../../configs/.mocharc.json "./src/**/*.spec.?(ts|tsx)" sprotty-protocol: Warning: Cannot find any files matching pattern "**/*spec.tsx" sprotty-protocol:  sprotty-protocol:  DiagramServer sprotty-protocol:  βœ” sets the model without client or server layout sprotty-protocol:  βœ” sets the model with server layout, but without client layout sprotty-protocol:  βœ” requests bounds with client layout, but without server layout sprotty-protocol:  βœ” requests bounds with client and server layout, then processes the bounds sprotty-protocol:  βœ” calls a registered action handler sprotty-protocol: Unhandled action from client: foo sprotty-protocol:  βœ” does not call an unregistered action handler sprotty-protocol:  SModelIndex sprotty-protocol:  βœ” returns the parent element for an external model sprotty-protocol:  βœ” returns the root element for an external model sprotty-protocol:  almostEquals sprotty-protocol:  βœ” returns false for clearly different values sprotty-protocol:  βœ” returns true for almost equal values sprotty-protocol:  Point sprotty-protocol:  euclideanDistance sprotty-protocol:  βœ” works as expected sprotty-protocol:  manhattanDistance sprotty-protocol:  βœ” works as expected sprotty-protocol:  Bounds sprotty-protocol:  combine sprotty-protocol:  βœ” includes all corner points of the input bounds sprotty-protocol:  angleBetweenPoints sprotty-protocol:  βœ” computes a 90Β° angle correctly sprotty-protocol:  βœ” computes a 180Β° angle correctly sprotty-protocol:   15 passing (34ms) > sprotty-elk:test > sprotty:test sprotty: $ jenkins-mocha --config ../../configs/.mocharc.json "./src/**/*.spec.?(ts|tsx)" sprotty-elk: $ jenkins-mocha --config ../../configs/.mocharc.json "./src/**/*.spec.?(ts|tsx)" sprotty-elk: Warning: Cannot find any files matching pattern "**/*spec.tsx" sprotty-elk:  sprotty-elk:  ElkLayoutEngine sprotty-elk:  βœ“ arranges a very simple graph (1099ms) sprotty-elk:  βœ“ arranges a graph with ports (91ms) sprotty-elk:   2 passing (1s) sprotty-elk: =============================== Coverage summary =============================== sprotty-elk: Statements : 74.71% ( 130/174 ) sprotty-elk: Branches : 58.13% ( 75/129 ) sprotty-elk: Functions : 73.8% ( 31/42 ) sprotty-elk: Lines : 74.71% ( 130/174 ) sprotty-elk: ================================================================================ sprotty:  sprotty:  ActionDispatcher sprotty:  βœ“ should execute/undo/redo (85ms) sprotty:  βœ“ should resolve/reject promises sprotty:  βœ“ should reject requests without handler (87ms) sprotty:  βœ“ should be able to resolve requests sprotty:  βœ“ should be able to reject requests (87ms) sprotty:  easing sprotty:  βœ“ test in/out (106ms) sprotty:  CommandRegistration sprotty:  βœ“ creates new instances sprotty:  βœ“ injects members sprotty:  CommandStack sprotty:  βœ“ calls viewer correctly sprotty:  βœ“ handles plain undo/redo sprotty:  βœ“ handles system command at the end sprotty:  βœ“ handles system command in the middle sprotty:  βœ“ handles merge command sprotty:  βœ“ handles hidden command sprotty:  InitializeCanvasBoundsCommand sprotty:  βœ“ execute() works as expected (73ms) sprotty:  βœ“ undo() works as expected sprotty:  βœ“ redo() works as expected sprotty:  SetModelCommand sprotty:  βœ“ execute() returns the new model sprotty:  βœ“ undo() returns the previous model sprotty:  βœ“ redo() returns the new model sprotty:  model factory sprotty:  βœ“ creates a single element from a schema sprotty:  βœ“ creates a root element and its chilren from a schema sprotty:  βœ“ detects duplicate ids and throws an error sprotty:  βœ“ does not overwrite reserved properties sprotty:  βœ“ gets default features for registered element sprotty:  βœ“ applies custom features for registered element sprotty:  SModelRoot sprotty:  βœ“ contains children after adding them sprotty:  βœ“ can reorder children sprotty:  βœ“ can remove children sprotty:  βœ“ correctly assigns the parent to children sprotty:  ModelIndexImpl sprotty:  βœ“ contains elements after adding them sprotty:  βœ“ does not contain elements after removing them sprotty:  CssClassPostprocessor sprotty:  βœ“ classes are not overwritten sprotty:  βœ“ subtype is appended as class sprotty:  βœ“ type is not appended as class sprotty:  ThunkView sprotty:  βœ“ renders on change sprotty:  base views sprotty:  βœ“ empty view sprotty:  βœ“ missing view sprotty:  findArgValue sprotty:  βœ“ returns undefined for missing keys sprotty:  βœ“ returns the value if found on first level sprotty:  βœ“ returns the value if found on second level sprotty:  βœ“ returns the value if found on third level sprotty:  βœ“ returns the complex value if found on third level sprotty:  βœ“ returns undefined for a type if missing sprotty:  βœ“ should return undefined if args are undefined sprotty:  SetBoundsCommand sprotty:  βœ“ execute() works as expected (43ms) sprotty:  βœ“ undo() works as expected sprotty:  βœ“ redo() works as expected sprotty:  HBoxLayouter sprotty:  βœ“ defaultParams sprotty:  βœ“ alignTop sprotty:  βœ“ alignBottom sprotty:  βœ“ padding sprotty:  βœ“ hGap sprotty:  βœ“ paddingFactor sprotty:  βœ“ issue-189 sprotty:  getAbsoluteBounds sprotty:  βœ“ should compute the absolute bounds of a bounds aware element sprotty:  StackLayouter sprotty:  βœ“ defaultParams sprotty:  βœ“ alignTopLeft sprotty:  βœ“ alignBottomRight sprotty:  βœ“ padding sprotty:  βœ“ paddingFactor sprotty:  VBoxLayouter sprotty:  βœ“ defaultParams sprotty:  βœ“ alignLeft sprotty:  βœ“ alignRight sprotty:  βœ“ padding sprotty:  βœ“ vGap sprotty:  βœ“ paddingFactor sprotty:  ShapeView.isVisible sprotty:  βœ“ should return true when an element intersects the canvas bounds sprotty:  βœ“ should return false when the viewport is panned away sprotty:  βœ“ should return false when the viewport is zoomed away sprotty:  βœ“ should return true when rendered in a hidden context sprotty:  ContextMenuProviderRegistry sprotty:  βœ“ should return no items if there are no providers sprotty:  βœ“ should return no items with empty list of providers sprotty:  βœ“ should return the union of elements of all providers sprotty:  βœ“ should restructure items accoriding to parent IDs sprotty:  IntersectionFinder sprotty:  βœ“ finds no intersection between two horizontally parallel lines sprotty:  βœ“ finds no intersection between two vertically parallel lines sprotty:  βœ“ finds no intersection between two lines with the same starting point sprotty:  βœ“ finds no intersection between two lines with the same end point sprotty:  βœ“ finds an intersection between two polylines with one segment sprotty:  βœ“ finds three intersection between two polylines with three segments, each crossing sprotty:  βœ“ finds an intersection among three polylines whereas only two segments intersect ("1" and "3" at (2,2)) sprotty:  ExportSvgCommand sprotty:  βœ“ execute() clears selection sprotty:  βœ“ execute() removes hover feedback sprotty:  βœ“ execute() resets viewport sprotty:  hover sprotty:  mouseover result sprotty:  βœ“ is empty on hovering over non-hoverable elements sprotty:  βœ“ contains HoverFeedbackAction on hovering over an hoverable element sprotty:  βœ“ resets the hover feedback on hovering over another element sprotty:  βœ“ contains SetPopupModelAction if popup is open and hovering over an non-hoverable element sprotty:  βœ“ resets the hover feedback when moving out of another element sprotty:  βœ“ contains SetPopupModelAction and Promise if popup is open and previous target is not the same sprotty:  βœ“ contains nothing if popup is open and previous target is the same sprotty:  move sprotty:  βœ“ execute() works as expected sprotty:  βœ“ undo() works as expected sprotty:  βœ“ redo() works as expected sprotty:  getAbsoluteRouteBounds sprotty:  βœ“ should compute the absolute bounds of a routable element sprotty:  SConnectableElement sprotty:  βœ“ should compute outgoing edges with SGraph sprotty:  βœ“ should compute incoming edges with SGraph sprotty:  βœ“ should compute outgoing edges with SModelRoot sprotty:  βœ“ should compute incoming edges with SModelRoot sprotty:  RoutableView.isVisible sprotty:  βœ“ should return true when an element intersects the canvas bounds sprotty:  βœ“ should return false when the viewport is panned away sprotty:  βœ“ should return false when the viewport is zoomed away sprotty:  βœ“ should return true when rendered in a hidden context sprotty:  SelectCommand sprotty:  βœ“ execute() works as expected sprotty:  βœ“ undo() works as expected sprotty:  βœ“ redo() works as expected sprotty:  SelectAllCommand sprotty:  βœ“ execute() works as expected sprotty:  βœ“ undo() works as expected sprotty:  βœ“ redo() works as expected sprotty:  βœ“ execute() works as expected with deselect sprotty:  βœ“ undo() works as expected with deselect sprotty:  βœ“ redo() works as expected with deselect sprotty:  ModelMatcher sprotty:  βœ“ finds new elements sprotty:  βœ“ finds deleted elements sprotty:  βœ“ matches elements with equal id sprotty:  UpdateModelCommand sprotty:  βœ“ replaces the model if animation is suppressed sprotty:  βœ“ undo() returns the previous model sprotty:  βœ“ redo() returns the new model sprotty:  βœ“ fades in new elements sprotty:  βœ“ fades out deleted elements sprotty:  βœ“ moves relocated elements sprotty:  βœ“ combines fade and move animations sprotty:  βœ“ applies a given model diff sprotty:  βœ“ morphs edge sprotty:  βœ“ #190 removes relocated elements before adding them { animate: false } sprotty:  βœ“ #190 removes relocated elements before adding them { animate: true } sprotty:  βœ“ #190 removes container element and adds contained element { animate: false } sprotty:  βœ“ #190 removes container element and adds contained element { animate: true } sprotty:  BoundsAwareViewportCommand sprotty:  βœ“ execute() works as expected sprotty:  βœ“ undo() works as expected sprotty:  βœ“ redo() works as expected sprotty:  BringToFrontCommand sprotty:  βœ“ execute() works as expected sprotty:  βœ“ undo() works as expected sprotty:  βœ“ redo() works as expected sprotty:  SEdge sprotty:  βœ“ computes a simple route sprotty:  βœ“ skips a routing handle that is dragged for removal sprotty:  SGraphIndex sprotty:  βœ“ tracks outgoing edges of a node sprotty:  βœ“ tracks incoming edges of a node sprotty:  βœ“ does not contain outgoing or incoming edges after removing them sprotty:  anchor computation sprotty:  βœ“ correctly translates edge source position sprotty:  βœ“ correctly translates edge target position sprotty:  βœ“ correctly translates edge source to target position sprotty:  graph views sprotty:  βœ“ render an empty graph sprotty:  βœ“ render a straight edge sprotty:  βœ“ render a circle node sprotty:  βœ“ render a whole graph sprotty:  PolylineEdgeView sprotty:  βœ“ correctly translates edge source and target position sprotty:  βœ“ correctly translates edge target and source position sprotty:  JSX sprotty:  βœ“ should set namespace even for empty svg elements with no attributes sprotty:  βœ“ should convert prefixes of the jsx attribute to the key of the vnode sprotty:  virtualize (happy path) sprotty:  βœ“ should convert a single node with no children sprotty:  βœ“ should convert a node with text node sprotty:  βœ“ should convert nodes with children sprotty:  βœ“ should convert xml document sprotty:  βœ“ should convert a single node with attributes sprotty:  βœ“ should ignore empty attributes sprotty:  βœ“ should handle control characters in attribute values sprotty:  βœ“ should handle entities in attribute values sprotty:  βœ“ should ignore comments sprotty:  virtualize (bad path) sprotty:  βœ“ should return null when given null or empty string sprotty:  βœ“ should return parser error when given a single text node sprotty:  βœ“ should return parser error when gives multiple top-level nodes sprotty:  LocalModelSource sprotty:  βœ“ sets the model in fixed mode sprotty:  βœ“ requests bounds in dynamic mode sprotty:  βœ“ adds and removes elements sprotty:  βœ“ resolves promises in fixed mode sprotty:  βœ“ resolves promises in dynamic mode sprotty:  PointToPointLine sprotty:  angle sprotty:  βœ“ computes a 45Β° angle correctly sprotty:  βœ“ computes a 90Β° angle correctly sprotty:  βœ“ computes a 180Β° angle correctly sprotty:  intersection sprotty:  βœ“ finds intersection of crossing lines sprotty:  βœ“ returns `undefined` for parallel lines sprotty:  direction sprotty:  βœ“ correctly defines line to north sprotty:  βœ“ correctly defines line to north-east sprotty:  βœ“ correctly defines line to east sprotty:  βœ“ correctly defines line to south-east sprotty:  βœ“ correctly defines line to south sprotty:  βœ“ correctly defines line to south-west sprotty:  βœ“ correctly defines line to west sprotty:  βœ“ correctly defines line to north-west sprotty:  FluentIterableImpl sprotty:  βœ“ iterates elements sprotty:  βœ“ filters elements sprotty:  βœ“ maps elements sprotty:  βœ“ filters and maps elements sprotty:  ProviderRegistry sprotty:  βœ“ creates instances of registered classes sprotty:  βœ“ does not contain deregistered classes sprotty:  InstanceRegistry sprotty:  βœ“ returns the registered values sprotty:  βœ“ does not contain deregistered classes sprotty:   189 passing (1s) sprotty: =============================== Coverage summary =============================== sprotty: Statements : 59.07% ( 3373/5710 ) sprotty: Branches : 37.4% ( 977/2612 ) sprotty: Functions : 48.75% ( 528/1083 ) sprotty: Lines : 58.03% ( 3118/5373 ) sprotty: ================================================================================ > Lerna (powered by Nx) Successfully ran target test for 3 projects Done in 136.44s. [Pipeline] } [Pipeline] // container [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Deploy (master only)) [Pipeline] sh + git diff --name-only 'HEAD^' + grep --quiet '^packages' [Pipeline] build Scheduling project: deploy-sprotty [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] junit Recording test results [Checks API] No suitable checks publisher found. [Pipeline] archiveArtifacts Archiving artifacts [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // podTemplate [Pipeline] End of Pipeline Could not update commit status, please check if your scan credentials belong to a member of the organization or a collaborator of the repository and repo:status scope is selected GitHub has been notified of this commit’s build result Finished: SUCCESS