-
Notifications
You must be signed in to change notification settings - Fork 134
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
Base32 Module Integration for KCL Standard Library #1883
Conversation
Hi @gitatractivo 😄 Good work! 👍👍👍 Now you need to tidy up your commits, squash them into one commit, and use |
LGTM, and cc @He1pa |
Hi @gitatractivo 😄 A test case failed, cc@He1pa, could you provide some more details to help him fix the test 😄 |
bc8cb35
to
6a6198e
Compare
Hi, |
run failed ut locally and update snapshot by |
No I did not generate a new file. |
6a6198e
to
183ebf0
Compare
Hi @He1pa, I need help with passing these tests. I am getting this error while doing ![]() |
These ut related to kpm, it need to download some pkgs. you can ignore these changes and just update |
How will these failing test cases pass? Is there something else I need to do to close this PR? |
you can check failed ci. update test snapshot in kclvm/loader/* |
I fixed this test but there are 7 other failing 6 of them are related to file import error and 1 related to module path incorrect error. |
|
183ebf0
to
807555f
Compare
I updated the loader snapshots with cargo insta. All the tests in loader directory are passing but when doing
|
If there are no changes, ci will pass these tests. But you need fmt code @gitatractivo |
ee6064e
to
2b3f7bd
Compare
Hi, @He1pa sorry to trouble you again and again. I am not able to pass this last test |
kclvm/tools/src/LSP/src/test_data/workspace/pkg_mod_test/test/kcl.mod
Outdated
Show resolved
Hide resolved
it seems you edit the mod file about this test, maybe we should restored this? |
2b3f7bd
to
9510bf2
Compare
Yes I restored the path. |
A new test failed now
|
9510bf2
to
98c1682
Compare
Pull Request Test Coverage Report for Build 14033002206Details
💛 - Coveralls |
this test fails I found that values for left and right are different for file /kclvm/api/src/service/service_impl.rs line 226-228
But test passed for macos? I did not get this. |
I think it should be 189? change it to 189 and test again? |
- Added BASE32 constant to STANDARD_SYSTEM_MODULES list - Implemented base32 encoding and decoding functions - Updated test files to use the correct Base32 encoding/decoding - Fixed imports in test files - Updated completion test to include base32 module - Ensured all tests pass with the new module Fixes kcl-lang#1860 Signed-off-by: Gitanshu Talwar <[email protected]> Reverted kcl.mod file Signed-off-by: Gitanshu Talwar <[email protected]> - Added base32 in test_data/system_package.k Signed-off-by: Gitanshu Talwar <[email protected]> - Changing assertion
98c1682
to
666623c
Compare
Changed to 189 189 200 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
cc @zong-zhe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):
fix #1860
2. What is the scope of this PR (e.g. component or file name):
kclvm/runtime/src/base32/mod.rs
kclvm/sema/src/builtin/system_module.rs
kclvm/tests/test_units/runtime/base32/test_base32.py
3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):
4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):
5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:
Added unit tests in kclvm/tests/test_units/runtime/base32/test_base32.py that verify encoding and decoding functionality using RFC 4648 test vectors. The tests follow the same pattern as the existing Base64 tests.