From 8937b0c0fa790357085eaa538e0e9ee02640aefa Mon Sep 17 00:00:00 2001 From: Miha Kralj Date: Wed, 11 Mar 2026 20:54:16 -0700 Subject: [PATCH] fix: CI checkout auth + Wrmse test failure - Publish.yml: Change workflow permissions from {} to contents:read to fix GITHUB_TOKEN having no scopes for actions/checkout@v4 - Wrmse.cs: Use DateTime.UtcNow instead of DateTime.MinValue in Update(double,double,double) to match Beta/Covariance pattern - Bump version to 0.8.5 --- .github/workflows/Publish.yml | 3 ++- lib/VERSION | 2 +- lib/errors/wrmse/Wrmse.cs | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/Publish.yml b/.github/workflows/Publish.yml index fe858258..05bec44e 100644 --- a/.github/workflows/Publish.yml +++ b/.github/workflows/Publish.yml @@ -21,7 +21,8 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true -permissions: {} +permissions: + contents: read defaults: run: diff --git a/lib/VERSION b/lib/VERSION index fcbb5375..bbde4bee 100644 --- a/lib/VERSION +++ b/lib/VERSION @@ -1 +1 @@ -0.8.4 \ No newline at end of file +0.8.5 \ No newline at end of file diff --git a/lib/errors/wrmse/Wrmse.cs b/lib/errors/wrmse/Wrmse.cs index a70cc88f..1f85134c 100644 --- a/lib/errors/wrmse/Wrmse.cs +++ b/lib/errors/wrmse/Wrmse.cs @@ -176,7 +176,8 @@ public sealed class Wrmse : AbstractBase [MethodImpl(MethodImplOptions.AggressiveInlining)] public TValue Update(double actual, double predicted, double weight, bool isNew = true) { - return Update(new TValue(DateTime.MinValue, actual), new TValue(DateTime.MinValue, predicted), weight, isNew); + var now = DateTime.UtcNow; + return Update(new TValue(now, actual), new TValue(now, predicted), weight, isNew); } ///