SparkplugNet icon indicating copy to clipboard operation
SparkplugNet copied to clipboard

Eclipse™ Sparkplug™ Technology Compatibility Kit (TCK)

Open BoBiene opened this issue 2 years ago • 10 comments
trafficstars

Have any of you already investigated TCK, and by any chance is SparkplugNet already tested for compatibility?

https://github.com/eclipse-sparkplug/sparkplug/blob/develop/tck/UserGuide.adoc https://sparkplug.eclipse.org/compatibility/get-listed/

BoBiene avatar Feb 15 '23 19:02 BoBiene

Same answer as to the 3.0 compatibility. No yet. Will check this soon as well.

SeppPenner avatar Feb 21 '23 17:02 SeppPenner

Taking initial steps to look into this. Have not worked with TCK before, so I'm probably not going to be super effective here. Looking to write SpB "clients" and this library + tck seem to be a good start.

  • eclipse-sparkplug/sparkplug#482
  • eclipse-sparkplug/sparkplug#484

scottmwyant avatar Sep 11 '23 00:09 scottmwyant

Eclipse-Sparkplug-TCK-3.0.0.zip

I have added the TCK here, seems to be too hidden for me in the repo :D Thank you, @scottmwyant.

SeppPenner avatar Dec 07 '23 16:12 SeppPenner

I have NVM running on Windows (https://github.com/coreybutler/nvm-windows), version 1.1.12, node version 21.4.0 and tried to follow https://github.com/eclipse-sparkplug/sparkplug/blob/develop/tck/UserGuide.adoc:

npm install -g yarn
corepack enable
yarn install

throws some errors with yarn install (AND again I know why I hate all that node.js shit). Logfile can be found under https://github.com/SeppPenner/YourMotherIsALogFile/blob/master/Logfile.md (Because of the 65536 character limit in comments...)

grafik

Does anyone have an idea here?

SeppPenner avatar Dec 07 '23 17:12 SeppPenner

--openssl-legacy-provider

Doesn't seem to help:

yarn install --openssl-legacy-provider
Unknown Syntax Error: Unsupported option name ("--openssl-legacy-provider").

$ yarn install [--json] [--immutable] [--immutable-cache] [--check-cache] [--inline-builds] [--mode #0]

yarn version is 3.0.1

My issue already occurs with yarn install, I guess yours was with yarn build...

SeppPenner avatar Dec 07 '23 17:12 SeppPenner

I have now asked the people at sparkplug again.

SeppPenner avatar Dec 07 '23 18:12 SeppPenner

run the tck test on Fedora vm successfully. Runing with the original code most tests show not executed. See atteched: results1.txt

Version 3 of the spec requires the Host Application STATE birth message topic to be: "spBv1.0/STATE/HostId", running the test with this hard coded into the library executes all tests with some failing due to other aspects of the 3.0 spec.

  public static string GetSparkplugStateMessageTopic(string scadaHostIdentifier)
    {
        return $"spBv1.0/{SparkplugMessageType.StateMessage.GetDescription()}/{scadaHostIdentifier}";
    }

See attached: results2.txt

shouidar avatar Jan 29 '24 19:01 shouidar

@SeppPenner I got the [ERR_STREAM_PREMATURE_CLOSE] as you did. Running yarn set version latest resolved the problem for me. I didn't dig in to understand the problem here, but seems related to corepack subsystem and the version of yarn itself.

I still ran into the issue I mentioned above at the yarn build step, but using the --openssl-legacy-provider option resolved it. Reference: https://stackoverflow.com/a/69699772

From there I was able to yarn start and get to the web console at http://localhost:3000.

scottmwyant avatar Feb 05 '24 04:02 scottmwyant

@SeppPenner I got the [ERR_STREAM_PREMATURE_CLOSE] as you did. Running yarn set version latest resolved the problem for me. I didn't dig in to understand the problem here, but seems related to corepack subsystem and the version of yarn itself.

I still ran into the issue I mentioned above at the yarn build step, but using the --openssl-legacy-provider option resolved it. Reference: https://stackoverflow.com/a/69699772

From there I was able to yarn start and get to the web console at http://localhost:3000.

Thanks, I have seen this already, but didn't yet come to check it... There is still a lot of stuff to do to get 3.0 compatibility, I guess...

SeppPenner avatar Feb 10 '24 15:02 SeppPenner

The most recent version of the TCK is on the development branch i think: https://github.com/eclipse-sparkplug/sparkplug/tree/develop/tck

BoBiene avatar Feb 10 '24 15:02 BoBiene