Skip to main content

Checking GitHub Actions costs from one PR

Finding duplicate runs in Netsujo's operating record

Published:
MMiyako de IT Editorial Team
GitHub ActionsCIDevelopment logSolo developmentAI development
A conceptual cover about investigating GitHub Actions costs: a black field with the headline "Does this CI need to run now?" and a flow from checking the candidate to RUN. Not a screenshot or measured proportions.

To investigate GitHub Actions costs in a small project, trace one pull request's run history before looking at the monthly total; that makes repeated runs easier to spot. This article shows the steps and how to read the numbers, using Netsujo's records.

Edit a little, push, inspect the test results, then edit again. AI-assisted development can shorten that cycle. If the same expensive checks start every time, CI waiting time and costs grow alongside implementation speed.

Netsujo reviewed GitHub Actions triggers and repeated execution through several rounds of changes. A Billing API readback on November 1 showed USD 45.34 for October 17–23 and USD 20.27 for October 25–31. Both are UTC seven-day windows and netAmount excluding tax. October 24, the day the guards were merged, is excluded from the comparison. Work volume and discounts were not normalized, so the 55.3% period difference is not treated as a causal savings rate.

Before reaching those figures, we had observed targeted verification working while other routes still started heavy checks for intermediate candidates. The useful lesson for a small project is how to find those routes. Start with one pull request and follow what ran, and how often.

The first useful comparison was one execution

CI automatically checks a change, for example by running tests. In GitHub Actions, the configured process is a workflow, an execution is a run, and its execution environment is a runner. A workflow can contain several jobs. Counts, elapsed time, and billing are separate measurements.

Netsujo's operating records include a comparison within one PR family after changing macOS verification from FULL to TARGETED:

ObservationFULL on the older baseTARGETED on the updated base
macOS job elapsed time9 min 16 sec5 min 42 sec
Test-body duration8 min 55 sec5 min 23 sec
Executed suiteFULLTARGETED
Other suiteTARGETED skippedFULL skipped

The whole-job difference was 214 seconds, or 38.5%. This showed that classification was selecting and executing the intended suite on a real runner. The base and candidate state changed, so this is not a perfectly matched experiment. The observed duration reduction was also not booked directly as a reduction in a finalized invoice.

That repair candidate still had unresolved review findings. It was returned to Draft rather than merged because it had become faster. A different stabilized candidate later passed all 161 TARGETED tests, completed its macOS job in 400 seconds, and passed the necessary Linux and other checks. The earlier 5 min 42 sec and this 400-second run are separate observations. Combining favorable parts of different runs into one successful execution would misrepresent the record.

Targeted verification worked, but intermediate HEADs still triggered work

HEAD identifies the candidate commit being verified. An additional push after a PR becomes Ready changes HEAD; the update event is called synchronize.

The intended procedure invalidated an old acceptance and returned the PR to Draft when its candidate changed. But the process returning it to Draft and the process starting heavy CI likely ran concurrently. The latter did not necessarily wait, which likely left an opportunity to allocate a runner to a candidate that would soon be replaced.

A change merged on October 7, 2026 in Japan time (October 6 UTC) stopped a candidate updated while Ready at the entry to heavy processing. A subsequent real PR update produced these observations:

Recorded processResult
macOS-side classification jobStopped at the update guard after about 4 seconds
macOS acceptance jobSKIPPED; no macOS runner allocated
macOS-side finalizerEnded after about 5 seconds without granting acceptance
Linux verification jobStopped after about 5 seconds, before checkout and the heavy suite

The red checks in this case were the intended stop. Recasting skipped verification as successful execution just to make everything green would lose the meaning that this candidate was not ready for acceptance. Conversely, some short Linux processing still ran, so the table cannot establish zero total cost.

On October 24, guards detecting additional changes while Ready were also merged into three repositories: SIGNAL, the company site, and Agent OS. Further changes should happen after returning to Draft, followed by local verification and promotion of the final candidate to Ready. Both the procedure and the processing entry needed attention.

Explore upcoming events: dates, venues and participation requirements →

How to inspect one PR in your own project

The following is a procedure for readers, separate from new verification performed at Netsujo. During the first inspection, change no settings; read the PR and Actions history.

1. Select one merged PR or a PR with a stabilized candidate.

2. Put commits and runs from Draft through Ready and merge in time order.

3. Add the trigger event, candidate commit, runner, result, and start and finish times to each run.

4. For apparently repeated work on one candidate, check differences in inputs, OS, and dependencies.

5. Select one possible omission and state which remaining check would catch which defect.

Two runs on the same commit may serve different purposes if one uses Linux and the other macOS. Browser and database checks also cannot be called duplicates from their names alone. Before removing either, establish whether a result for the same conditions and purpose already exists.

concurrency controls overlapping execution within a group. Deciding whether a completed success remains reusable for a later operation is a separate question. Read GitHub's concurrency documentation and inspect the grouping used by your workflow.

Diagram of three numbered records matched to one change: the change, execution history, and cost breakdown
Diagram of three numbered records matched to one change: the change, execution history, and cost breakdown

Figure 1. Start with three records. An observation procedure for your environment. Suggested procedure, separate from executed logs

Identical source can still need another deployment

The SIGNAL control merged on November 1 applies to direct manual redeployment. If the source matches current production and no reason is supplied, it stops before dependency installation and build.

An environment-variable change or recovery operation can require redeploying unchanged source. The implementation allows an environment-change, recovery, or explicit-redeploy reason to continue through the existing guards and verification. If production source cannot be established, the operation fails with guidance instead of being rounded into success or a skip.

Code integration and verification of this guard are recorded. Its subsequent real prevention count and realized savings remain unknown. Keeping separate fields for implementation, behavior on an operational route, and monetary effect makes the next check clear.

Carry the aggregation conditions with the amounts

The seven-day comparison looks different when separated into before- and after-discount amounts:

UTC periodgrossAmountdiscountAmountnetAmount
October 17–23$45.98$0.64$45.34
October 25–31$26.76$6.49$20.27
Two separate observations. Top: cost observation (API, UTC), USD 45.34 to 20.27. Bottom, dashed: a reported value not re-verified here, CI time 9:31 to 2:09
Two separate observations. Top: cost observation (API, UTC), USD 45.34 to 20.27. Bottom, dashed: a reported value not re-verified here, CI time 9:31 to 2:09

Figure 2. Separate period change from intervention effect. The 55.3% cost difference is from the API readback. The CI time of 9:31 → 2:09 (77.4% shorter) is a value reported in an existing public Netsujo article; the original run was not re-verified in this publication. 2026 records · cost: UTC / tax excluded / API

The CI duration in the lower, dashed panel of Figure 2 (9:31 → 2:09, 77.4%) is a value reported in an existing public Netsujo article. Because the original run was not re-verified in this publication, it is excluded from the newly verified execution and savings evaluation.

Values are rounded for display. The period differences calculated from unrounded values are 55.3% in net and 41.8% in gross. Because discounts differ, the payment-side figure alone cannot establish the change in execution volume. Development volume, change types, and necessary acceptance counts also differ.

The following blank template is enough for an initial note. It contains no fictional completed results; fill it with observations from your own project.

FieldWhat to record
TargetPR, candidate commit, observation period, time zone
ExecutionEvent, runner, run URL, result, duration
QuestionWhy the same candidate ran again; input and environment differences
Proposed changeJust one; include retained checks and treatment of unknown changes
AfterwardThe same measurements, evidence of required checks, and unanswered questions

A lower monthly total may simply reflect a pause in development. When controlling cost without adding checks, verify that failures that must be caught still stop the operation. Netsujo's target below USD 100 per month has not yet been confirmed over a complete post-change month.

For a coworking meetup discussion, bring one sanitized PR history and a specific unresolved question. Find a suitable session through the MiyakodeIT event information and build the observation note while working on your own project.

Sources and scope

Execution details come from Netsujo's private operating records, and the amounts from the November 1 Billing API readback. The underlying internal records are not public. The reader procedure describes conditions for applying the method elsewhere; it is separate from a complete published configuration or a newly executed demonstration for this article.

Source data

The figures cited in this article are based on primary data in the Miyako de IT annual statistics report. It publishes yearly event counts, venue distribution, and event-format data.

Event artwork published by the organizer (Online)Registration open

Dec 4 (Fri)

Original event title

Time20:00–21:30 JST
AreaOnline

LanguageLanguage support not confirmed