Skip to content

Conversation

troglobit
Copy link
Contributor

@troglobit troglobit commented Sep 2, 2025

Description

Major refactor of two tests disabled in v25.08:

Also included is an update to the test report (PDF)

Checklist

Tick relevant boxes, this PR is-a or has-a:

  • Bugfix
    • Regression tests
    • ChangeLog updates (for next release)
  • Feature
    • YANG model change => revision updated?
    • Regression tests added?
    • ChangeLog updates (for next release)
    • Documentation added?
  • Test changes
    • Checked in changed Readme.adoc (make test-spec)
    • Added new test to group Readme.adoc and yaml file
  • Code style update (formatting, renaming)
  • Refactoring (please detail in commit messages)
  • Build related changes
  • Documentation content changes
    • ChangeLog updated (for major changes)
  • Other (please describe):

@troglobit troglobit added the ci:main Build default defconfig, not minimal label Sep 2, 2025
@troglobit troglobit force-pushed the test-fixes branch 3 times, most recently from 9325132 to 6cfb512 Compare September 7, 2025 12:38
@troglobit troglobit mentioned this pull request Sep 7, 2025
@troglobit troglobit force-pushed the test-fixes branch 4 times, most recently from 6efb18d to be7fba5 Compare September 7, 2025 21:00
@troglobit troglobit marked this pull request as ready for review September 7, 2025 21:01
@Copilot Copilot AI review requested due to automatic review settings September 7, 2025 21:01
Copilot

This comment was marked as off-topic.

Copy link
Contributor

@mattiaswal mattiaswal left a comment

Choose a reason for hiding this comment

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

Nice cleanup! Gave a suggestion for even more cleanup 🧹

Copy link
Contributor

@wkz wkz left a comment

Choose a reason for hiding this comment

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

I mainly took a look at the tests, did not quite have the energy to review the report stuff but I trust it is awesome as always 😄

Also, add some documentation to lower barrier of entry/use.

Signed-off-by: Joachim Wiberg <[email protected]>
Refactor test to use httpd container instead and return ENV with a CGI.

Fixes #1131

Signed-off-by: Joachim Wiberg <[email protected]>
Major refactor to redesign how listeners and traffic is started in parallel.

Fixes #1130

Signed-off-by: Joachim Wiberg <[email protected]>
NETCONF backedn already silenced.

Signed-off-by: Joachim Wiberg <[email protected]>
It should be possible to create test reports manually, so logically
the GitHub workflow should call a make rule in test.mk

Untested: branding, or any case where Infix is used as a BR2_EXTERNAL

Signed-off-by: Joachim Wiberg <[email protected]>
This commit greatly simplifies AsciiDoc image references in generated
Readme.adoc files.  The two focused use-cases that remain after this
change are working references in:

 - Generated output/images/test-report.pdf
 - Viewing test's Readme.adoc from GitHub

Previously we aimed to have working images also when the test's Readme
was included in the parent directory's Readme.adoc.  This, however, is
not supported as of this commit.  It seems unlikely also to ever be a
supported feature of AsciiDoc on GitHub, for details, see the following
issue: <github/markup#1095>

Signed-off-by: Joachim Wiberg <[email protected]>
Copy link
Contributor

@wkz wkz left a comment

Choose a reason for hiding this comment

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

Great work! 💪

Import new 9pm version for improved test report generation.  With this
in place we can take the opportunity to also refactor and simplify the
test spec. generation.

Fixes #1129

Signed-off-by: Joachim Wiberg <[email protected]>
To reduce the duplication of effort between 9pm and the Infamy framework
this change consolidates the move from local 'infamy: title:' extension
to 9pm 'name:'.

For the parameterized tunnel tests we leverage the 9pm dynamic test-spec
variable, which looks for a correspodning <case>.adoc instead of static
Readme.adoc, when generating the test report.

Each test documentation should cover all aspects of the test, much like
the usage text of a UNIX program.  To this end, the tunnel test docs are
now more spelled out, including all invariants.

Some refactoring of these tests were also necessary, e.g., replacing any
reserved Python keywords like 'type', and other PEP-8 fixes.

Signed-off-by: Joachim Wiberg <[email protected]>
@troglobit troglobit merged commit 1989eff into main Sep 15, 2025
6 checks passed
@troglobit troglobit deleted the test-fixes branch September 15, 2025 14:21
@troglobit troglobit added this to the Infix v25.09 milestone Sep 16, 2025
@jovatn jovatn added the cn:styx label Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:main Build default defconfig, not minimal cn:styx
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants