Skip to content

feat: treat version as int#599

Merged
AlexanderLanin merged 2 commits into
eclipse-score:mainfrom
etas-contrib:noregex
Jun 16, 2026
Merged

feat: treat version as int#599
AlexanderLanin merged 2 commits into
eclipse-score:mainfrom
etas-contrib:noregex

Conversation

@AlexanderLanin

@AlexanderLanin AlexanderLanin commented Jun 15, 2026

Copy link
Copy Markdown
Member

Warning: this is based on unreleased process_description

Note: consumer test on score module fails, as that pulls last released process description.

@github-actions

github-actions Bot commented Jun 15, 2026

Copy link
Copy Markdown

License Check Results

🚀 The license check job ran with the Bazel command:

bazel run --lockfile_mode=error //src:license-check

Status: ⚠️ Needs Review

Click to expand output
[License Check Output]
Extracting Bazel installation...
Starting local Bazel server (8.6.0) and connecting to it...
INFO: Invocation ID: 4bea2dd3-73c9-4e10-bf07-3cab1ed5501a
Computing main repo mapping: 
Computing main repo mapping: 
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
    currently loading: src
WARNING: Target pattern parsing failed.
ERROR: Skipping '//src:license-check': no such target '//src:license-check': target 'license-check' not declared in package 'src' defined by /home/runner/work/docs-as-code/docs-as-code/src/BUILD
ERROR: no such target '//src:license-check': target 'license-check' not declared in package 'src' defined by /home/runner/work/docs-as-code/docs-as-code/src/BUILD
INFO: Elapsed time: 13.413s
INFO: 0 processes.
ERROR: Build did NOT complete successfully
ERROR: Build failed. Not running target

@github-actions

Copy link
Copy Markdown

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

@MaximilianSoerenPollak MaximilianSoerenPollak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just some small simplification.

But overall this looks good and we can merge it.

All things mentioned are nitpicks and can be done in future PR's

raw_value = need.get(key, None)
if not raw_value:
return []
if isinstance(raw_value, str):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you not do:

Suggested change
if isinstance(raw_value, str | int):

to check both?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yes and no. I would keep it separate as casting int to a str feels like a dirty temporary workaround. Hence the comment.

Comment on lines 44 to 45
for item in raw_list:
if not isinstance(item, str):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
for item in raw_list:
if not isinstance(item, str):
if not all(isinstance(item, str) for item in raw_list)

Making it shorter / more efficent with list comprehension?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

done

Comment thread MODULE.bazel Outdated
bazel_dep(name = "score_process", version = "1.5.4")
git_override(
module_name = "score_process",
commit = "1c7867b85a1c1ca915bd516cb60ef2e9c1904975",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Probably should now adapt this to the latest commit that was just merged.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

used latest commit hash. requested process 1.6.0 for later today

@MaximilianSoerenPollak MaximilianSoerenPollak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM 💯

@AlexanderLanin AlexanderLanin merged commit b8b7746 into eclipse-score:main Jun 16, 2026
12 of 14 checks passed
@AlexanderLanin AlexanderLanin deleted the noregex branch June 16, 2026 07:41
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.

2 participants