Commit Graph
100 Commits
Author SHA1 Message Date
Axel Uhl 9ced74e0d5 bug53: fix build-gate letting compile-only fork PRs merge
A required status check whose job is skipped by its own if: still
materializes a check run with conclusion "skipped", which GitHub branch
protection / rulesets treat as SATISFIED (mergeable). The prior design
assumed an if:-false job would leave the required check "pending" and
block merge without a red X; that pending state does not exist for a job
that is part of a triggered workflow. As a result, a successful
compile-only fork pull_request build reported build-gate as "skipped"
= passed, and PRs #53/#54 became mergeable WITHOUT the secret-bearing
test build ever running (#53 was merged this way).

Fix: build-gate now runs unconditionally (if: always()) and, for a
successful compile-only run (build success AND skip_tests==true), exits 1
instead of skipping, so the required check goes red and the PR stays
un-mergeable. Only a genuine full build with tests, or a legitimate
trivial-change skip, satisfies the gate. Merge qualification for fork
code still comes solely from a maintainer pushing a *-reviewed-for-build
tag. compile-gate (advisory) is unchanged and still shows the compile
succeeded.

Assisted-By: Claude Opus 4.8
2026-08-28 23:39:30 +02:00
Axel Uhl f9a67614c5 Merge branch 'bug6279' into eclipse-main 2026-08-28 22:08:34 +02:00
Axel Uhl 434093cedc removed extra empty line from README.md 2026-08-28 21:33:09 +02:00
Axel Uhl b5218fa611 bash completion: list all options on a bare Tab after the command
Previously the option-name branch was guarded by `$cur == -*`, so a Tab
in option position with an empty current word produced nothing. Drop the
guard: compgen -W filters by $cur anyway, so an empty cur now lists every
option while a partial still narrows. Value completion is unaffected —
those cases return earlier in the function.

Assisted-By: Claude Opus 4.8
2026-08-28 21:03:45 +02:00
Axel Uhl 732be09a2d Add bash completion for merge-upstream-to-downstream.sh
Tab-completes the script's named options and, intelligently, their
values against the git repo containing the CWD:
  - remote-name options complete against 'git remote';
  - remote-branch options (--upstream/downstream/fork-branch) complete
    against the branches OF THE RESOLVED REMOTE, resolving each role to
    a remote with the same precedence the script uses (explicit
    --*-remote on the line > MERGE_U2D_* env var > built-in default);
  - --local-*-branch options complete against local branches.

Install by sourcing from ~/.bashrc or symlinking into a
bash-completion completions dir under the command's basename.

Assisted-By: Claude Opus 4.8
2026-08-28 21:00:24 +02:00
Axel Uhl 15486910e2 merge-upstream-to-downstream.sh: env-var defaults and step-7 PR-lookup fix
Add MERGE_U2D_* environment variables that seed the default for every
command-line option, with precedence CLI option > env var > built-in
default. This lets the script run with no arguments when e.g.
MERGE_U2D_FORK_REMOTE is exported from .bashrc; -h shows the live
resolved defaults.

Also fix the step-7 fallback so that when 'gh pr create' refuses because
an open PR already exists for the fork head (the older-head path, where
the push already updated it in place), the existing PR is found and its
URL reported instead of erroring. 'gh pr list --head' filters by branch
name only, so match on the bare fork branch plus a headRepositoryOwner
filter, mirroring the early idempotency check.

Assisted-By: Claude Opus 4.8
2026-08-28 20:54:52 +02:00
Axel Uhl 612690569e added configuration/merge-upstream-to-downstream.sh for automated PR generation 2026-08-28 20:46:48 +02:00
Axel Uhl 5fe998c19d removed extra empty line 2026-08-28 19:46:14 +02:00
Axel Uhl bb946937fa release.yml: restore always() on build-gate so a failed build goes red
A regression: replacing 'if: always()' with the bare content guard
'if: ${{ !(needs.build.result == '\''success'\'' && ... skip_tests == '\''true'\'') }}'
lost always() semantics. Because 'build' is in needs:, a FAILED build then
cascade-skips build-gate (GitHub's default: a dependent job is skipped when a
needs: dependency fails unless the if: contains always()/!cancelled()). That
left the REQUIRED build-gate check quietly pending on a real build failure
instead of going red (observed on run 33162860634, a push to main with a
failing build).

Restore always() so the gate runs for every build outcome and the narrow guard
alone decides the sole non-run case (a *successful* compile-only build, which
must stay pending/blocked, not red). A real build failure now runs the gate and
it exits 1 -> red. Documented why always() is required in the comment.

Assisted-By: Claude Opus 4.8
2026-08-28 18:17:02 +02:00
Axel Uhl e6ac76f0fa bug6279: use Supplier<String> for logs and changed from info to fine 2026-08-28 16:00:47 +02:00
Axel Uhl b01257f126 bug6279: use Util.size instead of force-looping; O(1) now for typical collections 2026-08-28 15:33:02 +02:00
Axel Uhl 5b637a2624 Merge branch 'eclipse-main' into bug6279 2026-08-28 15:06:36 +02:00
Axel Uhl 593b65368c Merge remote-tracking branch 'eclipse/main' into eclipse-main 2026-08-28 12:11:58 +02:00
Axel Uhl 51403fbe1f Skip build-gate on successful compile-only runs so they show pending (not red) while staying merge-blocked
A successful compile-only run (fork pull_request, *-reviewed-for-compile tag,
or workflow_dispatch with skip_tests=true) previously made build-gate exit 1:
the required check went red AND the whole Actions run showed as failed, even
though compilation succeeded. That reads as breakage when nothing broke.

Fork pull_request runs get a read-only GITHUB_TOKEN (permissions: is capped to
read-only regardless of what the workflow requests), so the Commit Statuses and
Checks APIs both 403 there — a posted 'neutral'/status cannot mark the check.
And neutral would not block merge anyway (GitHub treats neutral/skipped/success
as passing for required checks). The only state that is both non-red and still
merge-blocking is a required check that is never reported: it sits 'Expected —
waiting' (pending).

So build-gate is now SKIPPED via a job-level if: for exactly the successful
compile-only case. A required check whose job never starts stays pending, so the
PR remains un-mergeable without a red X and the run is not marked failed. This
must be a job-level skip (job never starts): a job that runs and reports
conclusion 'skipped' counts as PASSED and would let the PR merge.

The guard is deliberately narrow — !(build.result == success && skip_tests ==
true) — so a compile-only build that FAILED still runs the gate and goes red,
and the trivial-change skip still runs and goes green (docs-only PRs are not
left pending forever). The now-unreachable compile-only branch in the gate body
is removed. Merge qualification for fork code continues to come from a
maintainer pushing a *-reviewed-for-build tag (full trusted build with tests).
compile-gate (advisory) still runs and goes green, giving a clear positive
compile signal beside the pending build-gate.

Assisted-By: Claude Opus 4.8
2026-08-28 12:08:59 +02:00
Axel Uhl e0679de32d Upgrade actions/checkout, setup-java, upload-artifact to node24 releases (pinned by SHA)
actions/checkout@v4, setup-java@v4 and upload-artifact@v4 run on the node20
runtime, which is EOL (Node 20 reached end-of-life on 2026-03-24) and emits a
deprecation warning on every run. Bump each to its current release, all of
which run on node24, and pin by full commit SHA (matching how the third-party
actions in this workflow are pinned):

- actions/checkout    v4 -> v7.0.1 (3d3c42e5aac5ba805825da76410c181273ba90b1)
- actions/setup-java  v4 -> v6.0.0 (dd06d9cba3e5552c54d9f8ea23572deb30010f7c)
- actions/upload-artifact v4 -> v7.0.1 (043fb46d1a93c77aae656e7c1c64a875d1fc6a0a)

checkout v5+ requires Actions Runner >= v2.327.1, which GitHub-hosted
ubuntu-latest satisfies. setup-java v6 is unaffected for the Temurin 8/17/25
toolchains used here. actions/upload-release-asset@v1 is intentionally left as
is: it is archived with no maintained successor and belongs to a separate
change, not this node20 sweep.

Assisted-By: Claude Opus 4.8
2026-08-27 20:19:15 +02:00
Axel Uhl dfc113c19f Auto-build submitted PRs (same-repo: full build with tests+secrets; fork: compile-only, no secrets)
A submitted PR now triggers a build automatically, split by trust:

- Same-repo PR (branch pushed by a committer): full build with tests and
  secrets — same trust level as a direct branch push, which already builds
  with secrets. build-gate can go green with no manual tag.
- Fork PR: compile-only with NO secrets. GitHub withholds secrets from fork
  pull_request runs at the event level, and a compile-only build needs none,
  so this is both automatic and safe. build-gate stays red; the secret-bearing
  full build of fork code remains gated behind a maintainer pushing a
  *-reviewed-for-build tag.

Uses pull_request (not pull_request_target), so fork runs get a read-only
token and no secrets; with the secret env values already resolving to '' when
tests are skipped, fork code never meets a secret.

- pull_request trigger: types [opened, synchronize, reopened, ready_for_review]
  with the same paths-ignore as push; no branches: filter (targets PRs into any
  base branch).
- build job if:: draft PRs are excluded (build only once marked ready).
- Determine build mode: a fork pull_request (head.repo.full_name != the base
  repo) sets skip_tests=true; same-repo PRs run the full build.

The conditional secret env, -t flag, Test Reports guard, and both gate jobs
already key on the computed skip_tests flag, so they need no change.

Assisted-By: Claude Opus 4.8
2026-08-27 18:26:01 +02:00
Axel Uhl 180b05e065 Add two-stage reviewed-tag build flow (compile-only without secrets, full build with secrets)
A maintainer reviews a fork PR's exact SHA, then pushes a tag at that SHA:
'*-reviewed-for-compile' runs a compile-only build with NO secrets (cheap
sanity check), '*-reviewed-for-build' runs the full build with tests and
secrets. A tag push is a trusted push event in the base repo, so it receives
secrets — the only way to run secret-bearing validation on fork-authored code.

- push trigger: keep branches: ['**'] (required so the new tags: filter does
  not silently disable branch triggers) and add the two reviewed-tag families.
- build job: a 'Determine build mode' step computes skip_tests (true for a
  -for-compile tag or a workflow_dispatch skip_tests=true) and exposes it as a
  job output. The five test-runtime secrets resolve to '' when skip_tests is
  true, so their values never enter the environment on a compile-only run; -t
  is passed on the same flag. Test Reports step is skipped when tests are.
- build-gate (required check): green only for a genuine full build with tests,
  or a trivial-change skip; a compile-only success fails it. This also fixes a
  pre-existing bug where a skip_tests=true dispatch satisfied the gate.
- compile-gate (new, advisory): green whenever the build compiled, regardless
  of tests, giving -for-compile runs a distinct check without touching the
  required build-gate.

Assisted-By: Claude Opus 4.8
2026-08-27 18:01:26 +02:00
Axel Uhl d31e2510e8 redact token from README.md 2026-08-27 16:05:38 +02:00
Axel Uhl fe95b7b770 updated dorny/test-reporter from 1.9 to 3.0 2026-08-27 14:40:20 +02:00
Axel Uhl 7d5b5093b5 bug48: drop the approving-review environment gate upstream
Upstream committers have more freedom handling PRs, so the pull_request_review
trigger, the privileged-pr-build environment gate, and the associated
head-SHA / persist-credentials / base-ref conditionals are not needed here.
Remove them, keeping the plain push/workflow_dispatch build.

The dorny/paths-filter correctness fix (v4.0.3 + some-with-excludes + a
positive '**' rule) is retained: it fixes a pre-existing bug where docs-only
changes were misclassified as code changes on the push path too.

The downstream (SAP) branch keeps the environment-based approval approach via
a subsequent 'merge -s ours'.

Assisted-By: Claude Opus 4.8
2026-08-27 11:46:25 +02:00
Axel Uhl a91ae444e2 bug48: upgrade dorny/paths-filter to v4.0.3 and use some-with-excludes
v4 adds the 'some-with-excludes' predicate-quantifier, which is the natural
fit here: code is true only when a changed file matches the positive '**'
rule and none of the '!' exclusions. Replaces the v3.0.3 'every' workaround.
The only v4 breaking change is the Node 20->24 runtime bump.

Assisted-By: Claude Opus 4.8
2026-08-27 11:22:20 +02:00
Axel Uhl 03dbc43834 bug48: fix path filter so docs-only PRs are correctly excluded
The 'code' filter used only negated rules under the default 'some'
quantifier. picomatch treats '!README.md' as "any path except README.md",
so a changed README.md still matched a rule and set code=true, forcing a
full build for docs-only PRs (as seen on PR #48).

Add a positive '**' rule and set predicate-quantifier: 'every' (the pinned
v3.0.3 does not support the v4-only 'some-with-excludes'), so code is true
only when a changed file matches the '**' rule AND all '!' exclusions,
i.e. it is a non-trivial file.

Assisted-By: Claude Opus 4.8
2026-08-27 11:22:06 +02:00
Axel Uhl 2f5a5c1bc1 bug48: apply the trivial-changes path filter to approved-PR builds too
The changes job used dorny/paths-filter without an explicit base/ref, so on
a pull_request_review event (which, unlike pull_request, is not auto-detected
by the action) it diffed against the default branch with a shallow clone and
treated every file as changed. A docs-only PR therefore ran a full build and
hit the deployment-review gate needlessly.

Diff the PR head (github.event.pull_request.head.sha) against the PR base
(github.event.pull_request.base.sha) explicitly, fetch full history so the
merge-base resolves, and grant pull-requests: read. Push and workflow_dispatch
behavior is unchanged (base/ref fall back to empty, fetch-depth to 1).

Assisted-By: Claude Opus 4.8
2026-08-27 11:21:54 +02:00
Axel Uhl cfa5cf505c more instructions for Claude Code in CLAUDE.md 2026-08-27 10:41:52 +02:00
Axel Uhl 0ed071ef8d bug48: run release build for PRs only after an approving review
Add a pull_request_review (submitted) trigger and gate the changes/build
jobs on an approving review, so a PR (possibly from an untrusted fork)
never builds with secrets before a maintainer has vetted the exact code.

Secrets are released via a conditional 'privileged-pr-build' environment
referenced only on review runs; on push/workflow_dispatch the environment
name is empty (no gate), keeping existing behavior unchanged. The
environment holds no secrets, so repository-level values are used via
environment>repository precedence and rotation stays in one place.

Review runs check out the PR head SHA with persist-credentials: false so
untrusted build code cannot scrape the token. build-gate now treats a
skipped changes job (non-approving review) as pass rather than failure.

Assisted-By: Claude Opus 4.8
2026-08-27 00:08:00 +02:00
Axel Uhl 2662d15f4b new i18n messages for Sail Insight 2026-08-25 18:07:59 +02:00
Axel Uhl 86e6d8caed added YellowBrick test for RMSR2025 and factored commonalities with RMSR2019 2026-08-24 14:06:14 +02:00
Axel Uhl 2ea18ceddd Merge branch 'eclipse-main' into translation 2026-08-21 13:06:32 +02:00
Axel Uhl e60db6f90e Merge remote-tracking branch 'eclipse/main' into eclipse-main 2026-08-21 13:06:10 +02:00
Axel Uhl f5041c0255 (temporarily?) disabling YellowBrickAdapterTest;
The local / master-SNAPSHOT / master-latest / 19/08/2026 09:58 update on
their yb.tl site may have broken things for us. E-mail to their support
address has been sent, and we need to wait until we receive
clarification.
2026-08-21 13:04:09 +02:00
Axel UhlandCopilot 7304bae8a8 bug6286: fix IndexOutOfBoundsException in FixesAndTails.mergeFixes when switching tail color to a metric
In POLYCHROMATIC mode, Colorline.setPath(...) built zero polylines for a
single-vertex path, so getLength() returned 0 instead of 1. This broke the
FixesAndTails invariant tail.getLength() == lastShownFix - firstShownFix + 1,
after which mergeFixes computed out-of-range tail indices and threw an
IndexOutOfBoundsException while scrubbing the time slider.

Represent a one-vertex path as a single Polyline holding that vertex, matching
the interim single-vertex state insertAt builds up and getLength's case 1
already expects.

Assisted-By: Claude (claude-4.8-opus)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-20 22:33:06 +02:00
Axel Uhl 9169a8acb1 Merge remote-tracking branch 'eclipse/bug6281' into eclipse-main 2026-08-20 17:20:37 +02:00
Axel Uhl 0742f4ae3c fixed parameter naming for SailingService.createPairingListTemplate 2026-08-20 02:07:16 +02:00
Axel Uhl 66a0473882 bug6281: added doc and release notes 2026-08-19 14:39:01 +02:00
Axel Uhl 7b014add17 bug6281: first implementation of new /wind_at_position method on RegattasResource 2026-08-19 14:20:58 +02:00
Axel Uhl 2783921cfe Merge branch 'eclipse-main' into bug6281 2026-08-19 09:59:33 +02:00
Axel Uhl 113eac3cca hint for Claude/Copilot to add "Assisted-By: " to commit messages 2026-08-18 17:46:01 +02:00
Axel Uhl eff5ab78b1 added "zuerichsee" as WindFinder spot collection 2026-08-18 13:02:49 +02:00
Axel Uhl d94640e01b bug6281: removed redundant statement 2026-08-18 10:10:23 +02:00
Axel Uhl 5a883425fb show one decimal place in wind chart tool-tips 2026-08-14 14:39:08 +02:00
Axel Uhl 0ec690baa0 re-enabled NOAA tests 2026-08-13 19:50:42 +02:00
Axel Uhl a09a511884 temporarily (?) disable NOAA tests (again!) as NOAA seems down currently 2026-08-12 18:46:36 +02:00
Axel Uhl 1323791d57 Merge branch 'bug6275' into eclipse-main 2026-08-12 12:25:55 +02:00
Axel Uhl a1c316ff76 bug6275: release notes 2026-08-12 12:25:13 +02:00
Axel Uhl e6f047ed8f bug6275: small adjustment of help text for Authenticate dialog 2026-08-12 12:21:04 +02:00
Axel Uhl 2e860c4252 updated memory configuration for docker-based wind estimation 2026-08-11 19:15:27 +02:00
Axel Uhl d7f115b373 bug6275: also set "default suggestions" for course area suggest box/oracle 2026-08-07 19:22:05 +02:00
Axel Uhl 0e7e23880b Merge branch 'eclipse-main' into bug6275 2026-08-07 17:26:21 +02:00
Axel Uhl d7016e3b2d Merge branch 'translation' into eclipse-main 2026-08-07 13:51:57 +02:00
Axel Uhl 5e1d491556 Merge branch 'bug6241-opus-4.7' into eclipse-main 2026-08-07 13:47:05 +02:00
Axel Uhl 02be3803a5 added null-safety in maneuver calculations in case one mark of a two-mark waypoint does not have a position 2026-08-07 13:05:14 +02:00
Axel Uhl 4894898c55 bug6275: added comments 2026-08-05 15:28:47 +02:00
Axel Uhl 7b3c2bb4bc bug6275: always keep "Clear all" button enabled 2026-08-05 14:08:31 +02:00
Axel Uhl 174e8a0d59 bug6275: removed unused copyCourseAreasFromRemoteServer string message 2026-08-05 13:57:54 +02:00
Axel Uhl 1239533be3 bug6275: Javadoc replacing line comment on SailingServer interface 2026-08-05 13:38:28 +02:00
Axel Uhl 39427b9b5b bug6275: removed unused fields from EventDialog 2026-08-05 13:35:59 +02:00
Axel Uhl b2994fee62 bug6275: removed unused code 2026-08-05 13:34:51 +02:00
Axel Uhl 98dd7ba3f6 Merge branch 'eclipse-main' into bug6275 2026-08-05 13:30:23 +02:00
Axel Uhl 940070880d adjusted the docker image location for windestimation to ghcr.io 2026-08-05 13:17:37 +02:00
Axel Uhl 2db1f4af1d dockerfile for windestimation training now using temurin JDK 2026-08-05 13:07:50 +02:00
Axel Uhl b4cc019587 Merge branch 'eclipse-main' into bug6275 2026-08-05 10:44:38 +02:00
Axel Uhl 1f68dd2867 fixed UTF-8 encoding of German SAP branding messages 2026-08-05 10:38:52 +02:00
Axel Uhl eb068fa670 bug6241: add PolarDataService.raceRemoved to prune per-race loading callbacks
Follow-up to holding PolarDataMiner's race-keyed collections weakly. The weak
key on callbacksWaitingForFixIngestion was defeated by its own values: a parked
callback (the scheduleWindEstimationInstallation closure) strongly captures the
same TrackedRace that keys its entry, so the entry -- and the race with all its
tracks -- would never be collected while parked. That is a brittle contract to
place on callers (they must ensure their Runnable holds no strong reference to
the race), and easy to get wrong.

Instead:
 - callbacksWaitingForFixIngestion goes back to a strong HashMap (weak keys were
   misleading there) and is pruned explicitly.
 - racesWithIngestedFixes stays a weak set (it has no values, so weak keys are
   effective) and is additionally pruned eagerly as belt-and-suspenders.
 - New PolarDataService.raceRemoved(TrackedRace) (delegating to
   PolarDataMiner.raceRemoved) forgets both collections for a race.
 - RacingEventServiceImpl.RaceAdditionListener.raceRemoved now calls
   polarDataService.raceRemoved(trackedRace) (null-guarded, since the service
   arrives via an OSGi ServiceTracker).

The runWhenPolarLoadingFinishedFor Javadoc gains an explicit LEAK CONTRACT
paragraph documenting that callers must arrange for raceRemoved to be called on
race removal, and why the map cannot rely on weak keys. Dropping a removed
instance's parked install callback loses nothing: a re-added race is a new
TrackedRace instance that gets a fresh raceAdded -> scheduleWindEstimationInstallation
-> runWhenPolarLoadingFinishedFor registration. Post-startup manual loads still
wait for the loading-pipeline drain (Gate A on racesWithIngestedFixes ensures the
race's own fixes are ingested before the callback is eligible; the drain then
covers it and any concurrently-loading races). Live TRACKING fixes flow through
the separate preFilteringProcessor chain and never perturb the loading drain.

Also documents the bounded, self-clearing lifecycle of
callbacksWaitingForLoadingOfAllRacesToRestoreToStart.
2026-08-04 17:52:39 +02:00
Axel Uhl d8fc0689cf bug6241: hold PolarDataMiner race-tracking sets weakly to avoid a leak
racesWithIngestedFixes was a HashSet<TrackedRace> that was only ever added to
(in raceFinishedLoading), never removed. Every race ever loaded stayed in the
set for the lifetime of the miner -- i.e. the server process -- pinning the
TrackedRace and, transitively, all of its tracks. On a long-running ARCHIVE
server that loads tens of thousands of races (and reloads across the day), this
is a real, unbounded memory leak; removed races could never be freed.

There is no safe explicit removal point: a runWhenPolarLoadingFinishedFor call
for a race may legitimately arrive long after its fixes were ingested (e.g. a
wind-estimation factory-service swap reschedules the install per race via
scheduleWindEstimationInstallation), so the set cannot be cleared on drain
without risking a stranded, never-firing callback for a still-live race.

Instead hold the set weakly: Collections.newSetFromMap(new WeakHashMap<>()).
Entries evict once a race is no longer strongly reachable elsewhere, at which
point no further runWhenPolarLoadingFinishedFor call for it is possible, so
losing the 'already ingested' bit is harmless. Live races keep their entry and
the ingestion gate behaves exactly as before. All access remains under the
existing 'synchronized (callbacksWaitingForFixIngestion)' monitor, so the
non-thread-safe weak collections are safe.

callbacksWaitingForFixIngestion (also keyed by TrackedRace) is switched to a
WeakHashMap for the same reason: a race removed while still parked here (e.g.
removed while stuck in LOADING before ingestion) would otherwise be pinned
forever. Its entries for live races are still removed explicitly in
raceFinishedLoading.

Javadoc on both fields rewrapped to the project's 120-column comment width.
2026-08-04 17:08:09 +02:00
Axel Uhl a62df20bec bug6241: restore corrected wording in ci-test-environment.xml comment
Follow-up to a960398cd3, which inadvertently captured a half-edited state of
this file (the previous commit staged it while a local edit was in flight).
This restores the intended version: 'information'/'sites'/'Internet Explorer'
wording and the empty-line cleanup in the web-driver system-properties comment.
Comment/whitespace only; no test behavior change.
2026-08-04 16:04:56 +02:00
Axel Uhl a960398cd3 bug6241: clarify that runWhenPolarLoadingFinishedFor waits for a global drain
The Javadoc on PolarDataService.runWhenPolarLoadingFinishedFor (interface),
PolarDataMiner (impl) and the RacingEventServiceImpl.scheduleWindEstimationInstallation
caller all read as if the callback fired once the fixes belonging to the given
race had drained. In reality the loading pipeline (preFilteringProcessorForLoadedFixes)
is shared across all races and has no per-race completion tracking, so the
callback fires only on a global drain: when the fixes of every race ingested so
far have been processed.

The race parameter does not scope the wait; it only gates WHEN the callback may
attach to the shared drain, via two conditions that must both hold: (1) the
race's own fixes have been ingested (so the callback can't fire on a pipeline
that is merely momentarily idle before this race was queued), and (2)
markLoadingOfAllRacesToRestoreStarted() has been signalled (so an idle window
between two startup races' ingestion bursts isn't mistaken for a real drain).

This global-wait behavior is deliberate: we want the polar model to reflect all
loaded data before any maneuver-based wind estimation is installed, and we accept
the resulting startup sequentiality (an early race's estimator install waits
behind the whole loaded-fix backlog). Documentation only; no behavior change.
The method name is kept as-is.
2026-08-04 14:54:20 +02:00
Axel Uhl 413d7b298d bug6241: use @link instead of @code in Javadoc where possible 2026-08-04 13:52:38 +02:00
Axel Uhl ea57eb17ed bug6241: comment formatting 2026-08-04 13:27:05 +02:00
Axel Uhl c777b396b1 bug6241: comment formatting 2026-08-04 13:18:36 +02:00
Axel Uhl cc43993bca bug6241: better naming for constant, appending unit 2026-08-04 11:27:04 +02:00
Axel Uhl 598564f2c4 bug6241: moved field initialization into constructor 2026-08-04 11:05:12 +02:00
Axel Uhl 82b50e9f22 Merge branch 'eclipse-main' into bug6241-opus-4.7 2026-08-04 10:09:28 +02:00
Axel Uhl e2c1339ce0 Merge branch 'eclipse-main' into bug6275 2026-08-03 18:14:37 +02:00
Axel Uhl 5b9abd9698 Merge branch 'eclipse-main' into bug6241-opus-4.7 2026-08-01 20:14:22 +02:00
Axel Uhl 909c4ae386 bug6241: make ManeuverCacheDelegate.canBeUpdated reflect current inner cache
The delegate's canBeUpdated() was returning true unconditionally, hiding the
distinction between the DB-load state (cacheToUse = ManeuversFromDatabase,
inner canBeUpdated=false) and the compute state (cacheToUse =
ManeuversFromSmartFutureCache, inner canBeUpdated=true). That broke the
gate on TrackedRaceImpl.feedAlreadyKnownManeuversToWindEstimation which
uses maneuverCache.canBeUpdated() to decide whether the current JVM's
cache is DB-backed and therefore needs alreadyClassifiedManeuversAvailable
to feed the estimator.

With the pre-fix behavior, the gate never opened even for Path A races:
feed was always skipped, the estimator never received the loaded
maneuvers, PreClassifiedUpdate never ran, and the MBE wind track stayed
empty. Observable as hasWindData=false on all fingerprint-matched races
of "The Final Push 49erFX" (W1..W9, W11, W12) on archive-candidate even
28+ hours after the wind-estimation install callback had fired, while
production (running older code) had hasWindData=true.

Change canBeUpdated() to delegate to cacheToUse.canBeUpdated(). Now it
truthfully reflects which inner cache is in use. All other callers of
cacheToUse.canBeUpdated() within the delegate (ensureFilled, computeAndStore,
triggerUpdate) already read the inner cache directly and are unaffected.
The only external caller was TrackedRaceImpl.feedAlreadyKnownManeuversToWindEstimation
which now correctly opens the gate for Path A and keeps it closed for
Path B.

Javadoc on the method explains the semantics and how it toggles across
resume() and triggerUpdate() calls.
2026-08-01 20:13:21 +02:00
Axel Uhl f3da21c5f4 bug6278: harmonized listeners and pending action counting;
introduced abstract base class for AsyncActionsExecutor and
TimeRangeActionsExecutor
2026-07-31 23:33:54 +02:00
Axel Uhl 9470d78bbc bug6278: added observer pattern for TimeRangeActionsExecutor, too 2026-07-31 18:47:23 +02:00
Axel Uhl 17afe27cf9 bug6278: started with observing the asyncActionsExecutor and displaying pending actions count 2026-07-31 18:21:53 +02:00
Axel Uhl f87358e3f9 Removed temporary GWT.log statement from bug6150 2026-07-31 17:03:34 +02:00
Axel Uhl 80665b59e5 Merge branch 'eclipse-main' into bug6275 2026-07-31 14:37:26 +02:00
Axel Uhl 1fd78841af Merge remote-tracking branch 'github/eclipse-main' into eclipse-main 2026-07-31 14:23:37 +02:00
Axel Uhl 61393e0ca1 Merge branch 'bug6150' into eclipse-main 2026-07-31 14:16:46 +02:00
Axel Uhl 58a9656e99 fixed typo in comment 2026-07-31 10:57:16 +02:00
Axel Uhl e7a87d3b98 see https://github.com/SAP/sailing-analytics/pull/46;
making the link to GitHub Pages part of a branding configuration
2026-07-30 18:00:01 +02:00
Axel Uhl 0bed98cc61 aftermath to 9bf4537fd7: use https://sailing-analytics.eclipse.dev/ for upstream 2026-07-30 15:27:24 +02:00
Axel Uhl 3fd5556425 Merge remote-tracking branch 'eclipse/main' into eclipse-main 2026-07-30 15:20:36 +02:00
Axel Uhl 34c18c9e53 Merge branch 'eclipse-main' into bug6276 2026-07-30 13:54:11 +02:00
Axel Uhl 3a5929cbaa Merge remote-tracking branch 'eclipse/bug6276' into bug6276 2026-07-30 13:53:57 +02:00
Axel Uhl 54fd3a4683 bug6150: comments, release notes 2026-07-30 13:48:11 +02:00
Axel Uhl bf72f5b61d bug6150: use generic adding/dividing for ScalableValues 2026-07-30 13:41:42 +02:00
Axel Uhl 8d5ec12182 Merge branch 'eclipse-main' into bug6150 2026-07-30 10:13:45 +02:00
Axel Uhl 05b27621b3 bug6241: extend self-heal to detect all-UNKNOWN maneuver DB records
The existing isAllEmpty() self-heal in ManeuverCacheDelegate.resume() only
caught the case where every competitor's persisted maneuver list was null
or literally empty. A separate poisoned state slipped through: lists are
non-empty but every stored maneuver is typed as UNKNOWN (or PENALTY_CIRCLE),
which happens when the detector ran while getWind(pos, at) still returned
null everywhere and createManeuverFromManeuverCurveAndWind hit its 'wind ==
null' fall-through in ManeuverDetectorImpl.

Feeding such records to the estimator via alreadyClassifiedManeuversAvailable
produces zero wind fixes because
IncrementalMstHmmWindEstimationForTrackedRace.mapManeuverType maps UNKNOWN
and PENALTY_CIRCLE to null and the whole batch gets filtered out. Observable
as hasWindData=false on the affected races even after the wind estimation
callback has fired. Confirmed on archive-candidate for W10 of "The Final
Push 49erFX" (982 stored maneuvers, all UNKNOWN) and for Abeam Training
2016 Race 1 (453 stored, all UNKNOWN); production shows the same event with
hasWindData=true because it ran with older code paths that populated the
MBE track through a different route.

The fix adds a companion check, hasNoClassifiableManeuver, invoked after
isAllEmpty in resume(). It returns true iff no stored maneuver anywhere in
the loaded map is typed as TACK/JIBE/HEAD_UP/BEAR_AWAY (the four types
mapManeuverType turns into a non-null ManeuverTypeForClassification). When
it fires, resume() logs the reason and falls through to the compute path,
which now correctly sequences its storage after the wind estimator has
settled (see computeAndStore / retypeAndStoreAfterWindEstimationSettled) so
the recompute produces properly-typed maneuvers and overwrites the poison.

isClassifiableType() is a tiny helper listing the four classifiable types;
a comment reminds future maintainers to keep it in sync with mapManeuverType.
2026-07-29 19:38:58 +02:00
Axel Uhl f214114781 Merge remote-tracking branch 'eclipse/bug6150' into bug6150 2026-07-28 21:41:34 +02:00
Axel Uhl 8c56a2dff0 Merge remote-tracking branch 'eclipse/main' into eclipse-main 2026-07-28 21:40:03 +02:00
Axel Uhl c1e972370d bug6275: whitespace and comment changes only 2026-07-28 16:54:45 +02:00
Axel Uhl d66d2838aa Merge branch 'eclipse-main' into bug6275 2026-07-28 16:19:08 +02:00
Axel Uhl 868f211392 Merge branch 'eclipse-main' into bug6150 2026-07-28 15:22:29 +02:00
Axel Uhl 8362204354 new message strings for Sail Insight 2026-07-28 14:40:43 +02:00
Axel Uhl 165bc8f304 bug6241: gate feedAlreadyKnownManeuversToWindEstimation on !canBeUpdated
Restores the compute-path guard on feedAlreadyKnownManeuversToWindEstimation.
Without the gate, setWindEstimation submits per-competitor feed tasks that
call maneuverCache.get(waitForLatest=true) concurrently with the ordinary
detector-driven feed via newManeuverSpotsDetected. Depending on ordering the
feed task either sees the recalculation already in progress (blocks, then
double-feeds via alreadyClassifiedManeuversAvailable, whose per-competitor
PreClassifiedUpdate reconciliation clobbers the graph path's whole-race
track) or completes before the trigger fires (get returns null, feed skips).

The double-feed shows up as flakiness of
IncrementalMstHmmWindEstimationForTrackedRaceTest -- observed locally with a
ratio-of-matching-fixes of 0.658 vs the 0.75 threshold, and also seen on
GitHub Actions run 30262443673.

The rationale for removing the gate previously (that after the bug6241
polar-data hold-back the estimator may be installed after detection ran
with a null WindEstimationInteraction) is now handled explicitly by the
retype-and-store choreography in ManeuverCacheDelegate.computeAndStore:
its runWhenWindEstimationInstalled callback re-drives the detector once
the estimator is in place, and freshly built detectors (whose per-competitor
cache was cleared by updateManeuversAndWindWithNewWindEstimation at install
time) emit spots through the graph path with cross-competitor aggregation
intact -- no per-competitor slice ever needed.

Adds a substantial comment on the method spelling out why the gate must
stay in place, so future edits don't remove it again.
2026-07-27 21:17:53 +02:00
Axel Uhl 139ad492fb Merge branch 'eclipse-main' into bug6241-opus-4.7 2026-07-27 13:42:51 +02:00