From a5305c6044c7a3b2eb6910b4c5a9ff2006398db1 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Thu, 13 Aug 2026 15:56:25 +0200 Subject: [PATCH 1/3] Improved the Docker image and build context for the Website service target. --- .dockerignore | 3 +++ Services/Website/Dockerfile | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.dockerignore b/.dockerignore index b84d7f9..4d8f56b 100644 --- a/.dockerignore +++ b/.dockerignore @@ -10,6 +10,9 @@ **/.build **/.swiftpm +# The test database's data directory. +**/Tests/DB + # Xcode project (not used by the Linux build) *.xcodeproj diff --git a/Services/Website/Dockerfile b/Services/Website/Dockerfile index c1c6879..89df2b4 100644 --- a/Services/Website/Dockerfile +++ b/Services/Website/Dockerfile @@ -70,8 +70,9 @@ RUN swift build --package-path ./Services/Website -c release \ # Switch to the staging area WORKDIR /staging -# Copy main executable to staging area -RUN cp "$(swift build --package-path /build/Services/Website -c release --show-bin-path)/Website" ./ +# Copy main executable to staging area, without its debug sections +RUN cp "$(swift build --package-path /build/Services/Website -c release --show-bin-path)/Website" ./ \ + && strip --strip-debug ./Website # Copy static swift backtracer binary to staging area RUN cp "/usr/libexec/swift/linux/swift-backtrace-static" ./ From 844a85f88c0827fd13160e8e006ca2f49592729c Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Fri, 14 Aug 2026 08:33:32 +0200 Subject: [PATCH 2/3] Added the Event type to the Analytics type in the Infrastructure package. --- .../Sources/Public/Types/Analytics.swift | 55 +++------ .../Types/Analytics/AnalyticsAttribute.swift | 31 ++++++ .../Types/Analytics/AnalyticsEvent.swift | 55 +++++++++ .../Types/Analytics/AnalyticsEventTests.swift | 105 ++++++++++++++++++ 4 files changed, 206 insertions(+), 40 deletions(-) create mode 100644 Packages/Infrastructure/Sources/Public/Types/Analytics/AnalyticsAttribute.swift create mode 100644 Packages/Infrastructure/Sources/Public/Types/Analytics/AnalyticsEvent.swift create mode 100644 Packages/Infrastructure/Tests/Cases/Public/Types/Analytics/AnalyticsEventTests.swift diff --git a/Packages/Infrastructure/Sources/Public/Types/Analytics.swift b/Packages/Infrastructure/Sources/Public/Types/Analytics.swift index 8839c63..9d127d9 100644 --- a/Packages/Infrastructure/Sources/Public/Types/Analytics.swift +++ b/Packages/Infrastructure/Sources/Public/Types/Analytics.swift @@ -1,16 +1,10 @@ import Foundation -/// The analytics tracker a page embeds: where the script loads from, which site it reports as, which domains it reports from, and how it behaves. +/// The Umami analytics tracker a page embeds as a deferred `