Skip to content

Actions Monitor v2026.05.06

Choose a tag to compare

@github-actions github-actions released this 06 May 07:34
Immutable release. Only release title and notes can be modified.

2026-05-01

  • Relicensed under Business Source License 1.1 (BUSL-1.1) — replaced the bespoke WizX20 Free Use License with the SPDX-listed BUSL-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. Updated LICENSE, NOTICE, README "License" section, CONTRIBUTING.md contributor agreement, DEVGUIDE.md winget submission table, and the Scoop manifest's license field.

  • Split src/main.py into pollers.py + widgets.py + notifications.py — extracted the four WorkflowPoller variants (~1,090 lines) into src/pollers.py along with the WorkflowState / StatusEvent dataclasses, 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). Pulled WorkflowRow + label/badge helpers (~470 lines) into src/widgets.py along with the colour palette (COLOUR, STATUS_LABEL, BG_*, FG_*). Moved NotificationManager, _PendingNotification, _NAMED_SOUNDS, _find_linux_default_sound, _ensure_focus_vbs, and the NOTIF singleton into src/notifications.py. main.py shrank from 4,272 → 2,217 lines. PyInstaller-safe: same one-way-import pattern as update.py — no extracted module imports from main. The snooze registry mutations move through new pollers.add_snooze / discard_snooze / clear_snooze helpers 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 out UpdateChecker, UpdateDialog, _detect_install_source, _MANAGED_UPGRADE_CMD, and _cleanup_stale_mei_dirs. main.py shrank from 4867 → 4272 lines; update.py is 687 lines. PyInstaller-safe: a naïve from main import ... in update.py triggered a circular reload at runtime because PyInstaller executes the entry script as both __main__ and main. Fixed by making update.py self-contained — it declares module-level placeholders for the constants + widget class it needs and exposes a configure(**kwargs) injection function. main.py calls update.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 --onedir build.

  • 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 public reset_username_cache() hook, the generic _prune_cache helper + _PR_CACHE_MAX / _REVIEW_CACHE_MAX size caps, and the PR-review aggregation pipeline (_compile_bot_regex, _aggregate_review_status, _cached_review_fetch, _cached_unresolved_fetch, _UNRESOLVED_THREADS_QUERY). main.py shrank from 5340 → 4867 lines; gh_api.py is 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 than global. _reload_pollers now calls gh_api.reset_username_cache() instead of mutating the global directly. _resolve_status stays in main.py because it depends on the ST_* / CONCLUSION_MAP constants. Smoke-tested as source and as a fresh --onedir build.

  • Extract icon rendering into src/icons.py — pulled all PIL drawing code out of main.py into 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_qpixmap Qt bridge, the _status_qpixmaps / _snooze_qpixmaps / _base_icon_cache / _wizx20_mark_cache / _REVIEWER_ICON_B64 caches, and the _init_* helpers. main.py shrank from 6486 → 5340 lines; icons.py is 1202 lines. icons.py owns its own copy of COLOUR_BG, the seven status string literals, and the amber _FG_LINK default — the only state shared is the cache dicts which main imports directly. _generate_app_ico and _generate_check_glyph now take the destination Path as an argument instead of reading module globals; updated call sites in main.py, src/build.bat, src/build.sh, and .github/workflows/_build.yml. The icons import sits below the Pillow dep-check block so missing-Pillow still surfaces the friendly Qt dialog rather than a bare ImportError. Smoke-tested both as source and as a fresh --onedir build — every public icon function still renders and MainWindow constructs cleanly.

  • Switched from PyInstaller --onefile to --onedir + zip distribution — the previous onefile build extracted the full Python runtime (including python312.dll, vcruntime140*, the api-ms-win-crt-* set, and dozens of .pyd modules) 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 with Failed 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 now ActionsMonitor.zip / ActionsMonitor-linux.zip instead of bare binaries, each wrapping a top-level ActionsMonitor/ (or ActionsMonitor-linux/) folder containing the exe plus _internal/. CI build (_build.yml), local build (src/build.bat), Scoop manifest (bucket/actionsmonitor.json — adds extract_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 old UpdateChecker only knows how to fetch and swap a single .exe. Grab the new zip from the release page, unzip, and run ActionsMonitor.exe from inside the folder.

  • UpdateChecker rewritten for the zip + folder swap — _apply_release_update now 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 _internal in. Any failure restores all backups before exiting non-zero. Post-swap the helper deletes the .old backups and the staging dir, then runs the same AV-warmup read across the new exe and every *.dll/*.pyd in _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/.update sidecars, the new <exe>.old + _internal.old backups, .am_update.zip, and .am_update_staging/ so a force-killed helper can't leave the install dir half-swapped.

  • config.template.yaml lookup falls back to _MEIPASS — onedir bundles --add-data files into _internal/, which sys._MEIPASS points at. _APP_DIR / "config.template.yaml" (next to exe) won't exist in onedir installs, so ConfigManager._write_default() would fall through to the bare DEFAULT_CONFIG and ship users a config without the documented examples / per-mode comments. New _bundled(name) helper checks _APP_DIR first (preserves user-overridable copy + scoop's persist model), then _MEIPASS, returning the first match. Used for the template lookup; ready to drop in for any future bundled assets.