Repository navigation
Conversation
Co-Authored-By: jason.han <hanhuijun@gmail.com>
Co-Authored-By: jason.han <hanhuijun@gmail.com>
The release commit folds the fragments into CHANGELOG.md, so the fragment check can never pass on develop -> main; skip it there. Co-Authored-By: jason.han <hanhuijun@gmail.com>
Co-Authored-By: jason.han <hanhuijun@gmail.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* ci: a release pull request into main adds no changelog fragment The release commit folds the fragments into CHANGELOG.md, so the fragment check can never pass on develop -> main; skip it there. Co-Authored-By: jason.han <hanhuijun@gmail.com> * docs: changelog fragment for the release-PR fragment skip Co-Authored-By: jason.han <hanhuijun@gmail.com> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: jason.han <hanhuijun@gmail.com>
…ract Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
… misses Co-Authored-By: jason.han <hanhuijun@gmail.com>
Co-Authored-By: jason.han <hanhuijun@gmail.com>
Co-Authored-By: jason.han <hanhuijun@gmail.com>
…ix metadata Co-Authored-By: jason.han <hanhuijun@gmail.com>
Co-Authored-By: jason.han <hanhuijun@gmail.com>
This reverts commit 8756f84.
* test(project): reproduce the top-level names the bundle index scanner misses Co-Authored-By: jason.han <hanhuijun@gmail.com> * fix(project): index the names and short names of every root declaration Co-Authored-By: jason.han <hanhuijun@gmail.com> * fix(project): keep a SysML 2.0 element named new in the index Co-Authored-By: jason.han <hanhuijun@gmail.com> * fix(project): index a root declaration behind globally qualified prefix metadata Co-Authored-By: jason.han <hanhuijun@gmail.com> * docs(project): shorten the declaredNames comment to two lines Co-Authored-By: jason.han <hanhuijun@gmail.com> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: jason.han <hanhuijun@gmail.com>
Export verified dependency sources and ship the SysPI WASI asset
Co-Authored-By: jason.han <hanhuijun@gmail.com>
Co-Authored-By: jason.han <hanhuijun@gmail.com>
Co-Authored-By: jason.han <hanhuijun@gmail.com>
Co-Authored-By: jason.han <hanhuijun@gmail.com>
Co-Authored-By: jason.han <hanhuijun@gmail.com>
* feat(release): publish syspi to PyPI as platform wheels Co-Authored-By: jason.han <hanhuijun@gmail.com> * chore: keep Python bytecode out of the tree Co-Authored-By: jason.han <hanhuijun@gmail.com> * test(pypi): find bash on PATH so Windows does not run the WSL launcher Co-Authored-By: jason.han <hanhuijun@gmail.com> * fix(pypi): run the binary of the install the module came from Co-Authored-By: jason.han <hanhuijun@gmail.com> * chore(release): keep the PyPI job comment to two lines Co-Authored-By: jason.han <hanhuijun@gmail.com> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: jason.han <hanhuijun@gmail.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
There was a problem hiding this comment.
Devin Review found 4 findings. All 4 findings are left for you to triage below.
| scratch, err := os.MkdirTemp("", "syspi-dependency-sources-") | ||
| if err != nil { | ||
| return err | ||
| } | ||
| defer os.RemoveAll(scratch) |
There was a problem hiding this comment.
🔴 WASI export blocked without writable temp storage
With only the project directory preopened, cmdDependencySources fails before reading it. WASI cannot create the scratch directory under /tmp without a writable mount there or a configured TMPDIR.
Devin left this for you to triage: Ships in 0.3.0 as is: dependency-sources on the WASI build fails unless the host preopens a writable temp directory or sets TMPDIR. The code is already on develop and this merge adds nothing, so a fix belongs in a follow-up pull request against develop; it need not hold the release.
Learn more
WASI hosts grant a program filesystem access by opening specific directories for it. With no TMPDIR, Go places os.MkdirTemp output under /tmp. The command requests that directory before calling DependencyModels, even though export needs only read access to project data.
Example: Run the released WASI executable with /workspace as its only preopened directory and pass dependency-sources -C /workspace. With no TMPDIR override, the command fails at scratch creation even when the lock and installation are valid.
Recommended fix: Return verified relative paths and contents from the export layer without staging them to disk, and add a WASI smoke test that preopens only a read-only workspace.
Was this helpful? React with 👍 or 👎 to provide feedback.
| data, err := a.readMember(a.byName[name], MaxArchiveSize) | ||
| if err != nil { | ||
| return err | ||
| } | ||
| return os.WriteFile(target, data, 0o644) |
There was a problem hiding this comment.
🔴 Case-distinct archive sources exported incorrectly
On case-insensitive filesystems, extractMember overwrites the first model when two verified archive paths differ only by case. The export silently reports the second model’s text for both paths.
Devin left this for you to triage: Ships in 0.3.0 as is: on a case-insensitive filesystem, dependency-sources can report one model's text for two archive members whose paths differ only by case. Already on develop; fix in a follow-up pull request against develop (reject or disambiguate such members), not in this merge.
Learn more
KPARs are ZIP archives and openArchive checks duplicates by the exact member path. The exporter writes those paths to scratch and records each path separately in ExtractTextModels. On a case-insensitive volume, two distinct ZIP paths name the same scratch file. cmdDependencySources reads each path only after staging has finished, so both JSON entries carry the bytes of the last write.
Example: Bundle Mode.sysml and mode.sysml with different text on Linux. Install the KPAR and run dependency-sources on default Windows storage. Both paths appear in the JSON, but only the text of mode.sysml survives.
Recommended fix: Read each verified archive member by its ZIP identity and return its original path and bytes directly. Add an export test with two case-distinct member paths and assert that their contents differ in the result.
Was this helpful? React with 👍 or 👎 to provide feedback.
| next := "" | ||
| if i < len(rest) && rest[i].kind != tokQuoted { | ||
| next = rest[i].text | ||
| } | ||
| if referenceFollowers[next] || keyword == "binding" && next == "=" { | ||
| return nil | ||
| } |
There was a problem hiding this comment.
🟡 Connector ends misindexed as root declarations
For an unnamed KerML connector with a named first end, identification treats the end’s name as the connector’s name. The bundle index can then point that name at the wrong model file.
Devin left this for you to triage: Ships in 0.3.0 as is: an unnamed KerML connector with a named first end may be indexed by syspi bundle under the end's name. Not confirmed with a model here; already on develop, so confirm and fix in a follow-up pull request against develop.
Learn more
KerML allows an unnamed binary connector to give its first end a local name before references or ::>. The scanner accepts that name because those tokens do not distinguish connector ends from root names here. generateMeta keeps the first sorted path for a duplicate index name.
Example: If a.kerml contains connector source references a to b; and z.kerml contains feature source;, the generated index maps source to a.kerml. Only the feature in z.kerml declares that name at the root.
Recommended fix: Recognize the unnamed binary connector form before recording a root name. Use the connector syntax to distinguish a named end from a genuine named feature with a reference specialization; do not reject references globally. Add cases for both connector-end spellings.
Was this helpful? React with 👍 or 👎 to provide feedback.
| fs := newFlagSet("dependency-sources", stderr, "[-C dir]") | ||
| root := fs.String("C", ".", "project directory") | ||
| if err := parse(fs, args); err != nil { |
There was a problem hiding this comment.
🟡 Offline flag rejected by dependency export
Passing -offline to cmdDependencySources produces a usage error instead of exporting dependencies. Other project commands accept the documented flag.
Devin left this for you to triage: Ships in 0.3.0 as is: syspi dependency-sources -offline is a usage error although the README says every project command takes -offline (the command registers only -C). Already on develop; small fix for a follow-up pull request against develop, or decide to hold the tag for it.
| fs := newFlagSet("dependency-sources", stderr, "[-C dir]") | |
| root := fs.String("C", ".", "project directory") | |
| if err := parse(fs, args); err != nil { | |
| fs := newFlagSet("dependency-sources", stderr, "[-C dir] [-offline]") | |
| root := fs.String("C", ".", "project directory") | |
| fs.Bool("offline", true, "never contact a repository or server; this command is always offline") | |
| if err := parse(fs, args); err != nil { |
Was this helpful? React with 👍 or 👎 to provide feedback.
Summary
Brings
mainup todevelopfor the 0.3.0 release (the "mergedevelopintomain" step of the release process inCONTRIBUTING.md).developalready carries the folded## 0.3.0 - 2026-11-30changelog section from #31; this pull request adds nothing of its own.mainhas no commits thatdeveloplacks (30 commits ahead, 0 behind), so this can be a fast-forward, which is how 0.1.0 and 0.2.0 reachedmain. A merge commit made here would exist only onmain.0.3.0 adds the
dependency-sourcescommand, thesyspi-wasip1-wasm.wasmrelease asset and the PyPI wheels (pip install syspi, #30), fixes the root-declaration index ofsyspi bundle, and removes the unusedArchive.Extractandversion.Sort.After merging: tag
v0.3.0onmain. The tag starts.github/workflows/release.yml, which runs the gate, builds and signs the archives, creates the GitHub release, then publishes the wheels to PyPI (pypi) and installs them from PyPI on Linux, macOS and Windows (validate-pypi). This is the first run of those two jobs; ifpypifails, the GitHub release is already out and that job can be re-run alone.Implemented in session Publish SysPI CLI to PyPI
Review with Devin · Open in Devin Desktop