Skip to content

Conversation

@jw-foss
Copy link
Contributor

@jw-foss jw-foss commented Dec 18, 2025

Description

For now job Check for test coverage, gets to run every time, which fetches and calculates data even if the conditions were not met for instance in our case:

  • if no src related files gets changed
  • if files under test gets changed

Since we do not want these to run under these scenario, I think we should bail early to avoid make requests and calculations ahead of the time.

@github-actions
Copy link

github-actions bot commented Dec 18, 2025

Luacheck Report

1 files  ±0  1 suites  ±0   0s ⏱️ ±0s
4 tests ±0  4 ✅ ±0  0 💤 ±0  0 ❌ ±0 
8 runs  ±0  8 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 5bea11c. ± Comparison against base commit 3a7548a.

♻️ This comment has been updated with latest results.

ValeryG
ValeryG previously approved these changes Dec 18, 2025
Copy link
Collaborator

@ValeryG ValeryG left a comment

Choose a reason for hiding this comment

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

the reason why didn't do from the start is I want to see more information (console.logs) as of why coverage is skipped) :) but I that's the fine change :)

* Restore the former way of the CI process but put the condition determinations prior to fetching data from GitHub API.
@jw-foss
Copy link
Contributor Author

jw-foss commented Dec 24, 2025

@ValeryG I pushed new code, restored the old way but put the if blocks to the head of the script so we should be able to see the logs without additional requests. PTAL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants