Get rid of "list (internal) identifiers" scripts #92
Labels
No labels
approved
bug
dependencies
DO-NOT-MERGE
enhancement
good-first-issue
help-wanted
historical-reviewed
historical-reviewing
needs-adoption
needs-ci
needs-design-approval
needs-info
needs-preceding-pr
needs-review
needs-reviewer
needs-work
priority-high
priority-low
priority-medium
priority-scheduled
priority-very-high
single-reviewer
size-l
size-m
size-s
size-xs
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-Mbed-TLS/mbedtls-framework#92
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently,
abi_check.pyrelies on the user (inc. CI) to generate a list of internal identifiers and pass the resulting file as the argument to the command-line option-s/--skip-file. On the CI, this is done by callingtests/scripts/list-identifiers.sh --internalwhich is a thing wrapper aroundtests/scripts/list_internal_identifiers.pywhich itself has more lines of boilerplate than actual code (8 lines to get the list, everything else to parse command line and write to a file).It would be more user-friendly, less error-prone and more maintainer-friendly to cut the middlemen and have
abi_check.pyget the list of files by itself. Suggesting a 3-step plan to do this.Step 1: Change the groovy script on the CI to something like
(with an appropriate comment).
Step 2:
abi_check.pyignore the skipfile and instead generate the list itself by using the relevant code fromlist_internal_identifiers.py. The list should be generated using the old revision.-soption ofabi_check.py.tests/scripts/list-identifiers.sh.tests/scripts/list_internal_identifiers.pyand change the reference to it incheck_names.pyto refer toabi_check.pyinstead.Step 3: When enough time has passed (that is, when the last release of each maintained branch has the new code), remove the
iffrom step 2, keeping only theelsepath.This issue is only about doing steps 1-2, then an issue can be created in mbedtls-test to track step 3.
Note: I had started working on this but won't continue. In case it can be useful, I'm sharing the proof-of-concept I had working locally for part of step 2: https://github.com/mpg/mbedtls/tree/abi-check-identifiers