Repository navigation
Actions Monitor v2026.05.06
2026-05-01
-
Relicensed under Business Source License 1.1 (BUSL-1.1) — replaced the bespoke
WizX20 Free Use Licensewith the SPDX-listedBUSL-1.1(Licensor: WizX20; Change Date: 2030-05-01; Change License: Apache 2.0). The Additional Use Grant preserves the original intent — free for personal, internal, organisational, academic, and free-redistribution use — while explicitly forbidding sale, paid sublicensing, rental, and paid hosted/embedded distribution. NOTICE retention requirement is restated inside the Additional Use Grant. After the Change Date, each release auto-converts to Apache 2.0. UpdatedLICENSE,NOTICE, README "License" section,CONTRIBUTING.mdcontributor agreement,DEVGUIDE.mdwinget submission table, and the Scoop manifest'slicensefield. -
Split
src/main.pyintopollers.py+widgets.py+notifications.py— extracted the fourWorkflowPollervariants (~1,090 lines) intosrc/pollers.pyalong with theWorkflowState/StatusEventdataclasses, status constants, snooze registry, and the cross-poller helpers (_resolve_status,_deep_merge,parse_branch_prefix,extract_jira_key,parse_duration,_format_age,_worst_status,_combined_status). PulledWorkflowRow+ label/badge helpers (~470 lines) intosrc/widgets.pyalong with the colour palette (COLOUR,STATUS_LABEL,BG_*,FG_*). MovedNotificationManager,_PendingNotification,_NAMED_SOUNDS,_find_linux_default_sound,_ensure_focus_vbs, and theNOTIFsingleton intosrc/notifications.py.main.pyshrank from 4,272 → 2,217 lines. PyInstaller-safe: same one-way-import pattern asupdate.py— no extracted module imports frommain. The snooze registry mutations move through newpollers.add_snooze/discard_snooze/clear_snoozehelpers so MainWindow no longer touches the lock directly.notifications.configure(app_name=..., app_ico=..., focus_vbs=..., focus_signal=...)runs once at module init for the per-process paths. Smoke-tested in source mode. -
Extract update flow into
src/update.py— pulled outUpdateChecker,UpdateDialog,_detect_install_source,_MANAGED_UPGRADE_CMD, and_cleanup_stale_mei_dirs.main.pyshrank from 4867 → 4272 lines;update.pyis 687 lines. PyInstaller-safe: a naïvefrom main import ...inupdate.pytriggered a circular reload at runtime because PyInstaller executes the entry script as both__main__andmain. Fixed by makingupdate.pyself-contained — it declares module-level placeholders for the constants + widget class it needs and exposes aconfigure(**kwargs)injection function.main.pycallsupdate.configure(app_name=APP_NAME, build_commit=BUILD_COMMIT, is_windows=IS_WINDOWS, fg_text=FG_TEXT, ..., clickable_label_cls=_ClickableLabel)once at module init, after all those names are defined. Smoke-tested in source mode and as a fresh--onedirbuild. -
Extract GitHub API plumbing into
src/gh_api.py— pulled out the HTTP layer, rate-limit gate, ETag conditional-request cache, GraphQL helper, retry wrapper, friendly-error mapper, URL parsers/builders (parse_workflow_url,_build_workflow_url,_build_branch_url,parse_actor_url), endpoint fetchers (fetch_latest_run,fetch_pr_runs,fetch_actor_runs,fetch_github_username), the username cache and its publicreset_username_cache()hook, the generic_prune_cachehelper +_PR_CACHE_MAX/_REVIEW_CACHE_MAXsize caps, and the PR-review aggregation pipeline (_compile_bot_regex,_aggregate_review_status,_cached_review_fetch,_cached_unresolved_fetch,_UNRESOLVED_THREADS_QUERY).main.pyshrank from 5340 → 4867 lines;gh_api.pyis 526 lines. Self-contained — no main imports — so all module-level state (etag cache, rate-limit cooldown, username cache) lives in one place and is shared across pollers via normal module imports rather thanglobal._reload_pollersnow callsgh_api.reset_username_cache()instead of mutating the global directly._resolve_statusstays inmain.pybecause it depends on theST_*/CONCLUSION_MAPconstants. Smoke-tested as source and as a fresh--onedirbuild. -
Extract icon rendering into
src/icons.py— pulled all PIL drawing code out ofmain.pyinto a new self-contained module: Lucide-inspired status glyphs (_draw_lucide_*), header icons (refresh / update / help), reviewer (user / bot) glyphs, snooze bell, embedded WizX20 mark + decoder, app/tray base icon composition, the_pil_to_qpixmapQt bridge, the_status_qpixmaps/_snooze_qpixmaps/_base_icon_cache/_wizx20_mark_cache/_REVIEWER_ICON_B64caches, and the_init_*helpers.main.pyshrank from 6486 → 5340 lines;icons.pyis 1202 lines. icons.py owns its own copy ofCOLOUR_BG, the seven status string literals, and the amber_FG_LINKdefault — the only state shared is the cache dicts whichmainimports directly._generate_app_icoand_generate_check_glyphnow take the destinationPathas an argument instead of reading module globals; updated call sites inmain.py,src/build.bat,src/build.sh, and.github/workflows/_build.yml. The icons import sits below thePillowdep-check block so missing-Pillow still surfaces the friendly Qt dialog rather than a bareImportError. Smoke-tested both as source and as a fresh--onedirbuild — every public icon function still renders andMainWindowconstructs cleanly. -
Switched from PyInstaller
--onefileto--onedir+ zip distribution — the previous onefile build extracted the full Python runtime (includingpython312.dll,vcruntime140*, theapi-ms-win-crt-*set, and dozens of.pydmodules) to%TEMP%\_MEI<pid>\on every launch. After a self-update Defender was racing the bootstrap and quarantining individual DLLs mid-extraction, leaving the new exe to die withFailed to load Python DLL '...\python312.dll'. LoadLibrary: The specified module could not be found.(the classic transitively-missing-dep form of that error). Onedir leaves the runtime files on disk in_internal/next to the exe permanently, so AV scans them once at install/update time and never has a chance to race the loader. Release assets are nowActionsMonitor.zip/ActionsMonitor-linux.zipinstead of bare binaries, each wrapping a top-levelActionsMonitor/(orActionsMonitor-linux/) folder containing the exe plus_internal/. CI build (_build.yml), local build (src/build.bat), Scoop manifest (bucket/actionsmonitor.json— addsextract_dir: "ActionsMonitor"), and release publishing (_release.yml) all flow through the new layout. Existing installs need a one-time manual reinstall — auto-update from a pre-2026-05-01 binary won't carry over because the oldUpdateCheckeronly knows how to fetch and swap a single.exe. Grab the new zip from the release page, unzip, and runActionsMonitor.exefrom inside the folder. -
UpdateCheckerrewritten for the zip + folder swap —_apply_release_updatenow downloads the release zip to<install_dir>/.am_update.zip, verifies size + sha256, extracts to<install_dir>/.am_update_staging/, locates the wrapper folder by searching for the exe (robust to layout tweaks), and stores the wrapper path on_update_path.restart_app's helper batch/shell now does a four-step swap with rollback at every stage: rename_internal→_internal.old, rename<exe>→<exe>.old, move new exe in, move new_internalin. Any failure restores all backups before exiting non-zero. Post-swap the helper deletes the.oldbackups and the staging dir, then runs the same AV-warmup read across the new exe and every*.dll/*.pydin_internal/before launching — onefile only needed to warm the wrapper exe; onedir has the full runtime sitting on disk that AV needs to clear first. Startup leftover-cleanup (main()) extended to wipe legacy.old/.updatesidecars, the new<exe>.old+_internal.oldbackups,.am_update.zip, and.am_update_staging/so a force-killed helper can't leave the install dir half-swapped. -
config.template.yamllookup falls back to_MEIPASS— onedir bundles--add-datafiles into_internal/, whichsys._MEIPASSpoints at._APP_DIR / "config.template.yaml"(next to exe) won't exist in onedir installs, soConfigManager._write_default()would fall through to the bareDEFAULT_CONFIGand ship users a config without the documented examples / per-mode comments. New_bundled(name)helper checks_APP_DIRfirst (preserves user-overridable copy + scoop'spersistmodel), then_MEIPASS, returning the first match. Used for the template lookup; ready to drop in for any future bundled assets.