319 Commits
Author SHA1 Message Date
Axel Uhl 40cc60ca8f Fix Android SDK setup after runner image dropped legacy 'tools' package
The GitHub-hosted runner image rolled out on ~2026-09-14 ships
cmdline-tools 12.0, whose sdkmanager no longer resolves the obsolete
'tools' (legacy Android SDK Tools) package. The android-actions/setup-android
step inherits the action default packages 'tools platform-tools' and thus
failed with "Failed to find package 'tools'" (exit code 1) before the build
script even ran. The same request in buildAndUpdateProduct.sh would fail
the same way once reached.

Override the action's packages input to 'platform-tools' and drop the
trailing 'tools' argument from the sdkmanager call in
buildAndUpdateProduct.sh. build-tools, platform-tools and the platform
are still installed by the script. The cmdline-tools-version pin is left
unchanged.

Assisted-By: Claude (claude-4.8-opus)
2026-09-15 00:15:54 +02:00
Axel Uhl 6fea91d86e bug6299: un-pin Firefox for Selenium tests, default to latest
Now that the Selenium suite is on 4.13.0 (#6298) and speaks the W3C WebDriver
protocol, the Firefox 140 pin is no longer needed: the pin was a symptom of
Selenium 3's JSON Wire Protocol drifting from modern geckodriver/Firefox.
Default the firefox_version workflow_dispatch input to "latest" (both the input
default and the empty-input fallback) so CI tracks the current Firefox; the
setup-firefox action pairs a matching geckodriver automatically. The input is
kept so a specific version can still be pinned at dispatch time if a future
Firefox release regresses.

Assisted-By: Claude (claude-4.8-opus)
2026-09-07 14:12:36 +02:00
Axel Uhl 9853617efd Restore explicit application/x-tar content type for release tarball asset
Folding the tar.gz upload into softprops/action-gh-release's files: input
(commit f6143d18) broke production installs: that action derives the asset
content type via the mime-types library, which maps .tar.gz to
application/gzip. Production installers (refreshInstance.sh,
github-download-release-assets.sh) select the tarball with
select(.content_type=="application/x-tar"), so nothing matched and installs
could not find the release.

Revert to the two explicit actions/upload-release-asset@v1 steps that set
asset_content_type: application/x-tar and text/plain, and add a comment
warning against folding them back in.

Assisted-By: Claude (claude-4.8-opus)
2026-09-02 17:49:28 +02:00
Axel Uhl a42c6c1587 Raise telemetry metric_frequency to 30s to fix broken CPU/memory charts
The workflow-telemetry action renders CPU/memory charts as mermaid
xychart blocks with every sample inlined as text (see src/graphing.ts);
there is no downsampling. GitHub renders mermaid with a fixed
maxTextSize of 50000 chars that the diagram author cannot raise, so on
our ~3h+ builds the default 5s sampling (~2300+ samples) blew past the
limit and the charts failed to render ("Maximum text size in diagram
exceeded").

Sampling every 30s yields ~390 points over a 3h15m run (~10k chars of
mermaid source), well under the limit with headroom for longer runs,
while keeping enough resolution to read CPU/memory trends.

Assisted-By: Claude (claude-4.8-opus)
2026-09-02 15:14:40 +02:00
Axel Uhl 53df2ecc1f try to get CPU/memory metrics build output working again by lowering time resolution 2026-09-02 15:13:04 +02:00
Axel Uhl d3d9f100f0 removed branch bug6269 from the triggers for build-sailing-base-p2.yml workflow 2026-09-01 21:42:17 +02:00
Axel Uhl 72e5efbf16 cap the telemetry capturing to keep charts displayable 2026-09-01 18:38:51 +02:00
Axel Uhl f6143d189c release: upload release assets via action-gh-release files:
Fold the tar.gz and release-notes.txt uploads into the single
softprops/action-gh-release step using its files: input, and drop the
two actions/upload-release-asset@v1 steps. Those steps still emitted the
deprecated ::set-output workflow command; action-gh-release infers each
asset's content type from its file extension.

Assisted-By: Claude (claude-4.8-opus)
2026-09-01 17:53:46 +02:00
Axel Uhl 4f9a4d9d50 upgraded softprops/action-gh-release to newer release for Node 24 2026-09-01 17:20:05 +02:00
Axel Uhl e024fca545 Skip paths-filter on workflow_dispatch to avoid missing-'before' warning
On workflow_dispatch there is no 'before' field in the event payload, so
dorny/paths-filter cannot compute a meaningful diff and warns, falling back
to a last-commit-only diff. A manual dispatch is an explicit request to build,
so skip the filter step on that event and force the 'changes' job's should_run
output to true. push/PR events are unchanged and still gated by the filter's
'code' output. This also keeps the changes job in agreement with the build
job's if-condition, which already forces the build on workflow_dispatch.

Assisted-By: Claude Opus 4.8
2026-09-01 11:10:05 +02:00
Axel Uhl a4450f1861 Replace catchpoint workflow-telemetry-action with Node 24 fork
The upstream catchpoint/workflow-telemetry-action v2.0.0 (its latest
release) still declares the node20 runtime in action.yml, so GitHub
force-runs it on Node 24 and emits a deprecation warning. There is no
upstream release that resolves this.

Switch to ycfreeman/workflow-telemetry-action@v3.0.2, a maintained fork
upgraded to node24 whose inputs are a superset of upstream (comment_on_pr
is unchanged). Pinned to the specific commit SHA to avoid mutable-tag
risk, with the version noted in a comment.

Assisted-By: Claude (claude-4.8-opus)
2026-09-01 10:55:17 +02:00
Axel Uhl 225d64af02 Merge remote-tracking branch 'eclipse/main' into eclipse-main 2026-09-01 10:43:49 +02:00
Axel Uhl 43caa7a8cc updated setup-firefox and setup-android actions in release.yml;
they are now compliant with Node 24, the basis for Github Actions
runners. workflow-telemetry-action still requests Node 20. We'll see if
there is still a maintainer around who may be willing to upgrade this to
Node 24.
2026-09-01 10:42:38 +02:00
Axel Uhl 20b8572a1e Revert "trying without a secret additional access token for fetching the repo history when merging main into docker-25"
This reverts commit a8ab29f809.
2026-08-31 23:28:51 +02:00
Axel Uhl 294b7e8f8d using newer checkout action 2026-08-30 23:49:22 +02:00
Axel Uhl a8ab29f809 trying without a secret additional access token for fetching the repo history when merging main into docker-25 2026-08-30 23:45:38 +02:00
Axel Uhl 08b7205d6d bug53: don't post build-gate on a cancelled trusted build
A cancelled build is indeterminate — the tests might have passed had the
run not been interrupted — so posting build-gate=failure would be
misleading. Restrict the failure post to build.result==failure (a real
tested failure); a cancelled trusted build now posts NOTHING, leaving the
build-gate context absent so the PR stays blocked at "Expected" with no
red X. Re-run to obtain a real verdict.

Assisted-By: Claude Opus 4.8
2026-08-29 00:24:27 +02:00
Axel Uhl 137ffc0df6 bug53: make build-gate a posted commit status, not a skippable job
The previous build-gate was a JOB, and GitHub Actions auto-creates a
check-run for every job whose conclusion is filled from the job's fate —
including "skipped" when the job's if: is false. Branch protection /
rulesets treat a skipped required check as SATISFIED (mergeable), so a
compile-only fork PR reported build-gate=skipped=passed and became
mergeable without tests (PRs #53/#54; #53 merged this way). No job can
represent "absent": a skipped job still materializes a skipped check-run.
The earlier attempt to make it exit 1 (red) worked but was ugly and, on a
failed build, still mis-reported skipped in practice.

A commit status (legacy Statuses API) is created only if we explicitly
POST it, and a skipped STEP posts nothing (steps are not check-runs). The
ruleset matches the required context "build-gate" by NAME across both the
Checks and Statuses APIs, so a posted commit status with context=build-gate
satisfies it exactly as the old check-run did — the ruleset needs no change.

Change: remove the build-gate job; add job post-build-gate-status (named so
its own auto check-run carries a context the ruleset ignores) whose single
step POSTs a commit status context=build-gate:
  - state=success when the change was trivial (build skipped, no relevant
    changes) OR a full build ran WITH tests and succeeded;
  - state=failure when a full build ran WITH tests and failed/cancelled
    (loud red X for a committer's own broken build);
  - NOTHING for any compile-only run (fork PR, *-reviewed-for-compile,
    workflow_dispatch skip_tests), succeeded or failed — so the build-gate
    context stays absent and the PR is blocked at "Expected" with no red X.
The status is posted against the PR HEAD sha on pull_request events
(github.sha there is the ephemeral refs/pull/N/merge commit the ruleset
does not evaluate) and github.sha otherwise. Merge qualification for fork
code still comes only from a maintainer pushing a *-reviewed-for-build tag
(full trusted build with tests), which posts the success status.
compile-gate (advisory) is unchanged.

Assisted-By: Claude Opus 4.8
2026-08-29 00:20:25 +02:00
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 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 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 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 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 455a25ce4b removed bug6269 from the triggering branches for build-aws-sdk-p2 workflow 2026-07-14 14:25:56 +02:00
Axel Uhl 0708308c2d Merge branch 'eclipse-main' into bug6269 2026-07-14 04:03:26 +02:00
Axel Uhl a20a9622b3 bug6269: don't append "Z" to the time stamp of the sailing-* versioned p2 folder 2026-07-14 04:02:58 +02:00
Axel Uhl 700925143d Merge branch 'eclipse-main' into bug6269 2026-07-14 03:59:36 +02:00
Axel Uhl c191323658 bug6269: fixed full folder name for targetplatform.base 2026-07-14 03:59:01 +02:00
Axel Uhl 8fd0a18f06 Merge branch 'eclipse-main' into bug6269 2026-07-14 03:56:13 +02:00
Axel Uhl fd260af1c6 bug6269: do the directory change to com.sap.sailing.targetplatform.base "manually" 2026-07-14 03:55:19 +02:00
Axel Uhl fe0ee7e406 bug6269: constrain path filter for build-sailing-base-p2.yml properly 2026-07-14 03:52:38 +02:00
Axel Uhl 85df82371d Merge branch 'eclipse-main' into bug6269 2026-07-14 03:40:02 +02:00
Axel Uhl a634231c2b bug6269: install GWT fork, particularly the Maven plugin 2026-07-14 03:39:17 +02:00
Axel Uhl a293c90f3c Merge branch 'eclipse-main' into bug6269 2026-07-14 03:30:29 +02:00
Axel Uhl 448f4b3d8f bug6269: adding Github Actions workflow for building and upload sailing base p2 repo 2026-07-14 03:28:44 +02:00
Axel Uhl 9d8ba8d9c7 Merge branch 'eclipse-main' into bug6269 2026-07-14 03:12:45 +02:00
Axel Uhl 36e8876161 bug6269: fixed typo in script name 2026-07-14 03:03:51 +02:00
Axel Uhl 998a9fed7f bug6269: fixed inserting VERSION into environment 2026-07-14 02:59:53 +02:00
Axel Uhl 8aabe40e1c bug6269: use recovered script producing Jetty p2 from Maven Central contents 2026-07-14 02:58:11 +02:00
Axel Uhl 29cfda90e4 Merge branch 'eclipse-main' into bug6269 2026-07-14 02:08:02 +02:00
Axel Uhl ce4266a493 bug6269: p2 applications now require Java 21 for Eclipse 4.38 platform 2026-07-14 02:02:47 +02:00
Axel Uhl e01760860c bug6269: fixed regexp for extracting latest Jetty version string 2026-07-14 02:01:40 +02:00
Axel Uhl f2b33d86e7 bug6269: quoting Eclipse platform download URL due to the & in it 2026-07-14 01:57:32 +02:00