Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

chore(release): merge develop into main for 0.3.0 - #32

Merged
HuiJun merged 30 commits into
mainfrom
develop
Dec 1, 2026
Merged

HuiJun merged 30 commits into
mainfrom
develop

Conversation

@HuiJun

@HuiJun HuiJun commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Brings main up to develop for the 0.3.0 release (the "merge develop into main" step of the release process in CONTRIBUTING.md). develop already carries the folded ## 0.3.0 - 2026-11-30 changelog section from #31; this pull request adds nothing of its own.

main has no commits that develop lacks (30 commits ahead, 0 behind), so this can be a fast-forward, which is how 0.1.0 and 0.2.0 reached main. A merge commit made here would exist only on main.

0.3.0 adds the dependency-sources command, the syspi-wasip1-wasm.wasm release asset and the PyPI wheels (pip install syspi, #30), fixes the root-declaration index of syspi bundle, and removes the unused Archive.Extract and version.Sort.

After merging: tag v0.3.0 on main. 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; if pypi fails, the GitHub release is already out and that job can be re-run alone.


Product Engineer opened this PR for Jason
Implemented in session Publish SysPI CLI to PyPI
Review with Devin · Open in Devin Desktop


devin-ai-integration Bot and others added 30 commits November 19, 2026 02:37
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>
…ix metadata

Co-Authored-By: jason.han <hanhuijun@gmail.com>
Co-Authored-By: jason.han <hanhuijun@gmail.com>
* 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>
@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration
devin-ai-integration Bot marked this pull request as ready for review November 30, 2026 22:31

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Devin Review found 4 findings. All 4 findings are left for you to triage below.

View findings in Devin Review · Follow Devin's work

Devin Review

Comment on lines +25 to +29
scratch, err := os.MkdirTemp("", "syspi-dependency-sources-")
if err != nil {
return err
}
defer os.RemoveAll(scratch)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔴 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.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment on lines +230 to +234
data, err := a.readMember(a.byName[name], MaxArchiveSize)
if err != nil {
return err
}
return os.WriteFile(target, data, 0o644)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔴 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.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment thread internal/project/scan.go
Comment on lines +211 to +217
next := ""
if i < len(rest) && rest[i].kind != tokQuoted {
next = rest[i].text
}
if referenceFollowers[next] || keyword == "binding" && next == "=" {
return nil
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment on lines +17 to +19
fs := newFlagSet("dependency-sources", stderr, "[-C dir]")
root := fs.String("C", ".", "project directory")
if err := parse(fs, args); err != nil {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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.

Suggested change
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 {

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

@HuiJun
HuiJun merged commit 4494336 into main Dec 1, 2026
20 of 22 checks passed
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.

2 participants