Skip to content

frontend: pick the What's New URL in the host CMake file (#883) - #1975

Merged
zackees merged 2 commits into
masterfrom
infra/883-whatsnew-url
Oct 23, 2026
Merged

zackees merged 2 commits into
masterfrom
infra/883-whatsnew-url

Conversation

@zackees

@zackees zackees commented Oct 23, 2026

Copy link
Copy Markdown
Member

Refs #883 (step 1 of 5: 2 of the 15 remaining conditionals).

WhatsNewInfoThread.cpp.hpp chose WHATSNEW_URL with __APPLE__/_WIN32 branches. Now the macOS and Windows obs_frontend_platform_whatsnew() macros (frontend/cmake/os-<os>.cmake) add WHATSNEW_URL=MAC_WHATSNEW_URL / WIN_WHATSNEW_URL as a compile definition. The shared file keeps the three *_WHATSNEW_URL defines (still checked by ci/test_no_upstream_runtime_feeds.py) and an #ifndef WHATSNEW_URL default to the Linux one. Each platform gets the URL it got before; today all three are the same obs-rust feed. The macro runs only with ENABLE_WHATSNEW, the only build that compiles this file.

  • RED bf351eb: test_whatsnew_url_is_chosen_by_the_host_file in ci/test_frontend_cmake_facade.py. Locally: FAILED (failures=1).
  • GREEN c17245b: facade test OK, test_no_upstream_runtime_feeds OK, ratchet baseline lowered (WhatsNewInfoThread 2 → gone; also a stale CrashHandler entry already at 0 on master). ./lint: ok.

Tiers 1-4 don't apply (build selection only). Not user-visible.

RED: WhatsNewInfoThread.cpp.hpp still selects the URL with __APPLE__ and
_WIN32 branches.
macOS and Windows set WHATSNEW_URL to MAC_/WIN_WHATSNEW_URL in their
obs_frontend_platform_whatsnew(); WhatsNewInfoThread.cpp.hpp keeps the
three URLs and defaults to the Linux one, with no host branch. The ratchet
baseline drops it (and a stale CrashHandler entry already at 0).
@zackees
zackees added this pull request to the merge queue Oct 23, 2026
Merged via the queue into master with commit 1a06b34 Oct 23, 2026
30 checks passed
@zackees
zackees deleted the infra/883-whatsnew-url branch October 26, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant