Skip to content

Conversation

@arnoox
Copy link
Contributor

@arnoox arnoox commented Jan 22, 2026

Upgrade sphinx-needs to 6.3.0

📌 Description

Upgrade sphinx-needs to version 6.3.0

Add support for new options (is_import, constraints) introduced in 6.3.0 and remove the plantuml workaround that was only needed for older versions.

🚨 Impact Analysis

  • This change does not violate any tool requirements and is covered by existing tool requirements
  • This change does not violate any design decisions
  • Otherwise I have created a ticket for new tool qualification

✅ Checklist

  • Added/updated documentation for new or changed features
  • Added/updated tests to cover the changes
  • Followed project coding standards and guidelines

@github-actions
Copy link

github-actions bot commented Jan 22, 2026

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 (8.3.0) and connecting to it...
INFO: Invocation ID: 80a638c9-2586-46c5-afa0-1f399eafaa46
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
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 (72 packages loaded, 9 targets configured)

Analyzing: target //src:license-check (88 packages loaded, 191 targets configured)

Analyzing: target //src:license-check (129 packages loaded, 2435 targets configured)

Analyzing: target //src:license-check (134 packages loaded, 2484 targets configured)

INFO: Analyzed target //src:license-check (137 packages loaded, 4500 targets configured).
[7 / 13] Creating runfiles tree bazel-out/k8-opt-exec-ST-d57f47055a04/bin/external/score_tooling+/dash/tool/formatters/dash_format_converter.runfiles [for tool]; 0s local ... (2 actions, 1 running)
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: 14.143s, Critical Path: 0.74s
INFO: 13 processes: 3 disk cache hit, 9 internal, 1 processwrapper-sandbox.
INFO: Build completed successfully, 13 total actions
INFO: Running command line: bazel-bin/src/license.check.license_check src/formatted.txt <args omitted>
usage: org.eclipse.dash.licenses.cli.Main [-batch <int>] [-cd <url>]
       [-confidence <int>] [-ef <url>] [-excludeSources <sources>] [-help] [-lic
       <url>] [-project <shortname>] [-repo <url>] [-review] [-summary <file>]
       [-timeout <seconds>] [-token <token>]

@github-actions
Copy link

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

Copy link
Contributor

@ubmarco ubmarco left a comment

Choose a reason for hiding this comment

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

LGTM, let's update SN in a first step, then do the schema validation translation.
Which Sphinx version is resolved now? We should also set a minimum version, to also fix deprecations and use latest features. Can also do that in another PR.

@arnoox
Copy link
Contributor Author

arnoox commented Jan 22, 2026

LGTM, let's update SN in a first step, then do the schema validation translation. Which Sphinx version is resolved now? We should also set a minimum version, to also fix deprecations and use latest features. Can also do that in another PR.

sphinx==8.2.3, the same than before the sphinx-needs update. I committed the minimum version directly in requirements.in.

@arnoox arnoox marked this pull request as ready for review January 26, 2026 09:52
@AlexanderLanin
Copy link
Member

AlexanderLanin commented Jan 26, 2026

This looks way less complex than expected for that update 👍

  • For our users this looks like a minor change?! Nothing seems to break from a user perspective.
  • Do you need some help with ECA?
  • Can you merge main / rebase?
  • Can you have a look at the linter warnings? AFAIK you can run scripts/linter.sh (horrible solution, but it works)

@arnoox
Copy link
Contributor Author

arnoox commented Jan 26, 2026

  • For our users this looks like a minor change?! Nothing seems to break from a user perspective.

Yes, at least the score doc built locally with that update.

  • Do you need some help with ECA?

I just applied, waiting for approval.

  • Can you merge main / rebase?
  • Can you have a look at the linter warnings? AFAIK you can run scripts/linter.sh (horrible solution, but it works)

In fact I found the script and had some problem running it. Seems like ruff / actionlint are not found. Maybe I didn't setup my devcontainer correctly? (ide_support ran successfully)

Copy link
Member

@AlexanderLanin AlexanderLanin left a comment

Choose a reason for hiding this comment

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

LGTM

@arnoox arnoox force-pushed the feature/update-sphinx-needs-6.3.0 branch from 276c5ce to fd6645c Compare January 26, 2026 13:59
Comment on lines +120 to +139
kwargs.setdefault("id", "test_need")
kwargs.setdefault("type", "requirement")
kwargs.setdefault("title", "")
kwargs.setdefault("status", None)
kwargs.setdefault("tags", [])
kwargs.setdefault("collapse", False)
kwargs.setdefault("hide", False)
kwargs.setdefault("layout", None)
kwargs.setdefault("style", None)
kwargs.setdefault("external_css", "")
kwargs.setdefault("type_name", "")
kwargs.setdefault("type_prefix", "")
kwargs.setdefault("type_color", "")
kwargs.setdefault("type_style", "")
kwargs.setdefault("constraints", [])
kwargs.setdefault("arch", {})
kwargs.setdefault("sections", ())
kwargs.setdefault("signature", None)
kwargs.setdefault("has_dead_links", False)
kwargs.setdefault("has_forbidden_dead_links", False)
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems a bit excessive.
Do we really need to declare all the defaults again? Can't we take the ones from sphinx-needs internally?

Copy link
Member

Choose a reason for hiding this comment

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

intentional change? Is that new?

Copy link
Member

Choose a reason for hiding this comment

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

Code relation of the comment got lost. What is going on?
image

Copy link
Member

@AlexanderLanin AlexanderLanin Jan 27, 2026

Choose a reason for hiding this comment

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

ah this includes all change on main branch somehow! Can you try rebasing or whatever to clean that up?

@AlexanderLanin AlexanderLanin force-pushed the feature/update-sphinx-needs-6.3.0 branch from fd6645c to a7b7354 Compare January 27, 2026 09:40
@AlexanderLanin
Copy link
Member

rebased

Copy link
Contributor

@MaximilianSoerenPollak MaximilianSoerenPollak left a comment

Choose a reason for hiding this comment

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

Just two questions.
Though those can be also clarified after merge

Comment on lines +146 to +157
source_content_keys = {
"docname",
"lineno",
"lineno_content",
"external_url",
"is_import",
"is_external",
"doctype",
"content",
"pre_content",
"post_content",
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you explain this?

Comment on lines +524 to +526
actual_links: set[str] = (
set(actual_source_code_link.split(", "))
if actual_source_code_link
Copy link
Contributor

Choose a reason for hiding this comment

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

This will always be true as it has a default value:
treq_info.get("source_code_link", "no source link")

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

Labels

None yet

Projects

Status: Draft

Development

Successfully merging this pull request may close these issues.

5 participants