expressir 2.5.6 → 2.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 409e956d396526e728b9931746ded67039ba4b4b9f93208c058d3e3eb0e3d32b
4
- data.tar.gz: a8ad0adf9acd6e536b725b160f5a19dccd55b55c66f5db2ef54ac0041f319643
3
+ metadata.gz: 759342a0734e0b208a9ad5a26ca500f52dade1b98c9ad4f2cd5f2f32c2399503
4
+ data.tar.gz: 5e0cdd584f07b3dd60fbb6a0b6bcc7e0c9a170b682bcf7c23f6983e84bf0b572
5
5
  SHA512:
6
- metadata.gz: b239daa763a2027b12dccbdd9e52ac78dd8076dc66b073f2f74547ae45f291fb778741d8a34f700480e13027c4531fc45b0615a6f480e72ee8f7ec3e2f7dd205
7
- data.tar.gz: 8a867176b6c22fe9a747541ad7117c6fb208543f041cae79074ff03e2eb3d1acbb212fb32706d8b0d68b16b57577cd5b004701019964dda03fc67e80ecd895ba
6
+ metadata.gz: e5dab21ae0031076bb36f1d1718a25400f81fc75c4de9bdedf568bc37c5dc5fa2bb68fd5703640979e76b33fd28dee76f2dbe89eb96d4d8882297e77bb246d22
7
+ data.tar.gz: 468685132ac413ac23172c316fedbf7cb0ac0293d66e50851ccc6292ccc99b7b0336828ebdcce843e4dc96a6ba067d6f6aae35c26282d4f300a7381378c29669
@@ -0,0 +1,49 @@
1
+ # Re-queue a native-gems release run whose job was never acquired.
2
+ #
3
+ # The publish of all ten platform gems waits on the `macos-15` arm64
4
+ # smoke job, and that runner is scarce: GitHub cancels a job that sits
5
+ # unacquired for ~15 minutes ("The job was not acquired by Runner of
6
+ # type hosted even after multiple attempts"), the release job is
7
+ # skipped, and the built gems never reach rubygems. 2.5.5 took five
8
+ # manual `gh run rerun --failed` rounds across two hours (#815).
9
+ #
10
+ # This re-runs the failed jobs automatically — but ONLY when a job was
11
+ # cancelled with zero steps recorded (the never-acquired signature); a
12
+ # real failure is left alone. Attempts are bounded.
13
+ name: native-gems requeue
14
+
15
+ on:
16
+ workflow_run:
17
+ workflows: [native-gems]
18
+ types: [completed]
19
+
20
+ permissions:
21
+ actions: write
22
+ contents: read
23
+
24
+ jobs:
25
+ requeue:
26
+ # Release-tag runs only, and bounded: each rerun is a new attempt.
27
+ if: >-
28
+ github.event.workflow_run.conclusion == 'failure' &&
29
+ startsWith(github.event.workflow_run.head_branch, 'v') &&
30
+ github.event.workflow_run.run_attempt < 8
31
+ runs-on: ubuntu-latest
32
+ steps:
33
+ - name: Re-queue the never-acquired jobs
34
+ env:
35
+ GH_TOKEN: ${{ github.token }}
36
+ REPO: ${{ github.repository }}
37
+ RUN_ID: ${{ github.event.workflow_run.id }}
38
+ ATTEMPT: ${{ github.event.workflow_run.run_attempt }}
39
+ run: |
40
+ set -euo pipefail
41
+ never=$(gh api "repos/$REPO/actions/runs/$RUN_ID/jobs?per_page=100" \
42
+ --jq '[.jobs[] | select(.conclusion == "cancelled" and ((.steps // []) | length) == 0) | .name] | join(", ")')
43
+ if [ -z "$never" ]; then
44
+ echo "No never-acquired job — leaving this failure alone."
45
+ exit 0
46
+ fi
47
+ echo "Never acquired on attempt $ATTEMPT: $never"
48
+ echo "Re-queueing the failed jobs."
49
+ gh run rerun "$RUN_ID" --repo "$REPO" --failed
@@ -41,13 +41,12 @@ jobs:
41
41
  - name: Run the suite on the core parse path
42
42
  # The comment round-trip specs (:ruby_lane, the #742-#772 batch)
43
43
  # assert placements the Ruby parse produces; the core-parse
44
- # hydration carries none, so they stay excluded. The formatter
45
- # round-trip files stay excluded too: each runs a "Ruby builders"
46
- # context (`from_exp(source, use_native: false)`) that needs the
47
- # parser this lane disables. The hybrid lane (lane-parity.yml)
48
- # runs those files whole, on the native lane.
44
+ # hydration carries none, so they stay excluded by tag. The
45
+ # formatter round-trip files' "Ruby builders" contexts
46
+ # (`from_exp(source, use_native: false)`) carry the tag too, so
47
+ # the files run whole — their core-lane halves included — instead
48
+ # of the whole-file exclusion they used to need (#817).
49
49
  run: |
50
50
  EXPRESSIR_DISABLE_RUBY_PARSE=1 bundle exec rspec spec/expressir spec/syntax \
51
51
  --tag ~production_scale --tag ~ruby_lane \
52
- --exclude-pattern "spec/expressir/express/formatter*_spec.rb" \
53
52
  --require ./tools/rss_formatter --format RssFormatter --format progress
data/ENGINE-COMPAT.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
- "engine_commit": "568fc252e7d55cd6bda9b5a68a15fa41911e88b5",
2
+ "engine_commit": "9eeaf39f34ca1366c21fc89622c82a32338cebcb",
3
3
  "rubygems": "2.5.0",
4
- "ext": "v0.1.70",
4
+ "ext": "v0.1.71",
5
5
  "crates": "1.5.1",
6
6
  "npm": null,
7
7
  "pypi": null,
8
- "released_at": "2026-12-03T14:58:44Z",
8
+ "released_at": "2026-12-04T07:52:40Z",
9
9
  "_comment": "expressir#618 \u2014 the engine-compat manifest, mirroring parsanol-rs#423. Maps the expressir gem train to the expressir-rs ext tag and its engine commit; the null fields fill as the crates/npm/pypi tiers land (expressir#619/#622/#621). tools/check_engine_compat.rb verifies the pairings in CI; every release train updates this file."
10
10
  }
data/expressir.gemspec CHANGED
@@ -50,7 +50,10 @@ Gem::Specification.new do |spec|
50
50
  # 0.8.151 is the first lutaml-model whose moxml constraint (>= 0.5.139,
51
51
  # < 0.7) admits the moxml 0.6 line; earlier releases pin moxml
52
52
  # ~> 0.5.139 and cannot co-resolve with the moxml floor below.
53
- spec.add_dependency "lutaml-model", "~> 0.8.175"
53
+ # 0.8.203 is the first whose KV group lane plans a class-level
54
+ # discriminator and compiles absent actions: hydration of the model
55
+ # wire drops from ~27s to ~10s at 3MB (byte-identical to_hash).
56
+ spec.add_dependency "lutaml-model", "~> 0.8.203"
54
57
  spec.add_dependency "moxml", "~> 0.6.14"
55
58
  spec.add_dependency "paint"
56
59
  spec.add_dependency "parsanol", "~> 1.5.1"
@@ -13,7 +13,7 @@ magnus = { version = "0.9" }
13
13
  # Pinned core release (M1, TODO.parity-ee/19): the ext never floats
14
14
  # main — bump the tag per expressir release, alongside the validation
15
15
  # run that pins it.
16
- expressir = { git = "https://github.com/lutaml/expressir-rs", tag = "v0.1.70" }
16
+ expressir = { git = "https://github.com/lutaml/expressir-rs", tag = "v0.1.71" }
17
17
  serde_json = "1.0"
18
18
 
19
19
 
@@ -61,8 +61,7 @@ module Expressir
61
61
  end
62
62
 
63
63
  def core_check_available?
64
- Expressir::Express::Core::NATIVE_AVAILABLE &&
65
- Expressir::Express::Core.respond_to?(:check_model_hash)
64
+ Expressir::Express::Core.bind?(:check_model_hash)
66
65
  end
67
66
 
68
67
  def check_via_core
@@ -36,6 +36,15 @@ module Expressir
36
36
  end
37
37
  end
38
38
 
39
+ # Whether the EXTENSION carries a bind. Every wrapper below is
40
+ # always defined and raises NotImplementedError for an extension
41
+ # older than its bind, so `respond_to?` on this module says
42
+ # nothing about the extension: a lane must be chosen against the
43
+ # bind itself (expressir#811 — the 2.5.5 lane-selection crash).
44
+ def self.bind?(name)
45
+ NATIVE_AVAILABLE && ::Expressir::Core.respond_to?(name)
46
+ end
47
+
39
48
  # Parse EXPRESS source and return the model as a plain Hash in the
40
49
  # lutaml wire shape (to_hash-compatible), ready for
41
50
  # Expressir::Model::ExpFile.from_hash. `path` is the relative file
@@ -120,8 +120,7 @@ module Expressir
120
120
  end
121
121
 
122
122
  def core_format_available?
123
- Expressir::Express::Core::NATIVE_AVAILABLE &&
124
- Expressir::Express::Core.respond_to?(:format_model_hash)
123
+ Expressir::Express::Core.bind?(:format_model_hash)
125
124
  end
126
125
 
127
126
  def format_via_core(file)
@@ -232,7 +232,7 @@ module Expressir
232
232
  fast_lane = false
233
233
  exp_file =
234
234
  begin
235
- if core_bind?(:parse_to_model_attached_hash)
235
+ if Core.bind?(:parse_to_model_attached_hash)
236
236
  # The fast lane: the core attaches the remarks over the
237
237
  # wire and serializes it; the Ruby tier hydrates via
238
238
  # from_hash (linear on real corpus wires) — the magnus
@@ -244,7 +244,7 @@ module Expressir
244
244
  # before serialization (expressir#635), so the Ruby
245
245
  # visitor and its to_hash delegation never run here.
246
246
  references_resolved = !skip_references &&
247
- core_bind?(:parse_to_model_resolved_hash)
247
+ Core.bind?(:parse_to_model_resolved_hash)
248
248
  wire_json =
249
249
  if references_resolved
250
250
  Core.parse_to_model_resolved_hash(source, schema_file,
@@ -257,7 +257,7 @@ module Expressir
257
257
  Model::ExpFile.from_hash(wire)&.tap(&:wire_parents)&.tap do |model|
258
258
  model.core_wire = wire_json
259
259
  end
260
- elsif core_bind?(:parse_to_model_attached_with_wire)
260
+ elsif Core.bind?(:parse_to_model_attached_with_wire)
261
261
  remarks_attached = true
262
262
  Core.parse_to_model_attached_with_wire(source, schema_file,
263
263
  annotations: annotations)
@@ -313,18 +313,12 @@ module Expressir
313
313
  # proven scales.
314
314
  RESOLVE_DELEGATION_THRESHOLD = 256 * 1024
315
315
 
316
- # Whether the EXTENSION carries a lane's bind. The Core wrappers
317
- # are always defined and raise for an older extension, so the lane
318
- # must be chosen against the bind itself: a version-skewed ext
319
- # (older than the lane) otherwise raises mid-lane.
320
- def self.core_bind?(name)
321
- Core::NATIVE_AVAILABLE && ::Expressir::Core.respond_to?(name)
322
- end
323
- private_class_method :core_bind?
324
-
316
+ # Lanes are chosen against the EXTENSION's bind (Core.bind?), never
317
+ # against the Core wrappers, which are always defined and raise for
318
+ # an older extension (expressir#811).
325
319
  def self.resolve_references!(exp_file, source_size: nil)
326
320
  if source_size && source_size <= RESOLVE_DELEGATION_THRESHOLD &&
327
- Core::NATIVE_AVAILABLE && Core.respond_to?(:resolve_model_hash)
321
+ Core.bind?(:resolve_model_hash)
328
322
  begin
329
323
  merge_base_paths!(exp_file, Core.resolve_model_hash(exp_file.to_hash))
330
324
  return exp_file
@@ -3,6 +3,6 @@ module Expressir
3
3
  # autoload it (Ruby autoload only works for module/class constants, not
4
4
  # for string constants like `Expressir::VERSION`).
5
5
  module Version
6
- VERSION = "2.5.6".freeze
6
+ VERSION = "2.5.7".freeze
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: expressir
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.6
4
+ version: 2.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.8.175
103
+ version: 0.8.203
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.8.175
110
+ version: 0.8.203
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: moxml
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -242,6 +242,7 @@ files:
242
242
  - ".github/workflows/gemspec-floor.yml"
243
243
  - ".github/workflows/lane-parity.yml"
244
244
  - ".github/workflows/links.yml"
245
+ - ".github/workflows/native-gems-requeue.yml"
245
246
  - ".github/workflows/native-gems.yml"
246
247
  - ".github/workflows/performance-release.yml"
247
248
  - ".github/workflows/rake.yml"