ci: install the system SQLite in the .NET SDK container
CI / Build and test (pull_request) Successful in 5m59s
CI / Windows tests and installer (pull_request) Skipped
CI / YAML check (pull_request) Successful in 5s
CI / PostgreSQL 16 integration (pull_request) Failing after 6m56s
CI / PostgreSQL 17 integration (pull_request) Failing after 3m47s
CI / Docker image (pull_request) Successful in 1m56s
CI / Build and test (pull_request) Successful in 5m59s
CI / Windows tests and installer (pull_request) Skipped
CI / YAML check (pull_request) Successful in 5s
CI / PostgreSQL 16 integration (pull_request) Failing after 6m56s
CI / PostgreSQL 17 integration (pull_request) Failing after 3m47s
CI / Docker image (pull_request) Successful in 1m56s
The Data and Server tests bind libsqlite3.so.0, which GitHub's runner had and the SDK image does not. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5f27a86406
commit
7830fe46de
4 files changed
+17
-1
No files matched your search
@@ -39,6 +39,10 @@ jobs:
|
||||
git checkout -q FETCH_HEAD
|
||||
git log -1 --format='%h %s'
|
||||
|
||||
# Chronos.Data binds the system SQLite library (BRIEF §6.2), which the SDK image lacks.
|
||||
- name: System SQLite
|
||||
run: apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends libsqlite3-0 > /dev/null
|
||||
|
||||
- name: .NET info
|
||||
run: dotnet --info
|
||||
|
||||
@@ -129,6 +133,10 @@ jobs:
|
||||
git -c http.extraheader="Authorization: basic $(printf 'x-access-token:%s' "$TOKEN" | base64 -w0)" fetch -q --depth=1 origin "${{ github.sha }}"
|
||||
git checkout -q FETCH_HEAD
|
||||
|
||||
# Chronos.Data binds the system SQLite library (BRIEF §6.2), which the SDK image lacks.
|
||||
- name: System SQLite
|
||||
run: apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends libsqlite3-0 > /dev/null
|
||||
|
||||
- name: Configure PostgreSQL (MD5, cleartext, trust, TLS)
|
||||
run: |
|
||||
dotnet run --project src/Chronos.Tools -c Release -- postgres-ci --connection "$CHRONOS_TEST_PG" --host postgres --certificates "$RUNNER_TEMP/pg-tls"
|
||||
|
||||
@@ -46,6 +46,10 @@ jobs:
|
||||
git -c http.extraheader="Authorization: basic $(printf 'x-access-token:%s' "$TOKEN" | base64 -w0)" fetch -q --depth=1 origin "${{ github.sha }}"
|
||||
git checkout -q FETCH_HEAD
|
||||
|
||||
# Chronos.Data binds the system SQLite library (BRIEF §6.2), which the SDK image lacks.
|
||||
- name: System SQLite
|
||||
run: apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends libsqlite3-0 > /dev/null
|
||||
|
||||
- name: Build
|
||||
run: dotnet build tests/Chronos.Data.Tests -c Release -m:4
|
||||
|
||||
|
||||
@@ -72,6 +72,10 @@ jobs:
|
||||
git checkout -q "refs/tags/$TAG"
|
||||
git log -1 --format='%h %s'
|
||||
|
||||
# Chronos.Data binds the system SQLite library (BRIEF §6.2), which the SDK image lacks.
|
||||
- name: System SQLite
|
||||
run: apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends libsqlite3-0 > /dev/null
|
||||
|
||||
- name: Release target
|
||||
env:
|
||||
HAS_RELEASES_TOKEN: ${{ secrets.RELEASES_TOKEN != '' }}
|
||||
|
||||
+1
-1
@@ -421,7 +421,7 @@ One line per decision: date · decision · alternative · reason.
|
||||
| 2026-10-23 | The product is Chronos: a byte-exact rename of every tracked file's contents and path (`Titano`, `titano`, `TITANO` → `Chronos`, `chronos`, `CHRONOS`; 10,394 replacements in 1,744 files, 1,159 moved), so identifiers, namespaces, projects, `CHRONOS_*` variables, `%LOCALAPPDATA%\Chronos`, `.chronos` files and sidecar folders, the error code `CHRONOS001` and the image name change together. No migration of old data folders or settings. Translations were then reviewed per language for forms the old name's final vowel had dictated (Finnish and Estonian cases, Hungarian, Turkish suffixes, Scandinavian genitives, Slavic and Baltic cases): 80 strings changed. Two golden values that contained the old name were recomputed (PostgreSQL MD5 response of `chronos_md5`, verified independently; the payload-tampering test's target). (Chronos on Gitea, R1.) | Keep `Titano` in identifiers and paths; migrate `%LOCALAPPDATA%\Titano` and `.titano` files | No release has shipped, so nobody has data under the old names; one name everywhere is what the owner asked for. |
|
||||
| 2026-10-23 | The repository is `BalboSoft/Chronos` on the owner's Gitea (`https://gitea.encke-hake.ts.net`). Builds embed its web address as `ChronosReleasesUrl` (replacing `ChronosReleasesRepo`, an `owner/name` on GitHub): the update check reads `<server>/api/v1/repos/<owner>/<name>/releases?draft=false&pre-release=false` (a path prefix in front of the owner is kept), the licence opens `<repository>/src/branch/main/EULA.md`, issues `<repository>/issues`, and Add/Remove Programs shows the repository. (R2.) | Two properties (server and repository); keep the GitHub API shape | One address is what the owner sees in the browser; Gitea's release JSON has the fields the update check reads (`tag_name`, `html_url`, `draft`, `prerelease`, `assets[].browser_download_url`). |
|
||||
| 2026-10-23 | Releases are published in the repository that runs the workflow; the separate public releases repository of BRIEF §19.4 becomes optional (`RELEASES_REPO` and `RELEASES_TOKEN`). `EULA.md` and `SECURITY.md` move to the repository root and the issue forms to `.gitea/ISSUE_TEMPLATE` (Gitea's `about` key instead of GitHub's `description`), so they are live where the releases are; `deploy/releases-repo/` keeps only the README of a separate repository, to which release.yml copies the rest. Security reports go privately to the maintainers: Gitea has no private vulnerability reporting. (R2.) | Create `BalboSoft/chronos-releases` | §19.4 split the repositories because a private GitHub repository cannot serve release files; on a self-hosted Gitea the owner decides visibility of the one repository. |
|
||||
| 2026-10-23 | Gitea Actions workflows in `.gitea/workflows` run on act_runner in Docker mode: the .NET jobs use the `mcr.microsoft.com/dotnet/sdk:10.0` container and check out with git (the image has no Node.js for JavaScript actions), use no artifacts or caches, and build with 4 cores (`BUILD_CPUS`) because the runner shares its host with Gitea, which stalled during the first unthrottled ReadyToRun build. Jobs that need docker use the runner's own image and the host's daemon. (R3.) | `actions/checkout` and `actions/setup-dotnet` in the runner image | Downloading the SDK on every job costs minutes and network; the SDK image stays on the host after its first pull. |
|
||||
| 2026-10-23 | Gitea Actions workflows in `.gitea/workflows` run on act_runner in Docker mode: the .NET jobs use the `mcr.microsoft.com/dotnet/sdk:10.0` container and check out with git (the image has no Node.js for JavaScript actions), install the system SQLite (`libsqlite3-0`) the image lacks, use no artifacts or caches, and build with 4 cores (`BUILD_CPUS`) because the runner shares its host with Gitea, which stalled during the first unthrottled ReadyToRun build. Jobs that need docker use the runner's own image and the host's daemon. (R3.) | `actions/checkout` and `actions/setup-dotnet` in the runner image | Downloading the SDK on every job costs minutes and network; the SDK image stays on the host after its first pull. |
|
||||
| 2026-10-23 | The release cross-compiles the Windows programs on Linux (`EnableWindowsTargeting`, win-x64 runtime packs, ReadyToRun through the Linux crossgen). `Chronos.Tools pe-check` fails the release (and CI) when a published program is not a GUI program or lacks its icon, version information or PerMonitorV2 manifest, which the SDK copies into the apphost. Optional Authenticode signing uses osslsigncode (signtool needs Windows); the payload format already tolerates the appended certificate table. (R3.) | Require a Windows runner for releases | The owner's only runner is Linux; the resource check measured on the runner showed icon, version and manifest present, and the check keeps it that way. |
|
||||
| 2026-10-23 | New `Chronos.Tools` commands for the Linux runner: `zip` (the SDK image has no zip program), `gitea-release` (creates a draft for a new tag, uploads every file replacing same-named ones, publishes, then checks that every file is listed at its size; token from an environment variable, never printed) and `postgres-ci` (MD5, cleartext and trust roles with their pg_hba lines and TLS with a self-signed certificate for the service host name, all through SQL as the superuser: `pg_read_file`, `lo_export`, `ALTER SYSTEM`). `.github/scripts/postgres-ci-setup.sh` is gone: Gitea gives no service container id to `docker exec` into. (R3.) | curl and jq scripts; install docker or psql into the job | The SDK image has neither jq nor psql nor docker; C# commands are tested like the rest and keep the zero-package rule. |
|
||||
| 2026-10-23 | The server image is built for linux/amd64 only and pushed to the Gitea container registry (`<host of PUBLIC_URL>/<owner>/chronos-server`) with the `REGISTRY_TOKEN` secret; `:latest` moves only to the highest stable version among the published releases, read back after publishing. The workflow's own token is refused by the organisation's registry (measured), so without the secret the image job fails with instructions while the release itself is already published. (R3.) | Multi-arch with QEMU; fail the whole release | Multi-arch needs QEMU's binfmt handlers installed on the owner's host, a change to the host outside the repository; the Windows programs should not wait on a registry credential. |
|
||||
|
||||
Reference in new issue
Block a user