Started by timer Running as SYSTEM [EnvInject] - Loading node environment variables. Building remotely on sos-builder01-ubuntu18 (lin) in workspace /builds/workspace/casper [WS-CLEANUP] Deleting project workspace... [WS-CLEANUP] Deferred wipeout is used... [WS-CLEANUP] Done The recommended git tool is: NONE No credentials specified Wiping out workspace first. Cloning the remote Git repository Cloning repository https://github.com/Spirals-Team/casper.git > git init /builds/workspace/casper # timeout=10 Fetching upstream changes from https://github.com/Spirals-Team/casper.git > git --version # timeout=10 > git --version # 'git version 2.17.1' > git fetch --tags --progress -- https://github.com/Spirals-Team/casper.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url https://github.com/Spirals-Team/casper.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 Checking out Revision 554d30bbb156d20e0ac1ab452df25b87f47a4124 (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f 554d30bbb156d20e0ac1ab452df25b87f47a4124 # timeout=10 Commit message: "add support for Java 17" > git rev-list --no-walk 554d30bbb156d20e0ac1ab452df25b87f47a4124 # timeout=10 [casper] $ /bin/sh -xe /tmp/jenkins12646453929398663711.sh + curl https://gist.githubusercontent.com/monperrus/4bf62ca7bf369b73b01538b73d57e889/raw/inject_spoon_snapshot.py % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2153 100 2153 0 0 36491 0 --:--:-- --:--:-- --:--:-- 36491 + python3 -c #! /bin/python3 """Script for injecting the latest SNAPSHOT version of Spoon into all pom.xml files it finds in the current working directory or any subdirectory. Requires the ``defusedxml`` package to be installed separately. This script is compatible with Python 3.5+ """ import xml.etree.ElementTree as ET import subprocess import pathlib from typing import Optional SPOON_SNAPSHOT_REPO = """ <repository> <id>spoon-snapshot-repo</id> <name>Maven Repository for Spoon Snapshots</name> <url>https://oss.sonatype.org/content/repositories/snapshots/</url> <snapshots/> </repository> """ MAVEN_NAMESPACE = "http://maven.apache.org/POM/4.0.0" NAMESPACES = {"": MAVEN_NAMESPACE} MAVEN_VERSIONS_COMMAND = "mvn -B -U versions:use-latest-versions -DallowSnapshots -Dincludes=fr.inria.gforge.spoon".split() def main(): ET.register_namespace("", MAVEN_NAMESPACE) pom_file = pathlib.Path("pom.xml") inject_snapshot_repo(pom_file) subprocess.run(MAVEN_VERSIONS_COMMAND, cwd=str(pom_file.parent)) def inject_snapshot_repo(pom_file: pathlib.Path) -> None: tree = ET.parse(str(pom_file)) root = tree.getroot() repositories = root.find(in_maven_namespace("repositories")) if not repositories: repositories = ET.fromstring("<repositories></repositories>") root.append(repositories) snapshot_repo = ET.fromstring(SPOON_SNAPSHOT_REPO) snapshot_repo_url = snapshot_repo.find("url").text for repo in repositories.findall(in_maven_namespace("repository")): url = repo.find(in_maven_namespace("url")).text if url == snapshot_repo_url: return repositories.append(snapshot_repo) tree.write(str(pom_file)) def in_maven_namespace(tag: str) -> str: """Wrap the tag in the default Maven namespace. If porting this script to Python 3.6+, then this method can be removed and one can instead search with a default namespace like so: someElement.find(tag, namespaces={"": MAVEN_NAMESPACE}) This does not appear to work in Python 3.5 """ return "{{{}}}{}".format(MAVEN_NAMESPACE, tag) if __name__ == "__main__": main() Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8 [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for fr.inria.spirals:casper:jar:0.1 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 81, column 29 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml [INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml [INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (14 kB at 22 kB/s) [INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (21 kB at 32 kB/s) [INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/versions-maven-plugin/maven-metadata.xml [INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/versions-maven-plugin/maven-metadata.xml (1.3 kB at 68 kB/s) [INFO] [INFO] ----------------------< fr.inria.spirals:casper >----------------------- [INFO] Building casper 0.1 [INFO] from pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- versions:2.17.1:use-latest-versions (default-cli) @ casper --- [INFO] Downloading from snapshot: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-core/maven-metadata.xml [INFO] Downloading from central: https://repo.maven.apache.org/maven2/fr/inria/gforge/spoon/spoon-core/maven-metadata.xml [INFO] Downloaded from central: https://repo.maven.apache.org/maven2/fr/inria/gforge/spoon/spoon-core/maven-metadata.xml (11 kB at 417 kB/s) [INFO] Downloaded from snapshot: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-core/maven-metadata.xml (292 B at 733 B/s) [INFO] Updated fr.inria.gforge.spoon:spoon-core:jar:9.0.0 to version 11.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.376 s [INFO] Finished at: 2024-08-07T10:23:08+02:00 [INFO] ------------------------------------------------------------------------ + mvn clean test Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8 [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for fr.inria.spirals:casper:jar:0.1 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 81, column 29 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] ----------------------< fr.inria.spirals:casper >----------------------- [INFO] Building casper 0.1 [INFO] from pom.xml [INFO] --------------------------------[ jar ]--------------------------------- Downloading from snapshot: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-core/11.0.1-SNAPSHOT/maven-metadata.xml Progress (1): 1.4 kB Downloaded from snapshot: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-core/11.0.1-SNAPSHOT/maven-metadata.xml (1.4 kB at 1.7 kB/s) Downloading from snapshot: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-core/11.0.1-SNAPSHOT/spoon-core-11.0.1-20240806.010701-1.pom Progress (1): 7.8/9.7 kB Progress (1): 9.7 kB Downloaded from snapshot: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-core/11.0.1-SNAPSHOT/spoon-core-11.0.1-20240806.010701-1.pom (9.7 kB at 82 kB/s) Downloading from snapshot: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-pom/11.0.1-SNAPSHOT/maven-metadata.xml Progress (1): 609 B Downloaded from snapshot: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-pom/11.0.1-SNAPSHOT/maven-metadata.xml (609 B at 6.5 kB/s) Downloading from snapshot: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-pom/11.0.1-SNAPSHOT/spoon-pom-11.0.1-20240806.011242-1.pom Progress (1): 7.8/25 kB Progress (1): 8.6/25 kB Progress (1): 25 kB Downloaded from snapshot: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-pom/11.0.1-SNAPSHOT/spoon-pom-11.0.1-20240806.011242-1.pom (25 kB at 138 kB/s) Downloading from snapshot: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-core/11.0.1-SNAPSHOT/spoon-core-11.0.1-20240806.010701-1.jar Progress (1): 0/1.9 MB Progress (1): 0/1.9 MB Progress (1): 0/1.9 MB Progress (1): 0/1.9 MB Progress (1): 0/1.9 MB Progress (1): 0.1/1.9 MB Progress (1): 0.1/1.9 MB Progress (1): 0.1/1.9 MB Progress (1): 0.1/1.9 MB Progress (1): 0.1/1.9 MB Progress (1): 0.1/1.9 MB Progress (1): 0.2/1.9 MB Progress (1): 0.2/1.9 MB Progress (1): 0.2/1.9 MB Progress (1): 0.2/1.9 MB Progress (1): 0.2/1.9 MB Progress (1): 0.2/1.9 MB Progress (1): 0.3/1.9 MB Progress (1): 0.3/1.9 MB Progress (1): 0.3/1.9 MB Progress (1): 0.3/1.9 MB Progress (1): 0.3/1.9 MB Progress (1): 0.3/1.9 MB Progress (1): 0.4/1.9 MB Progress (1): 0.4/1.9 MB Progress (1): 0.4/1.9 MB Progress (1): 0.4/1.9 MB Progress (1): 0.4/1.9 MB Progress (1): 0.4/1.9 MB Progress (1): 0.5/1.9 MB Progress (1): 0.5/1.9 MB Progress (1): 0.5/1.9 MB Progress (1): 0.5/1.9 MB Progress (1): 0.5/1.9 MB Progress (1): 0.5/1.9 MB Progress (1): 0.6/1.9 MB Progress (1): 0.6/1.9 MB Progress (1): 0.6/1.9 MB Progress (1): 0.6/1.9 MB Progress (1): 0.6/1.9 MB Progress (1): 0.6/1.9 MB Progress (1): 0.7/1.9 MB Progress (1): 0.7/1.9 MB Progress (1): 0.7/1.9 MB Progress (1): 0.7/1.9 MB Progress (1): 0.7/1.9 MB Progress (1): 0.7/1.9 MB Progress (1): 0.8/1.9 MB Progress (1): 0.8/1.9 MB Progress (1): 0.8/1.9 MB Progress (1): 0.8/1.9 MB Progress (1): 0.8/1.9 MB Progress (1): 0.8/1.9 MB Progress (1): 0.9/1.9 MB Progress (1): 0.9/1.9 MB Progress (1): 0.9/1.9 MB Progress (1): 0.9/1.9 MB Progress (1): 0.9/1.9 MB Progress (1): 0.9/1.9 MB Progress (1): 0.9/1.9 MB Progress (1): 1.0/1.9 MB Progress (1): 1.0/1.9 MB Progress (1): 1.0/1.9 MB Progress (1): 1.0/1.9 MB Progress (1): 1.0/1.9 MB Progress (1): 1.0/1.9 MB Progress (1): 1.1/1.9 MB Progress (1): 1.1/1.9 MB Progress (1): 1.1/1.9 MB Progress (1): 1.1/1.9 MB Progress (1): 1.1/1.9 MB Progress (1): 1.1/1.9 MB Progress (1): 1.2/1.9 MB Progress (1): 1.2/1.9 MB Progress (1): 1.2/1.9 MB Progress (1): 1.2/1.9 MB Progress (1): 1.2/1.9 MB Progress (1): 1.2/1.9 MB Progress (1): 1.3/1.9 MB Progress (1): 1.3/1.9 MB Progress (1): 1.3/1.9 MB Progress (1): 1.3/1.9 MB Progress (1): 1.3/1.9 MB Progress (1): 1.3/1.9 MB Progress (1): 1.4/1.9 MB Progress (1): 1.4/1.9 MB Progress (1): 1.4/1.9 MB Progress (1): 1.4/1.9 MB Progress (1): 1.4/1.9 MB Progress (1): 1.4/1.9 MB Progress (1): 1.5/1.9 MB Progress (1): 1.5/1.9 MB Progress (1): 1.5/1.9 MB Progress (1): 1.5/1.9 MB Progress (1): 1.5/1.9 MB Progress (1): 1.5/1.9 MB Progress (1): 1.6/1.9 MB Progress (1): 1.6/1.9 MB Progress (1): 1.6/1.9 MB Progress (1): 1.6/1.9 MB Progress (1): 1.6/1.9 MB Progress (1): 1.6/1.9 MB Progress (1): 1.7/1.9 MB Progress (1): 1.7/1.9 MB Progress (1): 1.7/1.9 MB Progress (1): 1.7/1.9 MB Progress (1): 1.7/1.9 MB Progress (1): 1.7/1.9 MB Progress (1): 1.8/1.9 MB Progress (1): 1.8/1.9 MB Progress (1): 1.8/1.9 MB Progress (1): 1.8/1.9 MB Progress (1): 1.8/1.9 MB Progress (1): 1.8/1.9 MB Progress (1): 1.9/1.9 MB Progress (1): 1.9/1.9 MB Progress (1): 1.9/1.9 MB Progress (1): 1.9/1.9 MB Progress (1): 1.9/1.9 MB Progress (1): 1.9/1.9 MB Progress (1): 1.9 MB Downloaded from snapshot: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-core/11.0.1-SNAPSHOT/spoon-core-11.0.1-20240806.010701-1.jar (1.9 MB at 3.2 MB/s) [INFO] [INFO] --- clean:3.2.0:clean (default-clean) @ casper --- [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ casper --- [WARNING] Using platform encoding (UTF8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory /builds/workspace/casper/src/main/resources [INFO] [INFO] --- compiler:3.13.0:compile (default-compile) @ casper --- [INFO] Recompiling the module because of changed source code. [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! [INFO] Compiling 80 source files with javac [debug target 1.7] to target/classes [WARNING] bootstrap class path not set in conjunction with -source 7 [WARNING] source value 7 is obsolete and will be removed in a future release [WARNING] target value 7 is obsolete and will be removed in a future release [WARNING] To suppress warnings about obsolete options, use -Xlint:-options. [WARNING] /builds/workspace/casper/src/main/java/sacha/utils/SachaDocumentationGenerator.java:[29,36] as of release 9, '_' is a keyword, and may not be used as an identifier [WARNING] /builds/workspace/casper/src/main/java/bcu/transformer/processors/GhostClassCreator.java:[156,46] STRING in spoon.reflect.factory.TypeFactory has been deprecated and marked for removal [WARNING] /builds/workspace/casper/src/main/java/bcu/transformer/processors/GhostClassCreator.java:[178,46] VOID_PRIMITIVE in spoon.reflect.factory.TypeFactory has been deprecated and marked for removal [INFO] /builds/workspace/casper/src/main/java/bcornu/nullmode/NullInstanceManager.java: Some input files use or override a deprecated API. [INFO] /builds/workspace/casper/src/main/java/bcornu/nullmode/NullInstanceManager.java: Recompile with -Xlint:deprecation for details. [INFO] /builds/workspace/casper/src/main/java/bcu/transformer/processors/GhostClassCreator.java: Some input files use unchecked or unsafe operations. [INFO] /builds/workspace/casper/src/main/java/bcu/transformer/processors/GhostClassCreator.java: Recompile with -Xlint:unchecked for details. [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ casper --- [WARNING] Using platform encoding (UTF8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 1 resource from src/test/resources to target/test-classes [INFO] [INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ casper --- [INFO] Recompiling the module because of changed dependency. [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! [INFO] Compiling 2 source files with javac [debug target 1.7] to target/test-classes [WARNING] bootstrap class path not set in conjunction with -source 7 [WARNING] source value 7 is obsolete and will be removed in a future release [WARNING] target value 7 is obsolete and will be removed in a future release [WARNING] To suppress warnings about obsolete options, use -Xlint:-options. [INFO] /builds/workspace/casper/src/test/java/casper/CasperTest.java: /builds/workspace/casper/src/test/java/casper/CasperTest.java uses or overrides a deprecated API. [INFO] /builds/workspace/casper/src/test/java/casper/CasperTest.java: Recompile with -Xlint:deprecation for details. [INFO] [INFO] --- surefire:3.2.5:test (default-test) @ casper --- [INFO] Using auto detected provider org.apache.maven.surefire.junit4.JUnit4Provider [INFO] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8 [INFO] Running casper.CasperTest SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 2-->6 foo5(null).f tab[0] array[1] array[2] array[1] array[2] TargetModifier -->6 (failed:0) 2b-->8 null createNullGhost() 1-->1 3-->1 4-->5 5-->3 compilation success: true class loading with final remover :FooCasper created null ghost class for FooCasper created null ghost class for FooCasper created null ghost class for FooCasper created null ghost class for FooCasper created null ghost class for FooCasper created null ghost class for FooCasper null inception: null initialized null (FooCasper.java:28) returned null in method foo2 (FooCasper.java:28) returned null in method foo (FooCasper.java:23) assigned null to g (FooCasper.java:14) assigned null to f (FooCasper.java:15) throws NPE at FooCasper.bug1(FooCasper.java:18) created null ghost class for FooCasper created null ghost class for FooCasper created null ghost class for FooCasper created null ghost class for FooCasper created null ghost class for FooCasper inception: assigned null to tab (FooCasper.java:87) throws NPE at FooCasper.literal2(FooCasper.java:88) FooCasper java.base/java.lang.Thread.getStackTrace(Thread.java:1610) 2-->6 foo5(null).f tab[0] array[1] array[2] array[1] array[2] TargetModifier -->6 (failed:0) 2b-->8 null createNullGhost() new bcornu.nullmode.DebugInfo() cannot resolve an assign 1-->2 3-->5 4-->5 5-->3 compilation success: true null inception: null initialized null (FooCasper.java:28) returned null in method foo2 (FooCasper.java:28) returned null in method foo (FooCasper.java:23) assigned null to g (FooCasper.java:14) assigned null to f (FooCasper.java:15) throws NPE at FooCasper.bug1(FooCasper.java:18) inception: assigned null to tab (FooCasper.java:87) throws NPE at FooCasper.literal2(FooCasper.java:88) class loading with final remover :casper.Foo created null ghost class for casper.Foo class loading with final remover :jav.lang.ObjectNullified [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.398 s -- in casper.CasperTest [INFO] [INFO] Results: [INFO] [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 18.821 s [INFO] Finished at: 2024-08-07T10:23:30+02:00 [INFO] ------------------------------------------------------------------------ Finished: SUCCESS