Skip to content

ci: report unexpected openvpn failures under force-fail - #511

Open
yosuke-wolfssl wants to merge 1 commit into
wolfSSL:masterfrom
yosuke-wolfssl:fix/ci-openvpn
Open

yosuke-wolfssl wants to merge 1 commit into
wolfSSL:masterfrom
yosuke-wolfssl:fix/ci-openvpn

Conversation

@yosuke-wolfssl

Copy link
Copy Markdown
Contributor

Problem

In the openvpn force-fail branch of check-workflow-result.sh, the second comm call received the list of unexpected failures as a string, where comm expects a file. comm failed with comm: 'provider_testdriver ': No such file or directory. The pipeline's exit status came from tr, so set -e did not stop the script, and EXTRA was always empty. As a result, a force-fail cell could never report a test that failed unexpectedly. The "optional" line also printed provider_testdriver every time, whether or not that test failed.

All 6 openvpn force-fail cells in nightly run 36822568609 log the comm: error.

Fix (.github/scripts/check-workflow-result.sh)

  • EXTRA_SORTED is a sorted file of the tests that failed but are not in the expected list.
  • EXTRA is that file minus the optional tests.
  • OPTIONAL_FAILS lists the optional tests from that file, so it names only optional tests that actually failed.

In the nightly, every force-fail cell failed the 4 expected tests plus provider_testdriver, which is optional, so these cells stay green. Any other failure now turns the cell red.

Verification

Ran the script against hand-made openvpn-test.log files:

FAIL: lines Before After
4 expected + provider_testdriver PASS, with comm: error PASS
4 expected PASS PASS
4 expected + misc_testdriver PASS FAIL, names misc_testdriver
4 expected + provider_testdriver + misc_testdriver PASS FAIL, names misc_testdriver
3 of 4 expected FAIL FAIL
none FAIL FAIL
  • The non-force-fail path is unchanged: exit 0 when tests pass, exit 1 when they fail.
  • ci:openvpn:

- check-workflow-result.sh's openvpn branch writes the
  actual-minus-expected failures to extra_sorted.txt and strips the
  optional tests from that file, in place of passing the list to
  comm as a filename.
- The optional-failures line lists the optional tests that
  actually failed.
@yosuke-wolfssl yosuke-wolfssl self-assigned this Oct 8, 2026
Copilot AI balanced review requested due to automatic review settings October 8, 2026 00:34
@yosuke-wolfssl yosuke-wolfssl added the ci:openvpn PR OSP toggle: run openvpn label Oct 8, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The updated comm operations correctly use sorted files and implement the described failure classification.

0 open findings

What changed in this PR

Fixes OpenVPN force-fail reporting so unexpected and optional failures are classified correctly.

Changes:

  • Stores unexpected failures in a sorted temporary file.
  • Excludes optional failures while reporting only optional tests that actually failed.
File Description
.github/​scripts/​check-workflow-result.sh Corrects OpenVPN failure-set comparisons.

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:openvpn PR OSP toggle: run openvpn

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants