Skip to content

feat: Quality pack targets - #150

Open
GabrielPinheiro7891 wants to merge 38 commits into
eclipse-score:mainfrom
etas-contrib:feature/AZB-101279-Quality-pack-targets
Open

GabrielPinheiro7891 wants to merge 38 commits into
eclipse-score:mainfrom
etas-contrib:feature/AZB-101279-Quality-pack-targets

Conversation

@GabrielPinheiro7891

Copy link
Copy Markdown
Contributor

Provide Bazel targets: unit tests, component tests, code coverage.
Added documentation

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown

License Check Results

🚀 The license check job ran with the Bazel command:

bazel run //: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: e636f4a8-a6b3-483f-b885-a7af3de54595
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
WARNING: For repository 'platforms', the root module requires module version platforms@1.0.0, but got platforms@1.1.0 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: For repository 'score_platform', the root module requires module version score_platform@0.7.1, but got score_platform@0.7.2 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: For repository 'rules_oci', the root module requires module version rules_oci@2.2.7, but got rules_oci@2.3.0 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Loading: 
Loading: 3 packages loaded
WARNING: Target pattern parsing failed.
ERROR: Skipping '//:license-check': no such target '//:license-check': target 'license-check' not declared in package '' defined by /home/runner/work/time/time/BUILD
ERROR: no such target '//:license-check': target 'license-check' not declared in package '' defined by /home/runner/work/time/time/BUILD
INFO: Elapsed time: 14.317s
INFO: 0 processes.
ERROR: Build did NOT complete successfully
ERROR: Build failed. Not running target

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown

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

Comment thread docs/features/time/component_requirements.rst Outdated
Comment thread score/time/docs/requirements/index.rst Outdated
:id: doc__time_requirements
:status: valid
:version: 1
:safety: QM

@BjoernAtBosch BjoernAtBosch Sep 11, 2026

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.

Everything should be set to ASIL_B as the whole time library is ASIL now

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.

Done

:reqtype: Functional
:security: NO
:safety: QM
:derived_from: feat_req__time__high_prec_clock_api

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
:derived_from: feat_req__time__high_prec_clock_api
:derived_from: feat_req__time__high_res_clock_api

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.

That did not change on main yet. So no change necessary.
PR that will include that change is still open and not merged

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.

That requirement is in the S-CORE main repo: https://github.com/eclipse-score/score/blob/main/docs/features/time/requirements/index.rst#local-clock
(Was merged on 2026-09-04)

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.

time/requirements/index.rst:30: comp_req__time__unified_clock_facade: is valid but links to invalid need(s): {'feat_req__time__high_res_clock_api'}
time/requirements/index.rst:105: comp_req__high_res_steady_time__snapshot: is valid but links to invalid need(s): {'feat_req__time__high_res_clock_api'}

It does not build with the change.

Only when #208 is merged you can do this change. On main at the moment what i have is the correct name

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.

Ah - yes. Wasn't aware of that versioning, though this is actually obvious ...
I'd suggest to update the score_platform version to 0.7.2 in this PR then - not to linger on the old stuff.

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.

Pr for updating the score_platform is already open: #208
Don't think it makes sense to update it here since there's already a pr for that

Comment thread score/time/docs/requirements/index.rst Outdated
Comment thread score/time/docs/requirements/index.rst Outdated
Comment thread score/time/docs/requirements/index.rst
srcs = ["high_res_steady_clock_adapter_test.cpp"],
features = COMPILER_WARNING_FEATURES,
tags = [
"component",

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.

I don't think, that we should mark these as component tests because they do unit testing only.
Also, wondering if this combination of tags (component + unit) is possible.
But as shortly discussed on the call let's recheck documentation how this should be handled ...

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.

Done


TEST(HighResSteadyClockTest, NowReturnsTimepointSuitableForDurationArithmetic)
{
::testing::Test::RecordProperty("FullyVerifies", "comp_req__high_res_steady_time__snapshot");

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.

I don't think these tests (in general) do full verification of the requirement.
As mentioned in prev comment - we need to check docs ...

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.

Done

Co-authored-by: Björn Hornburg <Bjoern.Hornburg@de.bosch.com>
Signed-off-by: Gabriel Pinheiro <gabriel.pinheiro@etas.com>

@BjoernAtBosch BjoernAtBosch 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.

Hopefully some final comments

:reqtype: Functional
:security: NO
:safety: QM
:derived_from: feat_req__time__high_prec_clock_api

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.

That requirement is in the S-CORE main repo: https://github.com/eclipse-score/score/blob/main/docs/features/time/requirements/index.rst#local-clock
(Was merged on 2026-09-04)

Comment thread score/time/steady_time/src/steady_clock_adapter_test.cpp Outdated
Comment thread score/time/system_time/src/system_clock_adapter_test.cpp Outdated
Comment thread score/time/steady_time/src/BUILD Outdated
Comment thread score/time/system_time/src/BUILD Outdated
Comment thread score/time/vehicle_time/src/vehicle_clock_test.cpp Outdated
Comment thread score/time/vehicle_time/src/vehicle_clock_test.cpp Outdated
Comment thread score/time/vehicle_time/src/vehicle_clock_test.cpp
Comment thread score/time/vehicle_time/src/vehicle_clock_test.cpp
Comment thread score/time/vehicle_time/src/vehicle_clock_test.cpp
GabrielPinheiro7891 and others added 3 commits September 23, 2026 12:31
Co-authored-by: Björn Hornburg <Bjoern.Hornburg@de.bosch.com>
Signed-off-by: Gabriel Pinheiro <gabriel.pinheiro@etas.com>

This branch is waiting to be deployed

1 waiting deployment
workflow-approval 7c173ed7 Waiting Sep 24, 2026 by GabrielPinheiro7891 via qnx-build (x86_64-qnx) / approval #810
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

3 participants