Skip to content

Claude#84

Open
iho wants to merge 4 commits intomasterfrom
claude
Open

Claude#84
iho wants to merge 4 commits intomasterfrom
claude

Conversation

@iho
Copy link

@iho iho commented Mar 1, 2026

No description provided.

iho and others added 4 commits March 1, 2026 09:00
Convert all .erl files in src/ and src/ext/ to .ex files in lib/bpe/,
delete the original Erlang sources, and update mix.exs, config, and
test infrastructure to work with the pure-Elixir codebase.

Key changes:
- lib/BPE.ex: expanded with all record definitions and API functions
- lib/bpe/: new modules for otp, proc, task, gateways, event, env,
  xml, metainfo, account, boundary, ping, n2o
- test/bpe_test.exs: proper ExUnit test file (3 tests, all passing)
- test/test_helper.exs: reduced to setup only
- lib/test/*.ex: updated to use BPE.* API and ~c"" charlist sigils
- config/config.exs: fixed charlist deprecation warnings
- mix.exs: updated deps, mod: {BPE.OTP, []}, removed src from files

Notable fixes during migration:
- Elixir catch clauses take 2 args, not 3 (no stacktrace capture)
- Record macro names conflict with same-named functions; renamed
  hist->proc_hist, step->find_step, sched->proc_sched
- XML find/2 unified to avoid wrong clause triggering on whitespace nodes
- get_inserted/4 must receive actual target_task, not nil
- compare conditions use 1-based field index; adjusted for elem/2

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
RocksDB requires cmake, build-essential, and libsnappy-dev to compile
from source on Ubuntu. Also update OTP (24→27) and Elixir (1.13→1.18),
use actions/checkout@v4, and add a test step.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant