• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zhaozg / lua-openssl
93%

Build:
DEFAULT BRANCH: master
Repo Added 23 Jan 2022 09:12AM UTC
Files 56
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH master
branch: master
CHANGE BRANCH
x
Reset
  • master
  • HEAD
  • ci
  • copilot/add-argon2-support
  • copilot/add-cmake-build-check
  • copilot/add-openssl-30-ossl-param-api
  • copilot/complete-roadmap-phase-2-tasks
  • copilot/enhance-kdf-module-development
  • copilot/fix-222b392f-2914-4a4f-aec4-9bf69a58faed
  • copilot/fix-48d6976d-3915-400f-8928-a2201b4100c6
  • copilot/fix-542599-1987363-eaff6162-5890-41a2-8d08-8f43caefbc59
  • copilot/fix-6c79a49a-25ca-4213-9310-86f4d5c8e1eb
  • copilot/fix-ec-module-warnings
  • copilot/fix-encryption-functions
  • copilot/fix-warning-in-three-files
  • copilot/implement-ec-group-point-interfaces
  • copilot/improve-openssl-code-review
  • copilot/migrate-dh-module-to-evp-api
  • copilot/migrate-hmac-to-evp-mac
  • copilot/migrate-low-level-key-access
  • copilot/migrate-to-evp-pkey-keygen
  • copilot/optimize-error-handling
  • copilot/refactor-engine-module
  • copilot/refactor-rsa-module
  • copilot/refactor-src-ots-c
  • copilot/scan-ldoc-comments-coverage
  • copilot/update-valgrind-suppressions
  • feat/PQC
  • feat/ec
  • fix/ED25519
  • fix/mem
  • fix/supp
  • v0.x
  • valgrind

29 Nov 2026 03:35AM UTC coverage: 93.057% (+0.005%) from 93.052%
46221553558

push

travis-ci

zhaozg
test: execute the README examples in CI

Every Lua fence in README.md is now parsed and, when the module is
loadable, executed.  A snippet that stops working is caught by the build
instead of by a user upgrading.

.github/shell/check_readme.lua (new, stdlib only, Lua 5.1-5.5 + LuaJIT):
  * extracts fenced blocks, treats ```lua / ```luajit / lua fences as Lua
  * --syntax for a parse-only pass, --strict to require that every
    non-executed block is declared, --isolated for fresh state per block,
    plus --list/--filter/--verbose/--show-output for triage
  * snippets share one sandbox in document order, because the README
    builds on itself (Example 2 reuses the module loaded by a heading)
  * --filter narrows the report only; blocks above a match still run,
    otherwise filtering reports false failures for dependent snippets
  * error line numbers are absolute file lines, so they can be jumped to

Examples that cannot run unattended must say so in the document itself,
via "<!-- readme-check: skip <reason> -->", a "skip:" fence info string,
or a leading "-- readme-check: skip" comment.  Keeping the marker in the
README (instead of a list in the script) is what stops the skip set from
silently growing: --strict fails on undeclared skips.

Notable when writing this:
  * a `while true do end` example hung the checker: LuaJIT compiles the
    loop into a trace and the count hook never fires, so the execution
    budget above never triggered.  The guard now calls jit.off() first;
    correctness beats speed in a checker.
  * "```lua skip: reason" glued the colon onto the verb and silently did
    not skip; parse_directive now tolerates both spellings.

README fix: `if openssl.version_ge(3, 0) then ... end` is a syntax error
(`...` cannot stand in statement position) and had been there unnoticed.
Rewritten with explicit bodies.

Wiring:
  * Makefile: check-readme (needs a built module) and check-readme-syntax
    (no module needed)
  * check.yml: a Read... (continued)

10869 of 11680 relevant lines covered (93.06%)

2037.84 hits per line

Relevant lines Covered
Build:
Build:
11680 RELEVANT LINES 10869 COVERED LINES
2037.84 HITS PER LINE
Source Files on master
  • Tree
  • List 56
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
46221553558 master test: execute the README examples in CI Every Lua fence in README.md is now parsed and, when the module is loadable, executed. A snippet that stops working is caught by the build instead of by a user upgrading. .github/shell/check_readme.lua (n... push 29 Nov 2026 03:45AM UTC zhaozg travis-ci
93.06
41319598079 master fixup: clean unused variable push 01 Nov 2026 03:10PM UTC zhaozg travis-ci
93.05
41308149478 master Merge branch 'v0.x' push 01 Nov 2026 12:53PM UTC zhaozg travis-ci
93.05
41190375249 master fix(bn): pass NULL callback to BN_check_prime BN_GENCB_new() does not install a callback; passing it to BN_check_prime() makes libcrypto jump through an uninitialised function pointer. Valgrind caught this as SIGSEGV in Bisprime. push 31 Oct 2026 09:56AM UTC zhaozg travis-ci
93.11
41190367146 master fix(pkey): free SM2 pkey context through DigestSignInit EVP_MD_CTX_set_pkey_ctx keeps the caller-owned EVP_PKEY_CTX, so the manually created SM2 context leaked on every sign/verify. Let EVP_DigestSignInit/VerifyInit create and own it, then set th... push 31 Oct 2026 09:53AM UTC zhaozg travis-ci
93.11
41189458485 master fix(pkey): rename internal lookup helpers to avoid OpenSSL clash OpenSSL 3.0.19+ has internal evp_pkey_name2type/evp_pkey_type2name symbols. Defining the same names in openssl.so shadows them at runtime and clashes at static link time. Prefix our... push 31 Oct 2026 09:40AM UTC zhaozg travis-ci
93.11
41188885885 master fix(pkey): always define name/type lookup helpers evp_pkey_name2type() and evp_pkey_type2name() are referenced by provider.c and ssl_pqc.c unconditionally, but were only compiled for OpenSSL < 3.0.19. On newer OpenSSL the module failed to load wi... push 31 Oct 2026 09:35AM UTC zhaozg travis-ci
90.24
41188500388 master Merge branch 'v0.x' push 31 Oct 2026 09:26AM UTC zhaozg travis-ci
93.11
35504433631 master Merge branch 'v0.x' push 20 Sep 2026 10:16AM UTC zhaozg travis-ci
92.7
34932311455 master Merge branch 'v0.x' push 15 Sep 2026 05:25AM UTC zhaozg travis-ci
92.72
See All Builds (630)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc