-
Notifications
You must be signed in to change notification settings - Fork 1
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
0.2.0 is developed!! #12
Conversation
rustler が panic をハンドリングしてくれることがわかったのでエラーハンドリングを簡素化
Elixir では String.t() は binary() でまかなえるため
Add dependabot
Update .github/workflows/nif_precompile.yml, update OS versions
Fix USE_DIFFERENT_SESSION use
7920f0a
to
9e9995a
Compare
""" | ||
==================================================================== | ||
HEY, ZENOHEX DEVELOPER. IF YOU WANNA REDUCE TEST TIME, DO FOLLOWINGS | ||
export API_OPEN_SESSION_DELAY=0 && mix compile --force |
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.
API_OPEN_SESSION_DELAY=0 mix test
かなと思ったんですが,意図が違うでしょうか?
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.
事実
API_OPEN_SESSION_DELAY
は動的に変えられるものではなく、NIFの Rust コードのコンパイル時に効く環境変数です。
なので、 export API_OPEN_SESSION_DELAY=0 && mix compile --force
で NIF so の再ビルドをさせたいのがココでの意図です。実行後の mix test
が早くなります。
相談
高瀬さんが疑問に思ったことは、誰でも疑問に思う可能性があるので、その旨を伝えられるようなコメントにしたいのですが、良さそうなアイデアはありますでしょうか?
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.
なるほど理解しました.
README には For Developers
のセクションで mix test
のあれこれを書こうと思っています.その文面はのちほど review してください 🙏
assertとしてはこれで十分かと!
Add trigger condtion on push to main Co-authored-by: takasehideki <[email protected]>
Move Examples docs to lib/zenohex/examples/README.md
All your reviews have been reflected. Thank you!!! Feel free to merge when you would like to do. |
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.
go! merging into the world!!
実装について
Connpass の ZettaScale CEO/CTO直伝!Zenoh完全理解セミナー! に添付の 2023.12.19-Understanding-Zenoh-V1.1.pdf の p34 記載の以下を実装可能な API 及びそのテストを実装しました。
ドキュメントについて
本ブランチを clone し、
mix docs
を実行することでお手元でご確認いただけます。実装した API は zenoh の薄いラッパーであるため、それらを使って Elixir で機能を構成するには、ユーザは自身で実装する必要が有ります。これについては、 Example 実装を付与することで解消を狙っています。 Examples の実装は以下に有ります。
また、これら Examples もテスト及びドキュメントも作成しています。それぞれ以下を参照ください。
mix docs
で作成されたドキュメント内のMODULESタブの EXAMPLES セクションRaspberry Pi 4 上での動作について
実装したすべてのテストが aarch64 のラズパイ4 Ubuntu で Pass することを確認済みです。
Nerves での, v0.2.0-rc.2 の動作確認
以下のリポジトリを使い、作ったファームウェアで実行した RPI4 で Zenohex の Examples が動作することを確認しました。
以下はその時の iex シェルです。ストレージ/セッションを起動し、セッションからデータの put/delete/get を行った結果です。