-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add SocketCan J1939 constants and structs #2706
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
Conversation
Signed-off-by: Andrew Balmos <andrew@balmos.org>
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Amanieu (or someone else) soon. Please see the contribution instructions for more information. |
Looks like
wasn't added to the kernel until 5.15. I actually don't need these for my work. Should I just remove them from the PR or is there another way to deal with the CI being on an older kernel? |
You can add an exception here: https://github.com/abalmos/libc/blob/a5470ce96f994347e14c5659442a7c086d2665c4/libc-test/build.rs#L3285 |
Signed-off-by: Andrew Balmos <Andrew Balmos>
@Amanieu Thanks! I think I pushed the fix. I am on 5.15, so the tests ran okay for me before this change |
@Amanieu I might need help with this error. It seems unrelated to this PR. |
This means that the Rust value of the constant doesn't match the C value. |
Co-authored-by: Amanieu d'Antras <amanieu@gmail.com>
Thanks @Amanieu! I'm not sure why |
@bors r+ |
📌 Commit 02042f0 has been approved by |
Add SocketCan J1939 constants and structs Add SocketCan J1939 constants and structs. Blocking a PR to `nix` to wrap SocketCan's j1939 module.
💔 Test failed - checks-actions |
Signed-off-by: Andrew Balmos <andrew@balmos.org>
@Amanieu Re-added. Sorry about that, I didn't realize there was more test environments then what was in GitHub actions. |
@bors r+ |
📌 Commit 99045cd has been approved by |
@Amanieu how do I check the error for this CI? |
Click on the checks-actions link from bors. Ignore the semver tests, we allow failure for those. |
You need to use the bar on the left to select the actual build step that failed. Here is the failure:
|
I am stumped by this one ... it looks like the |
Kernel headers too old. Signed-off-by: Andrew Balmos <andrew@balmos.org>
@Amanieu Ah, I see. The test environment installs kernel headers cleaned for musl here: Line 84 in 802f327
but that project uses headers for kernel 4.19.88. j1939 was not added until v5.4.1. I just pushed a commit that I believe will disable tests for musl. These are all kernel defines and types, so the testing done in the gnu environments ought to be enough. -- Please do let me know if you would prefer a different fix. |
I think we should just go ahead and upgrade the version of the kernel headers used when testing musl to the latest available version. |
@Amanieu I would be happy to try to work on that, but the CI is using the latest set of headers available I don't know too much about musl and how all hooks with rust. Would you have any pointers on getting started with said upgrade? |
Fair enough. In that case I think this is fine to land. @bors r+ |
📌 Commit 6991bfa has been approved by |
Add SocketCan J1939 constants and structs Add SocketCan J1939 constants and structs. Blocking a PR to `nix` to wrap SocketCan's j1939 module.
💔 Test failed - checks-actions |
@Amanieu Is there any good way to run these tests locally? |
Signed-off-by: Andrew Balmos <andrew@balmos.org>
I accidentally put I also found a comment that explains that testing kernel definitions in glibc targets only is sufficient, so I cleaned up the additions a bit by moving my skipped constant into that block. Hopefully this version will pass :) |
@bors r+ |
📌 Commit 06a74e0 has been approved by |
☀️ Test successful - checks-actions, checks-cirrus-freebsd-11, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13 |
Add SocketCan J1939 constants and structs.
Blocking a PR to
nix
to wrap SocketCan's j1939 module.