Skip to content

[Advanced]: Optimize .github/workflows/pr-check-examples.yml #1949

Description

@exploreriii

🧠 Advanced Contributors

This issue is intended for contributors who are already very familiar with the
Hiero Python SDK codebase and its architectural patterns.

You should feel comfortable:

  • navigating multiple modules across src/
  • understanding and modifying core SDK abstractions
  • reasoning about API design and backwards compatibility
  • updating or extending tests, examples, and documentation as needed
  • making changes that may affect public-facing behavior

New developers should start with
Good First Issues or Intermediate Issues first.

🐞 Problem Description

We use a script to run our examples and check they all work
.github/workflows/pr-check-examples.yml

We are using over 16,000 minutes/month on this workflow alone

We can optimize this to run fewer minutes/month, without losing usefulness/insight, ideally

The developer will need to research best practices on how to optimize this, given our use cases (the business need for this workflow).

💡 Proposed / Expected Solution

Edit
.github/workflows/pr-check-examples.yml

Spot instances of wasted resources, then optimize

The main improvements are to restrict the possible triggers, for example, there may be no need to run this file if we change documentation, or only run this check once a whole bunch of other workflows pass

Quite open to decisions on how to make the optimizations

🧠 Implementation & Design Notes

This requires some care and testing

✅ Acceptance Criteria

To merge this issue, the pull request must:

  • Fully address the problem and design goals described above
  • Maintain backwards compatibility unless explicitly approved otherwise
  • Follow existing architectural and coding conventions
  • Include comprehensive tests covering new and existing behavior
  • Update relevant examples and documentation
  • Pass all CI checks
  • Include a valid changelog entry
  • be a DCO and GPG key signed as git commit -S -s -m "chore: my change" with a GPG key set up

📚 Additional Context, Links, or Prior Art

Optional.

Metadata

Metadata

Assignees

Labels

scope: CI/CDinvolves continuous integration or deliveryskill: advancedrequires knowledge of multiple areas in the codebase without defined steps to implement or examples

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions