Skip to content

Q2 2026 — System.Text.Json migration + quarterly work - #2

Merged
michaldengusiak merged 6 commits into
HoareLea:masterfrom
SAM-BIM:sow/2026-Q2
Jul 20, 2026
Merged

michaldengusiak merged 6 commits into
HoareLea:masterfrom
SAM-BIM:sow/2026-Q2

Conversation

@michaldengusiak

Copy link
Copy Markdown
Contributor

Summary

Quarterly Q2 2026 work from the SAM-BIM fork merging back into the upstream.
Includes the Newtonsoft.Json → System.Text.Json.Nodes migration of the
entire SAM-BIM stack (per-repo PRs already merged into SAM-BIM's sow/2026-Q2).

Highlights of this quarter

  • All IJSAMObject implementations migrated from JObject/JArray/JToken to
    JsonObject/JsonArray/JsonNode.
  • FromJObject / ToJObject renamed to FromJsonObject / ToJsonObject.
  • System.Text.Json 10.0.8 replaces Newtonsoft.Json 13.0.3 in every csproj
    (except SAM_Revit which keeps Newtonsoft loadable for Revit's runtime).
  • Wire format preserved bit-for-bit (14 fixture round-trip tests in SAM/SAM.Tests).
  • 5 latent pre-existing bugs fixed (DateTime/string bleed, NCMData enum round-trip,
    Log identity loss, SearchWrapper missing type discriminator, RelationCollection
    wrong-jObject-passed).

Verification

  • Full BuildAlls_v3 RestoreCleanRebuild against the merged sow/2026-Q2 chain:
    0 errors, 144 artifacts.
  • All 32 per-repo migration PRs on SAM-BIM:sow/2026-Q2 passed build + spdx CI.
  • Local Rhino / Revit / Tas runtime smoke validated.

Test plan

  • Upstream CI builds (if configured)
  • Reviewer spot-check of IJSAMObject API rename
  • After merge, downstream forks sync master from upstream

🤖 Generated with Claude Code

michaldengusiak and others added 3 commits May 15, 2026 22:44
Brings spdx-check.yml in line with the other SAM-BIM repos (and the
year in the COPYRIGHT_HEADER.txt convention).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Replaces the older spdx-check.yml (literal en-dash grep, top 6 lines,
PR-only trigger) with the modern template shipped on SAM core:
- grep -qE with [-–] char class — accepts both hyphen-minus and en-dash
- 20-line lookback (was 6)
- BOM and CR stripping
- mapfile + diff-filter for cleaner change detection
- Adds workflow_dispatch trigger

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Workflow harmonization (CI housekeeping)
* build: Directory.Build.props for centralised SAMVersion stamping

Mirrors SAM-BIM/SAM#7. Stage 2 of the AssemblyVersion versioning migration.

* fix: relax SAMVersion.g.cs Target condition to != 'true'

Codex P1 on SAM_LadybugTools#4: classic (non-SDK) csprojs don't set
GenerateAssemblyInfo at all, so the previous '== false' condition skipped
them. Switching to '!= true' catches both GenerateAssemblyInfo=false
(SDK projects with legacy AssemblyInfo.cs) AND empty (classic projects).

* ci: Codex P2 fixes — four-part SAMVersion, prefer head_ref for sow PRs

- Append .0 so SAMVersion is 4-part (AssemblyFileVersion expects 4 parts).
- Prefer github.head_ref when it matches sow/yyyy-Qx (release-promotion PRs).
- Mirrors SAM sow/2026-Q2 6d87d98e.

* ci: upgrade dep-clone to candidate-based with sow branch resolution

Codex P1 from SAM_Excel#3: simple clone defaults to remote HEAD,
mismatches sow branches. Mirrors fix in SAM_Excel.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fd08a1f047

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

git clone --depth 1 "https://github.com/$org/$r.git" $r
$cloned = $false
foreach ($cand in $candidates) {
$has = (git ls-remote --heads "https://github.com/$org/$r.git" $cand 2>$null | Out-String).Trim()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Match dependency branch names exactly before cloning

Use an exact ref probe here (for example refs/heads/$cand) instead of passing $cand directly to git ls-remote --heads. Per git ls-remote docs, <patterns> are glob-matched against the tail of refs, so sow/2026-Q2 can report a hit on refs like refs/heads/release/sow/2026-Q2. In that case this step tries git clone --branch sow/2026-Q2, which fails because that exact branch does not exist, and the workflow never reaches the intended fallback branch logic.

Useful? React with 👍 / 👎.

Mirrors SAM sow/2026-Q2. Adds AssemblyInformationalVersion attribute generation to
Path D's SAMVersion.g.cs Target — covers Grasshopper / Tas-bridge assemblies that
have GenerateAssemblyInfo=false, so they also get the CI commit SHA stamp in their
ProductVersion field. SDK projects pick up InformationalVersion via PropertyGroup
auto-gen as before. Local dev builds unchanged.
Mirrors SAM sow/2026-Q2. Adds AssemblyInformationalVersion attribute generation to
Path D's SAMVersion.g.cs Target — covers Grasshopper / Tas-bridge assemblies that
have GenerateAssemblyInfo=false, so they also get the CI commit SHA stamp in their
ProductVersion field. SDK projects pick up InformationalVersion via PropertyGroup
auto-gen as before. Local dev builds unchanged.
@michaldengusiak
michaldengusiak merged commit 84f6d97 into HoareLea:master Jul 20, 2026
2 checks passed
@michaldengusiak
michaldengusiak deleted the sow/2026-Q2 branch July 20, 2026 09:02
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