Skip to content

Commit b31d280

Browse files
Debug: print content of small sofa-rpc-all JAR on CI
1 parent 2cec78e commit b31d280

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • dd-java-agent/instrumentation/sofarpc/sofarpc-5.0

dd-java-agent/instrumentation/sofarpc/sofarpc-5.0/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ tasks.named('compileLatestDepTestGroovy') {
3939
println "=== DEBUG latestDepTestCompileClasspath ==="
4040
classpath.files.findAll { it.name.contains('sofa') }.each { f ->
4141
println " sofa artifact: ${f.name} exists=${f.exists()} size=${f.exists() ? f.size() : 'MISSING'}"
42+
if (f.exists() && f.size() < 1_000_000) {
43+
def bytes = f.bytes.take(256)
44+
println " first bytes (hex): ${bytes.encodeHex()}"
45+
println " first bytes (text): ${new String(bytes).replaceAll('[\\x00-\\x1f\\x7f-\\xff]', '.')}"
46+
}
4247
}
4348
println "=== END DEBUG ==="
4449
}

0 commit comments

Comments
 (0)