Skip to content

Refactor - #56

Merged
mah0x211 merged 5 commits into
masterfrom
refactor
Jun 15, 2026
Merged

Refactor#56
mah0x211 merged 5 commits into
masterfrom
refactor

Conversation

@mah0x211

Copy link
Copy Markdown
Owner

This pull request updates the CI workflow and the build configuration for the project, focusing on improving test reliability, coverage reporting, and build flexibility. It also includes minor dependency and code organization updates for better maintainability and compatibility.

CI/CD and Coverage Improvements:

  • Updated .github/workflows/test.yml to use a containerized environment (ghcr.io/mah0x211/lua-ci:latest) for both linting and testing jobs, removed setup steps for Lua/Luarocks in favor of container-provided tools, and restricted workflow triggers to non-markdown, non-license file changes. The test matrix now uses new version tags, and coverage upload is improved with OIDC and multiple file support. [1] [2]
  • Added a new covgen.sh script to generate lcov coverage reports, filtering out include files, and integrated it into the workflow.

Build System and Dependency Updates:

  • Updated rockspecs/act-scm-1.rockspec to use rockspec_format = "3.0", increased lauxhlib minimum version, added luarocks-build-hooks as a build dependency, and switched the build type to hooks with support for coverage flags and extra variables. [1] [2] [3]
  • Refactored C module definitions in the rockspec to specify include directories and sources explicitly, improving compatibility and maintainability.

Code Organization and Minor Fixes:

  • Reorganized include statements in src/bitset.c, src/getcpus.c, src/ignsigpipe.c, and src/stack.c for clarity and consistency, separating project, dependency, Lua, and system headers. [1] [2] [3] [4]
  • Removed an unused variable in src/stack.c for code cleanliness.

mah0x211 added 4 commits June 12, 2026 16:01
The current waitpid release made sec a positional argument and stopped
turning ECHILD into an error, so act.waitpid passed 'nohang' into the
sec slot and asserted on a now-suppressed ECHILD error. Pass nil for
sec, drop the ECHILD assertion, and refresh the dependency floors so
luarocks resolves to the releases that match these expectations.
@codecov

codecov Bot commented Jun 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.42%. Comparing base (e5779db) to head (831e55a).

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #56      +/-   ##
==========================================
- Coverage   94.33%   93.42%   -0.92%     
==========================================
  Files          13       18       +5     
  Lines        1042     1278     +236     
==========================================
+ Hits          983     1194     +211     
- Misses         59       84      +25     
Flag Coverage Δ
unittests 93.42% <100.00%> (-0.92%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Cover the act.bitset and act.stack public APIs so future changes to
the resizable bitset implementation in bitset.h and the lua_State-
backed stack are guarded by regression tests.
@mah0x211
mah0x211 merged commit faabc7d into master Jun 15, 2026
6 of 7 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