Skip to content

fix(phel): suite-compat patches for nightly run#899

Merged
jeaye merged 1 commit into
jank-lang:mainfrom
phel-lang:phel/fix-suite-compat
May 28, 2026
Merged

fix(phel): suite-compat patches for nightly run#899
jeaye merged 1 commit into
jank-lang:mainfrom
phel-lang:phel/fix-suite-compat

Conversation

@Chemaclass
Copy link
Copy Markdown
Contributor

@Chemaclass Chemaclass commented May 27, 2026

Summary

Three small :phel reader-conditional fixes so the suite stays green under phel-lang's nightly CI. Other dialects unchanged.

Changes

  • add_watch.cljc — phel-lang renamed Phel.Lang.ExInfoException to Phel.Lang.ExceptionInfo (phel-lang/phel-lang#2006). Update the :phel branch of the catch so the test stops aborting the run mid-suite.
  • group_by.cljc — phel does not propagate metadata through group-by. Skip the metadata testing block for :phel (same pattern used by other dialects with known divergences).
  • repeatedly.cljc — phel's analyser-level ConstantFolder evaluates (repeatedly identity) at compile time, calling identity with zero args; the file fails to compile. Skip the "is lazy" single-arg subtest for :phel until the folder is taught not to invoke runtime-throwing calls.

Context

The phel-lang/clojure-test-suite fork was carrying these patches locally, which forced ongoing divergence from upstream. After phel-lang/clojure-test-suite#15 and a sync, the fork now mirrors jank-lang/clojure-test-suite exactly — but the Phel nightly suite job depends on these :phel branches to stay green.

Upstreaming them keeps the fork a pure mirror and avoids per-dialect patch drift.

Three small :phel reader-conditional fixes so the suite stays green
when run under phel-lang's nightly CI:

* add_watch.cljc — phel-lang renamed Phel.Lang.ExInfoException to
  Phel.Lang.ExceptionInfo. Update the :phel branch of the catch.

* group_by.cljc — phel does not propagate metadata through group-by.
  Skip the metadata testing block for :phel.

* repeatedly.cljc — phel's analyser-level ConstantFolder evaluates
  (repeatedly identity) at compile time, calling identity with zero
  args; the file fails to compile. Skip the "is lazy" single-arg
  subtest for :phel until the folder is taught not to invoke
  runtime-throwing calls.

Other dialects unchanged.
Chemaclass added a commit to phel-lang/phel-lang that referenced this pull request May 27, 2026
Without this, the main/nightly suite run goes red and stays red until
jank-lang/clojure-test-suite#899 lands and the phel-side ConstantFolder
bug around (repeatedly identity) is fixed. Soft-gate keeps the signal
visible (job still runs, results still shown) without painting the
main-branch CI red.

Drop this once the suite is green against pure upstream.
Chemaclass added a commit to phel-lang/phel-lang that referenced this pull request May 27, 2026
* ci(clojure-test-suite): drop pull_request trigger; main + nightly only

Running the suite on every PR meant suite-breakage (currently from a
phel-side ConstantFolder bug around (repeatedly identity), tracked as
:phel patches at jank-lang/clojure-test-suite#899) blocks unrelated
work like #2202.

Suite drift is caught by the daily cron and any push to main, which is
the level of gating Phel actually needs. Per-PR can come back once the
suite is reliably green against pure upstream.

Manual run still available via workflow_dispatch.

* ci(clojure-test-suite): re-add continue-on-error for main + nightly

Without this, the main/nightly suite run goes red and stays red until
jank-lang/clojure-test-suite#899 lands and the phel-side ConstantFolder
bug around (repeatedly identity) is fixed. Soft-gate keeps the signal
visible (job still runs, results still shown) without painting the
main-branch CI red.

Drop this once the suite is green against pure upstream.
Copy link
Copy Markdown
Collaborator

@E-A-Griffin E-A-Griffin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@jeaye jeaye merged commit c7bfcb5 into jank-lang:main May 28, 2026
5 checks passed
@Chemaclass Chemaclass deleted the phel/fix-suite-compat branch May 28, 2026 05:56
@Chemaclass
Copy link
Copy Markdown
Contributor Author

Tracking upstream phel-lang core bugs surfaced by this nightly run:

Once #2210 lands the :phel skip in repeatedly.cljc can be dropped.

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.

3 participants