Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eclipse™ Sparkplug™ Technology Compatibility Kit (TCK) #39

Open
BoBiene opened this issue Feb 15, 2023 · 10 comments
Open

Eclipse™ Sparkplug™ Technology Compatibility Kit (TCK) #39

BoBiene opened this issue Feb 15, 2023 · 10 comments
Assignees
Labels
enhancement New feature or request question Further information is requested

Comments

@BoBiene
Copy link
Contributor

BoBiene commented Feb 15, 2023

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/

@SeppPenner SeppPenner self-assigned this Feb 21, 2023
@SeppPenner SeppPenner added enhancement New feature or request question Further information is requested labels Feb 21, 2023
@SeppPenner
Copy link
Owner

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

@scottmwyant
Copy link

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.

@SeppPenner
Copy link
Owner

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
Copy link
Owner

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
Copy link
Owner

SeppPenner commented Dec 7, 2023

--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
Copy link
Owner

I have now asked the people at sparkplug again.

@shouidar
Copy link
Contributor

shouidar commented Jan 29, 2024

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

@scottmwyant
Copy link

scottmwyant commented Feb 5, 2024

@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.

@SeppPenner
Copy link
Owner

@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...

@BoBiene
Copy link
Contributor Author

BoBiene commented Feb 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants