Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 35 additions & 2 deletions .fileassert.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,47 @@
---
# FileAssert document validation tests for SysML2Tools.
# Tests are tagged by document group to allow per-group execution during the build pipeline.
# Tags: build-notes, code-quality, code-review, design, verification, user-guide, requirements.
# Tags: build-notes, code-quality, code-review, design, verification, user-guide, requirements, package.
#
# NOTE: build-notes through user-guide tests provide OTS evidence for Pandoc and WeasyPrint
# and run before ReqStream. The requirements tests run after ReqStream and validate the
# final outputs, but do not contribute to OTS requirements evidence.
# final outputs, but do not contribute to OTS requirements evidence. The package tests run
# after `dotnet pack` in the build job and validate the packed NuGet packages.

tests:

# --- PACKAGE ---
# The Tool package previously ballooned to ~435 MB because native SkiaSharp runtime
# assets shipped with their debug symbols (.pdb) alongside the binaries. These tests
# just guard against that regression: the packed size stays under budget, the tool's
# main assembly and README are present, and no .pdb files leak into the native
# runtimes folder.

- name: Package_ToolSizeWithinLimit
description: "Tool package stays within its size budget"
tags: [package]
files:
- pattern: "artifacts/packages/DemaConsulting.SysML2Tools.Tool.*.nupkg"
count: 1
max-size: 73400320 # 70 MiB

- name: Package_ToolContentsValid
description: "Tool package contains its main assembly and README, with no stray native symbol files"
tags: [package]
files:
- pattern: "artifacts/packages/DemaConsulting.SysML2Tools.Tool.*.nupkg"
zip:
files:
- pattern: "README.md"
min: 1
- pattern: "tools/net10.0/any/DemaConsulting.SysML2Tools.dll"
min: 1
max: 1
# Native SkiaSharp runtime assets must not ship with .pdb symbol files -
# this is what caused the historical ~435 MB package-size bloat.
- pattern: "tools/net10.0/any/runtimes/**/*.pdb"
max: 0

# --- BUILD NOTES ---

- name: Pandoc_BuildNotesHtml
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,12 @@ jobs:
--property:PackageVersion=${{ inputs.version }}
--output ./artifacts/packages

- name: Assert Package Contents with FileAssert
run: >
dotnet fileassert
--results artifacts/fileassert-package-${{ matrix.os }}.trx
package

# === UPLOAD ARTIFACTS ===
# This section uploads all generated artifacts for use by downstream jobs.
# Downstream projects: Add any additional artifact uploads here.
Expand Down
Loading
Loading