Skip to content

Enhance C++ coverage reusable workflow#65

Merged
pawelrutkaq merged 2 commits intoeclipse-score:mainfrom
RSingh1511:rss/swp-240231
Feb 24, 2026
Merged

Enhance C++ coverage reusable workflow#65
pawelrutkaq merged 2 commits intoeclipse-score:mainfrom
RSingh1511:rss/swp-240231

Conversation

@RSingh1511
Copy link
Contributor

No description provided.

uses: bazel-contrib/setup-bazel@0.18.0
with:
disk-cache: ${{ github.workflow }}
disk-cache: ${{ format('{0}_{1}', github.workflow, github.ref_name) }}
Copy link
Contributor

Choose a reason for hiding this comment

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

@PiotrKorkus shall we just do a cache only for main really? any other seems to cache polution.

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, as we talked already.

Caching only main should be sufficient, PRs should still benefit in some scope from it

Copy link
Contributor

@pawelrutkaq pawelrutkaq Feb 24, 2026

Choose a reason for hiding this comment

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

Keep this ${{ github.workflow }}
and do logic like cache-save: ${{ github.event_name == 'push' }} && ${{ github.branch== 'main' }.

Supporting multi-branch is hard i think.


# Note: This action writes cache config to ~/.bazelrc
# Projects must include "try-import ~/.bazelrc" in their .bazelrc to enable caching
# See: https://github.com/eclipse-score/reference_integration/blob/main/.bazelrc#L84
Copy link
Contributor

Choose a reason for hiding this comment

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

This can go to Readme.md of this repo as attention note, @dcalavrezo-qorix what do you think ? Or shall we do checks in cicd workflows that .bazelrc does that ?

Copy link
Member

Choose a reason for hiding this comment

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

As far as I know, bazel automatically imports .bazelrc from the home folder. I don't think any try-import is needed at all.

Copy link
Contributor

Choose a reason for hiding this comment

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

just checked locally and @4og is right, ~/.bazelrc was loaded without try-import

Copy link
Contributor

Choose a reason for hiding this comment

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

Seems so as per doc and tested in ref int. Then, I guess we saw other issues with cache on reference integration that overlaid with this one.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

@RSingh1511 then You can revert what i requested and You added for this point. Sorry ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

@FScholPer FScholPer left a comment

Choose a reason for hiding this comment

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

Except the readme looks quite good


---

### **8️ Copyright Check Workflow**
Copy link
Contributor

Choose a reason for hiding this comment

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

the numbers are a little bit strange ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@pawelrutkaq pawelrutkaq merged commit 41d5059 into eclipse-score:main Feb 24, 2026
2 checks passed
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.

5 participants