Pharo test defects

Package: pharo-beacon (pharo-project/pharo-beacon, row 29)

State
Fixed (package repair)
Defect in
see the record
Tests
0
Fix
pharo-project-pharo-beacon.st
Upstream repository
pharo-project/pharo-beacon

The record is the text of the repair. The Results table is the last run of the row.

Record

Test

Load the package into a Pharo 14 image (build 791) with the load expression of the test run, file in the fixes file of the row if there is one, and run the test classes of the package.

"row 29"
Metacello new baseline: 'Beacon'; repository: 'github://pharo-project/pharo-beacon:master/src'; onConflict: [:e | e useIncoming]; load: #('default').

Results

Last result of the package run (stock Cog and iospharo on the same image).

RowLabelLoadStock Cogiospharo VM
29pharo-project-pharo-beaconoktests=20 P=20 F=0 E=0 S=0 T=0 X=0tests=20 P=20 F=0 E=0 S=0 T=0 X=0

Fix

Fixes file (filed in after the load): pharo-project-pharo-beacon.st (download)
"Beacon (pharo-project/pharo-beacon): MethodStackSignal>>currentStack calls
'each method asRingDefinition' on every context of the stack.  In Pharo 14
Context>>method answers the CompiledBlock for a block context (Context>>method
comment: use compiledCode, 'it can be CompiledMethod or a CompiledBlock'), and
CompiledBlock does not understand #asRingDefinition (only CompiledMethod has it,
Ring-Definitions-Core/CompiledMethod.extension.st).  Every stack that contains a
block frame (all test runs: TestCase>>runCase blocks) fails with
'CompiledBlock >> #asRingDefinition' DNU.  The signal documents that it stores
the method definitions of the stack, so a block frame maps to its home method:
CompiledBlock>>method (outerCode method) answers the CompiledMethod, and
CompiledMethod>>method answers self."

fix value: #MethodStackSignal value: #currentStack
	value: [ :source | source includesSubstring: 'each method asRingDefinition' ]
	value:
'currentStack
	^ self relevantStackWithoutSelf collect: [ :each | each homeMethod asRingDefinition ]'.

State of 2026-11-20. Made from the test records of the iospharo project (a second Pharo VM). The fixes are proposals for review.