Skip to content

ci: run the verification block on push and PR - #5

Merged
T-Crypt merged 2 commits into
mainfrom
ci/verify-workflow
Oct 5, 2026
Merged

T-Crypt merged 2 commits into
mainfrom
ci/verify-workflow

Conversation

@T-Crypt

@T-Crypt T-Crypt commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

Runs the AGENTS.md verification block on push to main and on pull requests. No build step, no dependencies; the workflow calls the commands the repo already documents.

Two jobs:

  • linux: py_compile, unittest discover, smoke/ui-primitives.mjs, smoke/shell.mjs.
  • windows: the collector suite. This is where the Win32 ctypes backend executes. On Linux the two test_hostinfo.py tests are platform gates and never run, so that path was read and not executed anywhere.

The first run failed, and it found two real bugs in collector/hostinfo.py.

  1. wintypes.LARGE_INTEGER has no .quad. On Windows it resolves to c_longlong, whose accessor is .value, so _win_cpu_times() raised AttributeError: 'c_longlong' object has no attribute 'quad'. Fixed to .value.
  2. EnumProcesses is exported by psapi, not kernel32. _kernel32.EnumProcesses raised AttributeError: function 'EnumProcesses' not found on the runner, so processes() returned nothing. Fixed to _psapi.EnumProcesses.

Both fixes sit on this branch so the windows job verifies them.

Local check before pushing: py_compile clean, 86 tests with 3 platform skips, both smoke scripts ALL PASS. Three repeat runs came back clean; the run right after the edit showed one failure, so expect an occasional flake from the tests that make real HTTP calls against the stub servers.

Linux job: py_compile, unittest discover, both Node smoke scripts. Windows job
runs the collector suite, which is where the Win32 ctypes backend executes; on
Linux those two test_hostinfo.py tests are platform gates and never run.
wintypes.LARGE_INTEGER has no .quad; the ctypes accessor is .value.
EnumProcesses is exported by psapi, not kernel32, so the lookup raised
AttributeError on the runner and processes() never ran.

Both Windows tests now execute on the CI windows job.
@T-Crypt
T-Crypt merged commit 927a7aa into main Oct 5, 2026
0 of 2 checks passed
@T-Crypt
T-Crypt deleted the ci/verify-workflow branch October 5, 2026 20:07
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