apache / daffodil-vscode

Apache Daffodil™ Extension for Visual Studio Code
https://daffodil.apache.org/
Apache License 2.0
11 stars 20 forks source link

Fix Nightly Tests #1032

Open scholarsmate opened 6 months ago

scholarsmate commented 6 months ago

This ticket is to track and hopefully fix the Nightly CI tests.

  1. MacOS Latest does not offer support for Java 8. Minimum available is Java 11.
  Trying to resolve the latest version from remote
  Error: Could not find satisfied version for SemVer '8'. 
  Available versions: 22.0.1+8, 22.0.0+36, 21.0.3+9.0.LTS, 21.0.2+13.0.LTS, 21.0.1+12.0.LTS, 21.0.0+35.0.LTS, 20.0.2+9, 20.0.1+9, 20.0.0+36, 19.0.2+7, 19.0.1+10, 19.0.0+36, 18.0.2+101, 18.0.2+9, 18.0.1+10, 18.0.0+36, 17.0.11+9, 17.0.10+7, 17.0.9+9, 17.0.8+101, 17.0.8+7, 17.0.7+7, 17.0.6+10, 17.0.5+8, 17.0.4+101, 17.0.4+8, 17.0.3+7, 17.0.2+8, 17.0.1+12, 17.0.0+35, 11.0.23+9, 11.0.22+7.1, 11.0.22+7, 11.0.21+9, 11.0.20+101, 11.0.20+8, 11.0.19+7, 11.0.18+10, 11.0.17+8, 11.0.16+101, 11.0.16+8, 11.0.15+10
  1. JSON Infosets are not being created under certain conditions. This can happen on Windows and MacOS.
detected java homes: [{"path":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.22-7/x64/Contents/Home","version":"11.0.22","security":0,"isJDK":true,"is64Bit":true,"executables":{"java":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.22-7/x64/Contents/Home/bin/java","javac":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.22-7/x64/Contents/Home/bin/javac","javap":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.22-7/x64/Contents/Home/bin/javap"}},{"path":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.11-9/x64/Contents/Home","version":"17.0.11","security":0,"isJDK":true,"is64Bit":true,"executables":{"java":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.11-9/x64/Contents/Home/bin/java","javac":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.11-9/x64/Contents/Home/bin/javac","javap":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.11-9/x64/Contents/Home/bin/javap"}},{"path":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/21.0.2-13.0/x64/Contents/Home","version":"21.0.2","security":0,"isJDK":true,"is64Bit":true,"executables":{"java":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/21.0.2-13.0/x64/Contents/Home/bin/java","javac":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/21.0.2-13.0/x64/Contents/Home/bin/javac","javap":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/21.0.2-13.0/x64/Contents/Home/bin/javap"}},{"path":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/8.0.402-6/x64/Contents/Home","version":"1.8.0","security":402,"isJDK":true,"is64Bit":true,"executables":{"java":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/8.0.402-6/x64/Contents/Home/bin/java","javac":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/8.0.402-6/x64/Contents/Home/bin/javac","javap":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/8.0.402-6/x64/Contents/Home/bin/javap"}},{"path":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/8.0.402-6/x64/Contents/Home/jre","version":"1.8.0","security":402,"isJDK":false,"is64Bit":true,"executables":{"java":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/8.0.402-6/x64/Contents/Home/jre/bin/java"}}]
choosing java home at undefined, version undefined, is at least JDK 17: false
detected java homes: [{"path":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.22-7/x64/Contents/Home","version":"11.0.22","security":0,"isJDK":true,"is64Bit":true,"executables":{"java":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.22-7/x64/Contents/Home/bin/java","javac":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.22-7/x64/Contents/Home/bin/javac","javap":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.22-7/x64/Contents/Home/bin/javap"}},{"path":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.11-9/x64/Contents/Home","version":"17.0.11","security":0,"isJDK":true,"is64Bit":true,"executables":{"java":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.11-9/x64/Contents/Home/bin/java","javac":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.11-9/x64/Contents/Home/bin/javac","javap":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.11-9/x64/Contents/Home/bin/javap"}},{"path":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/21.0.2-13.0/x64/Contents/Home","version":"21.0.2","security":0,"isJDK":true,"is64Bit":true,"executables":{"java":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/21.0.2-13.0/x64/Contents/Home/bin/java","javac":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/21.0.2-13.0/x64/Contents/Home/bin/javac","javap":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/21.0.2-13.0/x64/Contents/Home/bin/javap"}},{"path":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/8.0.402-6/x64/Contents/Home","version":"1.8.0","security":402,"isJDK":true,"is64Bit":true,"executables":{"java":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/8.0.402-6/x64/Contents/Home/bin/java","javac":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/8.0.402-6/x64/Contents/Home/bin/javac","javap":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/8.0.402-6/x64/Contents/Home/bin/javap"}},{"path":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/8.0.402-6/x64/Contents/Home/jre","version":"1.8.0","security":402,"isJDK":false,"is64Bit":true,"executables":{"java":"/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/8.0.402-6/x64/Contents/Home/jre/bin/java"}}]
choosing java home at undefined, version undefined, is at least JDK 17: false
[9767:0516/002307.262190:ERROR:gl_utils.cc(412)] [.WebGL-0x11404b06200]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels
2024-05-16 00:23:18.221 Code Helper (Renderer)[9779:41228] CoreText note: Client requested name ".NewYork-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
    ✔ should output xml infoset (11879ms)
    1) should output json infoset
  Data Editor Test Suite
    ✔ data edit command exists (328ms)
    Editor Service
rejected promise not handled within 1 second: Error: ENOENT: no such file or directory, open '/Users/runner/work/daffodil-vscode/daffodil-vscode/testinfoset.json'
stack trace: Error: ENOENT: no such file or directory, open '/Users/runner/work/daffodil-vscode/daffodil-vscode/testinfoset.json'
detected java homes: [{"path":"C:\\hostedtoolcache\\windows\\Java_Temurin-Hotspot_jdk\\17.0.11-9\\x64","version":"17.0.11","security":0,"isJDK":true,"is64Bit":true,"executables":{"java":"C:\\hostedtoolcache\\windows\\Java_Temurin-Hotspot_jdk\\17.0.11-9\\x64\\bin\\java.exe","javac":"C:\\hostedtoolcache\\windows\\Java_Temurin-Hotspot_jdk\\17.0.11-9\\x64\\bin\\javac.exe","javap":"C:\\hostedtoolcache\\windows\\Java_Temurin-Hotspot_jdk\\17.0.11-9\\x64\\bin\\javap.exe"}}]
choosing java home at C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\17.0.11-9\x64, version 17.0.11, is at least JDK 17: true
detected java homes: [{"path":"C:\\hostedtoolcache\\windows\\Java_Temurin-Hotspot_jdk\\17.0.11-9\\x64","version":"17.0.11","security":0,"isJDK":true,"is64Bit":true,"executables":{"java":"C:\\hostedtoolcache\\windows\\Java_Temurin-Hotspot_jdk\\17.0.11-9\\x64\\bin\\java.exe","javac":"C:\\hostedtoolcache\\windows\\Java_Temurin-Hotspot_jdk\\17.0.11-9\\x64\\bin\\javac.exe","javap":"C:\\hostedtoolcache\\windows\\Java_Temurin-Hotspot_jdk\\17.0.11-9\\x64\\bin\\javap.exe"}}]
choosing java home at C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\17.0.11-9\x64, version 17.0.11, is at least JDK 17: true
    ✔ should output xml infoset (2129ms)
    1) should output json infoset
  Data Editor Test Suite
    ✔ data edit command exists
    Editor Service
rejected promise not handled within 1 second: Error: ENOENT: no such file or directory, open 'd:\a\daffodil-vscode\daffodil-vscode\testinfoset.json'
stack trace: Error: ENOENT: no such file or directory, open 'd:\a\daffodil-vscode\daffodil-vscode\testinfoset.json'
  1. SBT not being found on MacOS Latest.
$ sbt debugger/Universal/packageBin
/bin/sh: sbt: command not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Process completed with exit code 127.
  1. Misc Network Connectivity issues.
yarn install v1.22.22
[1/5] Validating package.json...
warning apache-daffodil-vscode@1.4.0-SNAPSHOT: The engine "vscode" appears to be invalid.
[2/5] Resolving packages...
[3/5] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error Error: https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz: ESOCKETTIMEDOUT
    at ClientRequest.<anonymous> (C:\npm\prefix\node_modules\yarn\lib\cli.js:142037:19)
    at Object.onceWrapper (node:events:627:28)
    at ClientRequest.emit (node:events:513:28)
    at TLSSocket.emitRequestTimeout (node:_http_client:839:9)
    at Object.onceWrapper (node:events:627:28)
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
    at TLSSocket.emit (node:events:525:35)
    at TLSSocket.Socket._onTimeout (node:net:550:8)
    at listOnTimeout (node:internal/timers:559:17)
    at processTimers (node:internal/timers:502:7)
Error: Process completed with exit code 1.
shanedell commented 6 months ago

Numbers 1 and 3 should be easy. In the workflow we can setup the exclusion of Java version 8 and also to install SBT when running on macos-latest. Number 2 I would need to look more into to give an update on. But number 4 we can't really do anything about that as that is a runner issue and not an issue with our repository.

shanedell commented 1 month ago

Parts 1 & 3 were done for 1.4.0. 2 & 4 can be looked at more in 1.4.1. A new issue I created https://github.com/apache/daffodil-vscode/issues/1117 also kind of goes hand in hand with this issue.