Skip to content

[Bug]: execute with always flag at project level is called even for unrelated contexts #448

@brondani

Description

@brondani

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Reported by @andbararm.
Reproducer: https://github.com/andbararm/Safety-Example-Infineon-T2G
In this example the Run_FCARM execute node with always flag is set as dependency of all build contexts. Note the execute is declared only in TrafficLight.cproject.yml.

# Build dependencies
add_dependencies(Boot.Debug+T2G-Kit-build
  TrafficLight.Debug+T2G-Kit-Run_FCARM
)
add_dependencies(TrafficLight.Debug+T2G-Kit-build
  TrafficLight.Debug+T2G-Kit-Run_FCARM
)
add_dependencies(Blinky.Debug+T2G-Kit-build
  TrafficLight.Debug+T2G-Kit-Run_FCARM
)

Expected Behavior

The dependency on Run_FCARM should be set only for the relevant context (TrafficLight)

# Build dependencies
add_dependencies(TrafficLight.Debug+T2G-Kit-build
  TrafficLight.Debug+T2G-Kit-Run_FCARM
)

Steps To Reproduce

No response

Affected tools

  • cbridge
  • cbuild
  • cbuild2cmake
  • cpackget
  • csolution
  • packchk
  • svdconv
  • vidx2pidx

Affected operating systems

  • all
  • Windows amd64
  • Windows arm64
  • Linux amd64
  • Linux arm64
  • MacOS amd64
  • MacOS arm64

Environment

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions