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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
60 changes: 0 additions & 60 deletions .codescene/code-health-rules.json

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "C++",
"build": {
"dockerfile": "../Dockerfile",
"dockerfile": "Dockerfile",
"context": ".."
},
"runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"],
Expand Down
45 changes: 23 additions & 22 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -51,25 +51,26 @@

# Embedded headers hold the exact bytes of their text sources. Freshness tests
# re-read those sources, so Windows checkouts must preserve LF for every asset.
assets/WebFront.js text eol=lf
include/system/WebFrontJsData.hpp text eol=lf
assets/fallback/index.html text eol=lf
assets/fallback/webfront-fallback.mjs text eol=lf
include/system/FallbackIndexHtmlData.hpp text eol=lf
include/system/FallbackModuleData.hpp text eol=lf
assets/components/terminal/* text eol=lf
assets/components/tools/* text eol=lf
include/system/ToolManagerModuleData.hpp text eol=lf
js/core/WebFront.js text eol=lf
js/core/bootstrap/* text eol=lf
include/webfront/system/WebFrontJsData.hpp text eol=lf
js/core/fallback/index.html text eol=lf
js/core/fallback/webfront-fallback.mjs text eol=lf
include/webfront/system/FallbackIndexHtmlData.hpp text eol=lf
include/webfront/system/FallbackModuleData.hpp text eol=lf
js/developer/components/terminal/* text eol=lf
js/developer/components/tools/* text eol=lf
include/webfront/system/ToolManagerModuleData.hpp text eol=lf
third_party/xterm/* text eol=lf
include/system/TerminalIndexHtmlData.hpp text eol=lf
include/system/TerminalModuleData.hpp text eol=lf
include/system/XtermModuleData.hpp text eol=lf
include/system/XtermCssData.hpp text eol=lf
include/system/XtermFitAddonData.hpp text eol=lf
include/webfront/system/TerminalIndexHtmlData.hpp text eol=lf
include/webfront/system/TerminalModuleData.hpp text eol=lf
include/webfront/system/XtermModuleData.hpp text eol=lf
include/webfront/system/XtermCssData.hpp text eol=lf
include/webfront/system/XtermFitAddonData.hpp text eol=lf

# The fake npm registry of the browser integration test: its packuments are served byte for byte.
webtest/registry/* text eol=lf
webtest/registry/tarballs/* binary
test/web/registry/* text eol=lf
test/web/registry/tarballs/* binary

# Serialisation
*.json text
Expand Down Expand Up @@ -168,21 +169,21 @@ webtest/registry/tarballs/* binary


# Fuzzer seeds retain exact protocol bytes, including HTTP CRLF.
fuzz/corpus/** binary
test/fuzz/corpus/** binary

# Pinned third-party sources and generated dependency data keep exact bytes on Windows.
third_party/react/* text eol=lf
third_party/babel/* text eol=lf
third_party/jasmine/* text eol=lf
third_party/jasmine/*.png binary
third_party/fflate/* text eol=lf
include/system/*Data.hpp text eol=lf
include/webfront/system/*Data.hpp text eol=lf

# Browser-powered developer bootstrap sources and generated payloads.
assets/developer/* text eol=lf
tools/assets/package-lock.json text eol=lf
js/developer/environment/* text eol=lf
js/developer/vendor/package-lock.json text eol=lf

# Starter archives and every hashed distribution input must be identical on Windows.
tools/developer/starters/pi/* text eol=lf
js/developer/tools/starters/pi/* text eol=lf
examples/life/ui/* text eol=lf
tools/developer/* text eol=lf
js/developer/tools/* text eol=lf
File renamed without changes.
31 changes: 12 additions & 19 deletions .github/workflows/BuildAndTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ jobs:
with:
node-version: 24
cache: npm
cache-dependency-path: tools/assets/package-lock.json
cache-dependency-path: js/developer/vendor/package-lock.json
- uses: jwlawson/actions-setup-cmake@0d6a7d60b009d01c9e7523be22153ff8f19460d3 # v2
with:
cmake-version: '4.4.4'
- uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
- uses: actions/cache@v4
with:
path: .cache/CPM
key: cpm-${{ runner.os }}-${{ hashFiles('CMakeLists.txt', 'cmake/*.cmake', 'test/CMakeLists.txt') }}
key: cpm-${{ runner.os }}-${{ hashFiles('CMakeLists.txt', 'cmake/*.cmake', 'test/unit/CMakeLists.txt') }}
restore-keys: cpm-${{ runner.os }}-
- name: Initialize MSVC environment
if: runner.os == 'Windows'
Expand All @@ -95,9 +95,9 @@ jobs:
sccache --version
- name: Prepare offline developer fixtures
run: |
npm ci --prefix tools/assets --ignore-scripts
node tools/developer/build.mjs build-developer-environment
node tools/developer/fixtures.mjs build-developer-environment
npm ci --prefix js/developer/vendor --ignore-scripts
node js/developer/tools/build.mjs build-developer-environment
node js/developer/tools/fixtures.mjs build-developer-environment
# ENABLE_CACHE controls automatic ccache discovery; the explicit sccache launcher stays enabled.
- name: Configure
run: >-
Expand Down Expand Up @@ -151,13 +151,6 @@ jobs:
lcov --ignore-errors inconsistent,inconsistent --gcov-tool gcov-16 --capture --directory . --output-file coverage.info
lcov --ignore-errors inconsistent,inconsistent --remove coverage.info '/usr/*' '*/examples/*' --output-file coverage.info
lcov --list coverage.info
- name: Upload coverage
if: runner.os == 'Linux'
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7
with:
files: build/coverage.info
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: Retain test timings and diagnostics
if: always()
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -230,18 +223,18 @@ jobs:
shell: bash
run: |
set -euo pipefail
mkdir -p build-sanitizers/fuzz/artifacts
mkdir -p build-sanitizers/test/fuzz/artifacts
for decoder in messages http websocket gzip; do
build-sanitizers/fuzz/fuzz_$decoder build-sanitizers/fuzz/corpus/$decoder \
build-sanitizers/test/fuzz/fuzz_$decoder build-sanitizers/test/fuzz/corpus/$decoder \
-max_total_time=30 -timeout=5 -max_len=65536 -rss_limit_mb=1024 \
-artifact_prefix=build-sanitizers/fuzz/artifacts/$decoder-
-artifact_prefix=build-sanitizers/test/fuzz/artifacts/$decoder-
done
- name: Upload fuzz findings
if: failure() && matrix.sanitizer == 'address-undefined'
uses: actions/upload-artifact@v4
with:
name: fuzz-findings
path: build-sanitizers/fuzz/artifacts/
path: build-sanitizers/test/fuzz/artifacts/
if-no-files-found: ignore

web-integration:
Expand Down Expand Up @@ -280,9 +273,9 @@ jobs:

- name: Prepare offline developer environment and starter fixtures
run: |
npm ci --prefix tools/assets --ignore-scripts
node tools/developer/build.mjs build-developer-environment
node tools/developer/fixtures.mjs build-developer-environment
npm ci --prefix js/developer/vendor --ignore-scripts
node js/developer/tools/build.mjs build-developer-environment
node js/developer/tools/fixtures.mjs build-developer-environment
- name: Configure CEF integration build
run: cmake . -B ${{github.workspace}}/build-cef -DCMAKE_BUILD_TYPE=Release -DWEBFRONT_EMBED_CEF=ON -DWEBFRONT_BUILD_EXAMPLES=OFF -DENABLE_TESTING=ON -DWEBFRONT_DEVELOPER_FIXTURES=${{github.workspace}}/build-developer-environment

Expand Down
48 changes: 24 additions & 24 deletions .github/workflows/DeveloperDistribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@ on:
tags: ['developer-v*']
branches: [develop, master]
paths:
- 'assets/developer/**'
- 'assets/components/tools/**'
- 'tools/developer/starters/pi/**'
- 'js/developer/environment/**'
- 'js/developer/components/tools/**'
- 'js/developer/tools/starters/pi/**'
- 'examples/life/ui/**'
- 'tools/developer/**'
- 'tools/assets/package*.json'
- 'include/system/DeveloperReleaseData.hpp'
- 'js/developer/tools/**'
- 'js/developer/vendor/package*.json'
- 'include/webfront/system/DeveloperReleaseData.hpp'
- '.github/workflows/DeveloperDistribution.yml'
pull_request:
branches: [develop, master]
paths:
- 'assets/developer/**'
- 'assets/components/tools/**'
- 'tools/developer/starters/pi/**'
- 'js/developer/environment/**'
- 'js/developer/components/tools/**'
- 'js/developer/tools/starters/pi/**'
- 'examples/life/ui/**'
- 'tools/developer/**'
- 'tools/assets/package*.json'
- 'include/system/DeveloperReleaseData.hpp'
- 'js/developer/tools/**'
- 'js/developer/vendor/package*.json'
- 'include/webfront/system/DeveloperReleaseData.hpp'
- '.github/workflows/DeveloperDistribution.yml'
workflow_dispatch:
inputs:
Expand All @@ -47,23 +47,23 @@ jobs:
with:
node-version: 24
cache: npm
cache-dependency-path: tools/assets/package-lock.json
cache-dependency-path: js/developer/vendor/package-lock.json
- name: Install pinned maintenance dependencies
run: npm ci --prefix tools/assets --ignore-scripts
run: npm ci --prefix js/developer/vendor --ignore-scripts
- name: Build and verify the environment and starter packages
run: |
node tools/developer/build.mjs build-distribution
node tools/developer/build.mjs build-distribution-repeat
node js/developer/tools/build.mjs build-distribution
node js/developer/tools/build.mjs build-distribution-repeat
cmp build-distribution/environment.tgz build-distribution-repeat/environment.tgz
cmp build-distribution/pi-starter.tgz build-distribution-repeat/pi-starter.tgz
cmp build-distribution/life-starter.tgz build-distribution-repeat/life-starter.tgz
cmp include/system/DeveloperReleaseData.hpp build-distribution/DeveloperReleaseData.hpp
node --test tools/developer/check.mjs tools/developer/distribution-check.mjs
cmp include/webfront/system/DeveloperReleaseData.hpp build-distribution/DeveloperReleaseData.hpp
node --test js/developer/tools/check.mjs js/developer/tools/distribution-check.mjs
- name: Check the dedicated release tag
if: startsWith(github.ref, 'refs/tags/developer-v')
env:
RELEASE_TAG: ${{ github.ref_name }}
run: node tools/developer/release-check.mjs "$RELEASE_TAG"
run: node js/developer/tools/release-check.mjs "$RELEASE_TAG"
- uses: actions/upload-artifact@v4
with:
name: developer-distribution
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
name: developer-distribution
path: build-distribution
- name: Check the configured Pages source before pushing
run: node tools/developer/pages.mjs --check
run: node js/developer/tools/pages.mjs --check
- name: Preserve existing versions and publish the static branch
shell: bash
run: |
Expand All @@ -114,19 +114,19 @@ jobs:
elif [ "$result" != 2 ]; then
exit "$result"
fi
node tools/developer/site.mjs build-distribution "$site"
node js/developer/tools/site.mjs build-distribution "$site"
git -C "$site" config user.name "$GITHUB_ACTOR"
git -C "$site" config user.email "$GITHUB_ACTOR@users.noreply.github.com"
git -C "$site" add .nojekyll index.html developer
if ! git -C "$site" diff --cached --quiet; then
version=$(node -p "require('./tools/developer/distribution.json').version")
version=$(node -p "require('./js/developer/tools/distribution.json').version")
git -C "$site" commit -m "Publish developer packages $version [#288]"
git -C "$site" push origin HEAD:refs/heads/gh-pages
fi
- name: Request the configured Pages build
run: node tools/developer/pages.mjs
run: node js/developer/tools/pages.mjs
- name: Archive tagged packages in a dedicated prerelease
if: startsWith(github.ref, 'refs/tags/developer-v')
env:
RELEASE_TAG: ${{ github.ref_name }}
run: node tools/developer/archive-release.mjs "$RELEASE_TAG" build-distribution
run: node js/developer/tools/archive-release.mjs "$RELEASE_TAG" build-distribution
4 changes: 2 additions & 2 deletions .github/workflows/MddlogIntegration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ jobs:
run: |
for iteration in 1 2 3 4 5; do
echo "Transport iteration $iteration"
./build-sanitized/test/tests "[transport],[weblink]" --order rand
./build-sanitized/test/unit/tests "[transport],[weblink]" --order rand
done
- name: Run every test once
run: ./build-sanitized/test/tests --order rand
run: ./build-sanitized/test/unit/tests --order rand
2 changes: 1 addition & 1 deletion .github/workflows/ReleaseVersion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
shell: bash
run: |
version=$(sed -n 's/^CMAKE_PROJECT_VERSION:STATIC=//p' build/CMakeCache.txt)
cmake -DROOT="$GITHUB_WORKSPACE" -DEXPECTED_VERSION="$version" -DRELEASE_TAG="$RELEASE_TAG" -P cmake/CheckReleaseVersion.cmake
cmake -DROOT="$GITHUB_WORKSPACE" -DEXPECTED_VERSION="$version" -DRELEASE_TAG="$RELEASE_TAG" -P test/cmake/CheckReleaseVersion.cmake
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ Thumbs.db
.webfront/

# Maintenance-only npm tooling
/tools/assets/node_modules/
/js/developer/vendor/node_modules/
Loading
Loading