Skip to content

Fixed exeternal prefix cleaning#61

Merged
AlexanderLanin merged 2 commits intoeclipse-score:mainfrom
MaximilianSoerenPollak:MSP_bugfixes
Jun 3, 2025
Merged

Fixed exeternal prefix cleaning#61
AlexanderLanin merged 2 commits intoeclipse-score:mainfrom
MaximilianSoerenPollak:MSP_bugfixes

Conversation

@MaximilianSoerenPollak
Copy link
Copy Markdown
Contributor

Fixing external prefix cleaning
Adding tests via RST files
Changing metamodel to allow for tests

Fixing external prefix cleaning
Adding tests via RST files
Changing metamodel to allow for tests
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 3, 2025

License Check Results

🚀 The license check job ran with the Bazel command:

bazel run //src:license-check

Status: ⚠️ Needs Review

Click to expand output
[License Check Output]
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
INFO: Invocation ID: 9b1066ee-2da7-477f-b551-dc71eb859350
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
    currently loading: src
Loading: 0 packages loaded
    currently loading: src
Analyzing: target //src:license-check (1 packages loaded, 0 targets configured)
Analyzing: target //src:license-check (1 packages loaded, 0 targets configured)

Analyzing: target //src:license-check (103 packages loaded, 10 targets configured)

Analyzing: target //src:license-check (145 packages loaded, 912 targets configured)

Analyzing: target //src:license-check (151 packages loaded, 1795 targets configured)

Analyzing: target //src:license-check (157 packages loaded, 2682 targets configured)

Analyzing: target //src:license-check (157 packages loaded, 2682 targets configured)

Analyzing: target //src:license-check (161 packages loaded, 4815 targets configured)

INFO: Analyzed target //src:license-check (162 packages loaded, 4941 targets configured).
INFO: Found 1 target...
Target //src:license.check.license_check up-to-date:
  bazel-bin/src/license.check.license_check
  bazel-bin/src/license.check.license_check.jar
INFO: Elapsed time: 16.377s, Critical Path: 0.37s
INFO: 13 processes: 4 disk cache hit, 9 internal.
INFO: Build completed successfully, 13 total actions
INFO: Running command line: bazel-bin/src/license.check.license_check src/formatted.txt -review -project automotive.score -repo https://github.com/eclipse-score/docs-as-code -token otyhZ4eaRYK1tKLNNF-Y
[main] INFO Querying Eclipse Foundation for license data for 83 items.
[main] INFO Found 57 items.
[main] INFO Querying ClearlyDefined for license data for 26 items.
[main] INFO Found 26 items.
[main] INFO License information could not be automatically verified for the following content:
[main] INFO 
[main] INFO pypi/pypi/-/nodejs-wheel-binaries/22.16.0
[main] INFO 
[main] INFO This content is either not correctly mapped by the system, or requires review.
[main] INFO A review is required for pypi/pypi/-/nodejs-wheel-binaries/22.16.0.
[main] INFO A review request was created https://gitlab.eclipse.org/eclipsefdn/emo-team/iplab/-/issues/21716 .

@MaximilianSoerenPollak MaximilianSoerenPollak linked an issue Jun 3, 2025 that may be closed by this pull request
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 3, 2025

The created documentation from the pull request is available at: docu-html

#CHECK: check_options

.. Cleaning of 'external prefix' before checking regex confirmity
#EXPECT-NOT tool_req__test_abcd.satisfies (PROCESS_doc_getstrt__req__process): does not follow pattern `^doc_.+$`.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Testing the positive case is not possible (only via unittests maybe) as if the 'external link' does not exists the links do not get passed along to the check (probably something sphinx-needs internal).
So you only get the message that the link is not good, but not the error you are actually looking for.

Comment on lines -80 to +83
if field_type == "link" and allowed_prefixes:
values = remove_prefix(values, allowed_prefixes)

for value in values:
if field_type == "link" and allowed_prefixes:
value = remove_prefix(value, allowed_prefixes)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Issue was that if a list was passed into it, instead of removing all valued prefixes it just did the first value.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should have been caught by basedpyright?!

@AlexanderLanin AlexanderLanin merged commit 21f4bb8 into eclipse-score:main Jun 3, 2025
7 checks passed
arnoox pushed a commit to arnoox/score-docs-as-code that referenced this pull request Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

Bug: 'Prefixes' are not correctly cleaned from lists

3 participants