derived-census -check and pilot-diff -check gate no pull request or merge-queue run

オープン
#2,229 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
github-actions, go, java
領域
ci-cd, testing-qa

調査の方向性

Start with .github/workflows/pr.yml, job apijson-differential, and .github/workflows/oracle-reproduction.yml, which show how the pilot tools are provisioned and where pilot-diff -check runs today. Then read the derived-census command under tools/cmd to see what -check and -require-exporter read. Done means a pull-request-tier job fails when pilot-diff or derived-census baselines drift, with the path filter and JVM version settled as the issue describes.

索引モデルが issue の本文から書いたものです。

説明

What happened, and what you expected instead

Two committed baselines are checked by no workflow that gates a pull request, so a change that moves either one passes the push tier and the merge queue and develop stops reproducing its own records. A pull request that moves a generated baseline should fail before it merges.

Check Where it runs today
go run -C tools ./cmd/pilot-diff -check .github/workflows/oracle-reproduction.yml only (scheduled daily, and on dispatch)
go run -C tools ./cmd/derived-census -check no workflow; .github/workflows/rebaseline.yml runs derived-census -update only
go run -C tools ./cmd/pilot-apijson-diff -check .github/workflows/pr.yml, job apijson-differential, when the path filter matches — for comparison

This is how #2223 landed: a name-resolution change moved one specification example in docs/project/pilot-differential-baseline.json and sixteen records in internal/semantic/metamodel/derived_census_records.tsv, and neither movement was seen until someone ran the checks by hand.

Measured cost

On an 8-core Linux machine with the corpora and pilot tools already provisioned (pin 2026-09, Java 21):

Command Wall time
pilot-diff -check about 2.5 min
derived-census -check -require-exporter about 14 min (the pilot export dominates)
pilot-apijson-diff -check about 16 min

derived-census -check without -require-exporter re-measures our side only and reads the pilot column from the committed baseline; it needs no Java and is the cheaper form, not timed here. Provisioning (the corpus downloads, the two validators and the JSON exporter) is extra and is already done by the apijson-differential job for its own check.

Options
  • Run pilot-diff -check and derived-census -check in the merge-queue tier of pr.yml, path-filtered like apijson-differential (the semantic, check and export layers, the tools module, the baselines).
  • Add both to the existing apijson-differential job, which already provisions the same inputs, so the export cost is paid once.
  • At minimum, add derived-census -check -require-exporter to oracle-reproduction.yml, so the nightly run reports the census as it reports the differential.

The pilot column of the census also depends on the JVM for one declared cell (#2224); a gate that re-exports should run after that is settled, or on the Java version the baseline was recorded under.

主要言語
Go
スター
59
フォーク
20
平均マージ
10時間 23分
マージ済み PR(30日)
897

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Open-MBEE/OpenSysML のほかの issue

Open-MBEE/OpenSysML の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。