Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Nimuedaertya
Copy link
Contributor

@Nimuedaertya Nimuedaertya commented Feb 9, 2024

Contribution description

  • add CTest argument for output on failure (only working for some test distributions)
  • update README with correct rpki-cache instance
  • fixes multiple pipeline errors:
    • prefix-trie for IPv6 build up failing due to incorrect bit selection from bits >95
    • rpmlint error: modify changelog date in librtr.spec file
      => no changelog results in error, because all changes older than 2years are dismissed
    • increase of connection_timeout in live_tests due to timeout issues
  • minor improvements for uniform code in live_tests (using public rpki-cache)

Testing procedure

  • default test setup

@Nimuedaertya Nimuedaertya changed the title [Draft] Debugging Pipeline Errors Debugging Pipeline Errors Mar 8, 2024
@fho
Copy link
Member

fho commented Apr 1, 2024

@Nimuedaertya what is the plan for this PR?

@Nimuedaertya
Copy link
Contributor Author

@fho Wanted to fix all errors which occur in the main branch during the ci-pipeline. Latest run of this PR
However, to this point of time I have been only partly successful.

@waehlisch
Copy link
Member

@Nimuedaertya maybe you can be more specific, in case someone wants to help.

@Nimuedaertya
Copy link
Contributor Author

Along with some code changes for more uniform code in the later named test cases, my issues/results can be summarized as follows:

Handled Errors in this PR:

  • rpmlint failed due to "missing changelog" in redhat/SPECS/librtr.spec
    => gets trimmed and holds only records of the last two years. I changed the date of the last update and commented the real last change date
  • timeout of tests/test_live_validation.c and tests/test_dynamic_groups.c
    => needed longer timeout values due to RPKI-Cache change (updated in the docu as well)

Unhandled errors

  • Ubuntu 18.04 PPC64LE and arm7 fail due to abortion of a child process. The process runs the function "rtr_fsm_start" and is tasked with receiving the PDUs for syncing with the RPKI-Cache. The error is probably related to the sockets. So far I could not reproduce it locally
  • rpmlint being stuck for Fedora35 AMD64. No real clue, log information is sparse, verbose mode would really help

{NULL, 0, 0, 0} };

const int connection_timeout = 20;
const int connection_timeout = 80;
Copy link
Member

Choose a reason for hiding this comment

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

why was it necessary to increase the timeout?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

live tests (test_live_validation, test_dynamic_groups) failed for some jobs, because rpki cache instance was busy with other requests.

@Nimuedaertya
Copy link
Contributor Author

CI: rerun

Motivation
  - get pipeline checks running

How:
  - insert valid rpki-cache which runs also rtr
  - edit url in live_tests, README
  - modify changelog date in librtr.spec file
    => no changelog results in error, because all changes older
       than 2years are dismissed
  - add more output on failure for tests
Motivation:
 - test cases for arm7 Ubuntu18.04 and ppc64le Ubuntu18.04 failed
 - pipeline results in fail after commit
 - minor improvements for uniform build up live_tests

How:
 - trie building is based on address (binary-trie)
 - getting a single bit for IPv6 addresses has been error prone for
   bit_postion > 95
 - unsure why other distributions did not fail
   => may be due to different endianess
@tanneberger tanneberger merged commit 3e4f635 into rtrlib:master May 3, 2024
@k0ste k0ste mentioned this pull request Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants