Skip to content

Integrate develop into develop-compile (all tests green) - #523

Merged
rvirding merged 7 commits into
develop-compilefrom
integrate/develop-into-compile
Jul 12, 2026
Merged

rvirding merged 7 commits into
develop-compilefrom
integrate/develop-into-compile

Conversation

@oubiwann

@oubiwann oubiwann commented Jul 11, 2026 •

Copy link
Copy Markdown
Member

What this is

Brings the develop-compile compiler-rework branch up to date with develop, so the remaining integration work is done and the branch builds green. Intended to save @rvirding the pain of a manual reconciliation of 12 commits.

Base: develop-compile  •  Head: integrate/develop-into-compile

This is a merge, not a rebase — develop-compile's history is untouched and nothing is force-pushed. Merging this PR simply fast-forwards develop-compile with everything from develop already integrated.

What it contains

Conflicts resolved (2, both mechanical)

  • rebar.config.script — unioned the OTP compile-flag list: kept OTP27_MAYBE + OTP27_DOCS (compile branch) and added HAS_ENSURE_DIR (develop).
  • src/lfe_comp.erl — combined develop's ensure_path_exists/1 beam-dir helper (from Ensure directory exists before writing the beam file... #508) with the compile branch's beam_write_module → do_beam_write_module rename. Kept the new function name (matches its caller) and the ensure-dir wrapping.

Everything else — including clj.lfe, Makefile, examples, and docs — auto-merged.

Verification

  • rebar3 compile → clean
  • rebar3 eunit → 95 tests, 0 failures
  • rebar3 ct → all 112 tests passed

Notes for review

🤖 Generated with Claude Code

xgqt and others added 7 commits January 9, 2026 16:06
* Makefile: use portable "command -v" instead of the "which" command

Signed-off-by: Maciej Barć <[email protected]>

* Makefile: split DESTDIR and PREFIX

* Use DESTDIR as the output directory, default to /.  Normally it
  would be used like so: make DESTDIR="$(pwd)/image/" install
* Run MANDB only if DESTDIR is /, so only when we install onto the
  system root.

Signed-off-by: Maciej Barć <[email protected]>

---------

Signed-off-by: Maciej Barć <[email protected]>
* Added failing tests for issue #517.

See: #517

* Fix for OTP 28 user_drv behaviour change.

Three-branch version dispatch using list_to_integer(OTPRelease) instead of string comparison:
- OTP 28+: user_drv:start(#{initial_shell => noshell, input => cooked}) — provides the required input key
- OTP 26-27: user_drv:start(#{initial_shell => noshell}) — unchanged, input defaults to true
- OTP <26: user:start() — the legacy API

* Updated OTP versions for CI.

* Implement this less awkwardly.

* We need the full build for the new CT test.

* Addressed review feedback.
this happend when integrating with a mix project.
* Added tests for new clj print macros.

* Implemented clj print functions.

* Updated docs.
* Added implementations for update, update-in, assoc, assoc-in.

* Updated docs for new clj functions/macros.
# Conflicts:
#	rebar.config.script
#	src/lfe_comp.erl
The suite spawns bin/lfe and set ERL_LIBS to the repo root, which is
not a valid OTP library directory for the lfe app: the compiled beams
(including lfe_init.beam) live in _build/<profile>/lib/lfe/ebin, while
the root ebin/ holds only lfe.app. bin/lfe could therefore only find
lfe_init via its fallback rebar3 path, which defaults to the `default`
profile.

CI stayed green because the builds job runs `rebar3 compile` (populating
_build/default/lib/lfe/ebin) before `make ct`. A bare `rebar3 ct` -- or
`make tests`, which cleans _build and builds only the test profile --
never populates the default profile, so lfe_init was absent from the
resolved code path and the kernel user child failed with
{undef,[{lfe_init,start,[],[]}...]}.

Derive ERL_LIBS from the running app instead: the parent of
code:lib_dir('lfe') is the actual _build/<profile>/lib dir containing
the compiled lfe app, making the suite independent of which rebar3
profile happens to be pre-built. bin/lfe is still located from the repo
root as before.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@oubiwann

Copy link
Copy Markdown
Member Author

Some notes on the lfe_comp.erl conflict resolution ...

I took both changes, since they're orthogonal and both wanted:

  1. Kept develop's ensure_path_exists/ensure_dir helper block verbatim (the -ifdef and both branches) — that's the actual bug fix from Ensure directory exists before writing the beam file... #508
  2. Kept develop-compile's new function name do_beam_write_module for the writer function, discarding the old beam_write_module name
  3. Kept the new ensure_path_exists-wrapped body from Ensure directory exists before writing the beam file... #508 inside that renamed function

The decisive constraint is the caller. On the compile branch, do_beam_write/1 calls do_beam_write_module(M, St0) (line 646, unchanged by the merge). So I dropped beam_write_module from the develop branch and integrated with the changes in the develop-compile branch.

Conversely, the helper functions (ensure_path_exists, ensure_dir) are new and self-contained — the compile branch has no opinion about them, so they come across untouched.

In summary, the merged function has the compiler rework's name and the bugfix's body.

@rvirding
rvirding merged commit 91b9b38 into develop-compile Jul 12, 2026
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.

4 participants