Skip to content

chore: promote develop to main - #127

Merged
mikemadeja merged 4 commits into
mainfrom
develop
Sep 29, 2026
Merged

mikemadeja merged 4 commits into
mainfrom
develop

Conversation

@mikemadeja

Copy link
Copy Markdown
Owner

Summary

Both are CI/test-infrastructure changes only - no module code changes.

Test plan

  • Both source PRs passed CI before merging to develop.

🤖 Generated with Claude Code

mikemadeja and others added 4 commits September 27, 2026 14:47
…Shell.psm1

Every feature PR adds its new functions' names to PiHoleShell.psm1's
Export-ModuleMember list, which previously always forced the full
Pester suite to run on a PR build - the one file nearly every PR
touches was exactly the one that defeated the changed-file scoping
added in an earlier PR.

A pure addition to the export list can't break any existing,
already-passing test, so only fall back to the full suite when an
existing export was actually removed. Comparing whole diff lines
doesn't work here since several exports share one line - adding a new
function to an existing category's line shows as that whole line being
removed and re-added, even though nothing already there was dropped.
Instead, this extracts the quoted names from just the removed lines
and just the added lines and compares those sets: a name that
reappears in the added lines was only reformatted, not actually
removed.

Verified against real PR diffs from this session (via git worktree,
without touching the live pipeline): a pure-addition change (adding
Config's new functions to the Config category's existing line)
correctly skips the fallback, and a synthetic removal correctly still
triggers it.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
This test file's Update-PiHoleClient tests were failing intermittently
in CI (3 times in a row across recent builds) with either a 400 on the
Update-PiHoleClient call itself or a cascading "already exists" on the
next test's New-PiHoleClient call. Every It block calls New-PiHoleClient
immediately followed by Update-PiHoleClient with zero delay between
them - the real Pi Zero W test server needs a moment to make a
just-created client queryable/updatable again, the same known hardware
limitation already worked around in tools/Update-ExampleOutput.ps1 for
Lists/Domains/Groups, but this test file never got the same fix.

Verified with a clean 7/7 pass against the real server after adding a
short Start-Sleep between each New-PiHoleClient and the Update-PiHoleClient
call that depends on it.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
ci: don't run the full test suite for pure export additions to PiHoleShell.psm1
test: fix flaky Update-PiHoleClient tests missing a create-settle delay
@mikemadeja
mikemadeja merged commit 9d4a644 into main Sep 29, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant