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

chore(ci): fix syntax error in workflow file, remove Node 20 for now #995

Merged
merged 2 commits into from
May 19, 2023

Conversation

JKRhb
Copy link
Member

@JKRhb JKRhb commented May 12, 2023

#974 introduced a small syntax error that caused the workflow not to run anymore. This PR provides a simple fix.

@JKRhb
Copy link
Member Author

JKRhb commented May 12, 2023

Hmm, looks as if with this change, the node-gyp error under Node 20 reappears :/ (I also get the same error locally with Node 20.)

@danielpeintner
Copy link
Member

danielpeintner commented May 15, 2023

@egekorkan @relu91

Shall we revert #974 again as a quick solution and work on the actual issue again?

EDIT: as an alternative we can exclude mbus for now as we do or firestore?

@relu91
Copy link
Member

relu91 commented May 15, 2023

EDIT: as an alternative we can exclude mbus for now as we do or firestore?

I think it's okay to exclude it. @LennyHEVS if you have time to look into this it would be nice.

@danielpeintner
Copy link
Member

@JKRhb may I ask you to exclude mbus in this PR for the time being as we do for firestore?

see

"./packages/binding-!(firestore-browser-bundle|firestore)",

and see

/*{ "path": "./packages/binding-firestore" }, Disabled see https://github.com/eclipse/thingweb.node-wot/issues/827*/

@JKRhb
Copy link
Member Author

JKRhb commented May 16, 2023

The mbus package is now excluded/disabled :)

@JKRhb
Copy link
Member Author

JKRhb commented May 16, 2023

Hmm, seems like disabling the mbus package is not enough. So I guess we could either merge this one (without the mbus change) to fix the syntax error or #990 gets merged first and then we rebase this one against the new main branch version.

@danielpeintner
Copy link
Member

@relu91 @egekorkan opinions?
I think #990 is a way forward and if there is interest we can bring mbus & firestore back...

@relu91
Copy link
Member

relu91 commented May 16, 2023

Just checked the error, seems that the mbus protocol is using and old version of serialport. There is a newer mbus release, it is worth plugging that in and seeing if it resolves this problem and doesn't cause any other issues.

@danielpeintner
Copy link
Member

danielpeintner commented May 18, 2023

ae3e3a3 brings back mbus binding and updates node-mbus from version 1.2.2 to 2.0.0.

Locally the mbus tests were working just fine.
Since I don't have Node.js 20 let's see what the CI does...

EDIT: the tests are failing again. I think #990 is the way forward.
@relu91 ?

@relu91
Copy link
Member

relu91 commented May 18, 2023

EDIT: the tests are failing again. I think #990 is the way forward.

Yes, even though I'm now a little bit afraid that the install will also fail for modbus.

@danielpeintner
Copy link
Member

Yes, even though I'm now a little bit afraid that the install will also fail for modbus.

Do you want to test/check this before we go along this path...

@relu91
Copy link
Member

relu91 commented May 18, 2023

Do you want to test/check this before we go along this path...

I have a little bit of a problem installing node 20. Maybe we can faster if we just try.

danielpeintner added a commit to danielpeintner/thingweb.node-wot that referenced this pull request May 18, 2023
@danielpeintner
Copy link
Member

danielpeintner commented May 18, 2023

I updated #990 with this syntax fix.
Unfortunately Node.j 20 CI run still fails even without mbus and firestore, see https://github.com/eclipse-thingweb/node-wot/actions/runs/5014360405/jobs/8988511146?pr=990

Mhh, not sure but I cannot properly see where the error comes from.
@relu91 modbus as you were guessing?

`-- @node-wot/binding-modbus@0.8.7 -> .\packages\binding-modbus
  `-- modbus-serial@8.0.3
    `-- serialport@9.2.8

Note: there is modbus-serial@8.0.11
I tried to update locally but I get failures ... even locally.

@danielpeintner
Copy link
Member

I think we should have a quick fix soon so that our tests are properly run again for PRs.

A proposal could be to run Node.js 16 and 18 only (for now) and we investigate why mbus and modbus are failing with Node.js 20.
What do you think?

@relu91
Copy link
Member

relu91 commented May 18, 2023

I think we should have a quick fix soon so that our tests are properly run again for PRs.

A proposal could be to run Node.js 16 and 18 only (for now) and we investigate why mbus and modbus are failing with Node.js 20. What do you think?

yes, let's stay just with 16 and 18 while we understand where is the problem. I hope that it is not a serialport issue....

@danielpeintner
Copy link
Member

@JKRhb may I ask you to revert all changes other than the actual syntax fix and removing also Node.js 20 for now. Thanks and sorry for the back and forth

@JKRhb
Copy link
Member Author

JKRhb commented May 19, 2023

@JKRhb may I ask you to revert all changes other than the actual syntax fix and removing also Node.js 20 for now. Thanks and sorry for the back and forth

No problem at all :) The PR should now be updated accordingly :)

@JKRhb JKRhb changed the title chore(ci): fix syntax error in workflow file chore(ci): fix syntax error in workflow file, remove Node 20 for now May 19, 2023
@relu91 relu91 merged commit 0477818 into eclipse-thingweb:master May 19, 2023
@JKRhb JKRhb deleted the patch-1 branch May 19, 2023 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants