<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Karthick Chinnathambi on Medium]]></title>
        <description><![CDATA[Stories by Karthick Chinnathambi on Medium]]></description>
        <link>https://medium.com/@ckarthickit?source=rss-b09faa2b79e8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ee5sZnQvkZ2v8uQw.</url>
            <title>Stories by Karthick Chinnathambi on Medium</title>
            <link>https://medium.com/@ckarthickit?source=rss-b09faa2b79e8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 02:51:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ckarthickit/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Part 2: Maestro UI tests in your pipeline]]></title>
            <link>https://medium.com/@ckarthickit/part-2-maestro-ui-tests-in-your-pipeline-b2ae1134a256?source=rss-b09faa2b79e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2ae1134a256</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[ui-testing]]></category>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[maestros]]></category>
            <dc:creator><![CDATA[Karthick Chinnathambi]]></dc:creator>
            <pubDate>Thu, 26 Nov 2026 06:21:25 GMT</pubDate>
            <atom:updated>2026-11-26T06:21:25.607Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NPa1ajqG2YrkgjXnVguMlA.png" /></figure><p><em>Part 2 of 2. Last time we hired your laptop. Today it gets real work.</em></p><p><em>A note up front: I wrote this with an AI assistant. It drafted the text, drew the cartoons and wrote the short example scripts. The numbers come from my own project and machine.</em></p><p><a href="https://maestro.mobile.dev/">Maestro</a> is a UI testing tool. You write down what a person would tap and check, and it does exactly that on an Android emulator, as often as you like, without sighing.</p><p>Maestro is our example. The same pipeline shape works for anything your machine can run.</p><h3>What you need</h3><ul><li>The runner from Part 1</li><li>Java 17 or newer</li><li>The Android SDK, with adb and emulator, and ANDROID_HOME set</li><li>One emulator (AVD) you don’t mind being wiped</li><li>The Maestro CLI (we used 2.6.0)</li></ul><p>The runner uses the environment of the terminal that started it. Start ./run.sh from a terminal where adb and maestro work.</p><h3>Step 1: Write a flow and run it by hand</h3><p>Save this as .maestro/settings.yaml, using your own app id and element ids:</p><pre>appId: com.example.app<br>---<br>- launchApp:<br>    clearState: true<br>- tapOn:<br>    id: &quot;nav_settings&quot;<br>- scrollUntilVisible:<br>    element:<br>      id: &quot;settings_language&quot;<br>    centerElement: true<br>- assertVisible:<br>    id: &quot;settings_language&quot;</pre><p>It reads like a note to a friend: open the app fresh, tap Settings, scroll until you find the language row, check it’s there. The scroll matters: on a short screen the row may start out of sight. Using ids instead of visible text means a translation won’t break the test.</p><p>Start your emulator, install your app, then:</p><pre>maestro test .maestro</pre><p><strong>You should see:</strong> each step completing, then the flow passing. Note that clearState wipes the app&#39;s data, so use an emulator, not your own phone.</p><h3>Step 2: Two small scripts</h3><p>A single maestro test line works until the day something hangs. These two scripts handle that day.</p><p><strong>ci/start_emulator.sh</strong> starts the emulator, and also restarts it, because &quot;kill whatever is there, then boot&quot; does both:</p><pre>#!/usr/bin/env bash<br># Start OR restart: kill whatever was running, boot a fresh one, wait until it is ready.<br>set -euo pipefail<br>: &quot;${AVD:?set AVD to your emulator name}&quot;     # check BEFORE the background job, or the failure is lost<br>PID_FILE=&quot;${PID_FILE:-/tmp/emulator.pid}&quot;<br>[ -f &quot;$PID_FILE&quot; ] &amp;&amp; kill -9 &quot;$(cat &quot;$PID_FILE&quot;)&quot; 2&gt;/dev/null || true   # a frozen one ignores polite requests</pre><pre>nohup &quot;$ANDROID_HOME/emulator/emulator&quot; -avd &quot;$AVD&quot; -port 5554 \<br>  -no-audio -no-boot-anim -no-snapshot -qt-hide-window -grpc-use-token &gt; emulator.log 2&gt;&amp;1 &amp;<br>echo $! &gt; &quot;$PID_FILE&quot;</pre><pre># Booted AND able to install: the package manager can answer a few seconds after boot_completed.<br>until [ &quot;$(adb -s emulator-5554 shell getprop sys.boot_completed 2&gt;/dev/null | tr -d &#39;\r&#39;)&quot; = &quot;1&quot; ] &amp;&amp;<br>      adb -s emulator-5554 shell pm path android 2&gt;/dev/null | grep -q &quot;^package:&quot;; do<br>  kill -0 &quot;$(cat &quot;$PID_FILE&quot;)&quot; 2&gt;/dev/null || { echo &quot;the emulator exited; see emulator.log&quot; &gt;&amp;2; exit 1; }<br>  sleep 2<br>done</pre><p><strong>run_flows.py</strong> runs each flow on its own, with the safety nets:</p><pre>#!/usr/bin/env python3<br>&quot;&quot;&quot;Run Maestro flows one by one: a time limit, a heartbeat, one restart-and-retry, a report.&quot;&quot;&quot;<br>import os, pathlib, signal, subprocess, sys, time</pre><pre>DEVICE, APK = &quot;emulator-5554&quot;, &quot;app/build/outputs/apk/debug/app-debug.apk&quot;<br>FLOW_LIMIT = 300                    # seconds one flow may take<br>BEAT_EVERY, BEAT_MISSES = 20, 3     # ask &quot;are you there?&quot;; this many silences = hung<br>OUT = pathlib.Path(&quot;reports&quot;)<br></pre><pre>def adb(*args, limit=60):<br>    try:<br>        return subprocess.run([&quot;adb&quot;, &quot;-s&quot;, DEVICE, *args], capture_output=True, text=True, timeout=limit)<br>    except subprocess.TimeoutExpired:<br>        return None<br></pre><pre>def alive():<br>    reply = adb(&quot;shell&quot;, &quot;echo&quot;, &quot;ok&quot;, limit=10)<br>    return reply is not None and &quot;ok&quot; in reply.stdout<br></pre><pre>def run_flow(flow):<br>    cmd = [&quot;maestro&quot;, &quot;--device&quot;, DEVICE, &quot;test&quot;, &quot;--format&quot;, &quot;JUNIT&quot;,<br>           &quot;--output&quot;, str(OUT / f&quot;{flow.stem}.xml&quot;), str(flow)]<br>    with open(OUT / f&quot;{flow.stem}.log&quot;, &quot;a&quot;) as log:<br>        proc = subprocess.Popen(cmd, stdout=log, stderr=log, start_new_session=True)<br>        start, beat, misses = time.monotonic(), time.monotonic() + BEAT_EVERY, 0<br>        while proc.poll() is None:<br>            time.sleep(0.5)<br>            verdict = None<br>            if time.monotonic() - start &gt; FLOW_LIMIT:<br>                verdict = &quot;timed out&quot;<br>            elif time.monotonic() &gt;= beat:<br>                misses = 0 if alive() else misses + 1<br>                beat = time.monotonic() + BEAT_EVERY<br>                if misses &gt;= BEAT_MISSES:<br>                    verdict = &quot;hung&quot;<br>            if verdict:<br>                os.killpg(proc.pid, signal.SIGKILL)     # Maestro AND its children<br>                proc.wait()<br>                return verdict<br>    return &quot;passed&quot; if proc.returncode == 0 else &quot;failed&quot;<br></pre><pre>def recover():<br>    &quot;&quot;&quot;A fresh emulator, the app back on it, and Maestro&#39;s driver removed so it reinstalls.&quot;&quot;&quot;<br>    try:<br>        if subprocess.run([&quot;bash&quot;, &quot;ci/start_emulator.sh&quot;], timeout=600).returncode != 0:<br>            return False<br>    except subprocess.TimeoutExpired:<br>        return False<br>    for package in (&quot;dev.mobile.maestro&quot;, &quot;dev.mobile.maestro.test&quot;):<br>        adb(&quot;uninstall&quot;, package)<br>    installed = adb(&quot;install&quot;, &quot;-r&quot;, APK, limit=300)<br>    return installed is not None and installed.returncode == 0<br></pre><pre>def write_summary(results):<br>    rows = [f&quot;| {name} | {verdict} |&quot; for name, verdict in results.items()]<br>    (OUT / &quot;summary.md&quot;).write_text(&quot;\n&quot;.join([&quot;| Flow | Result |&quot;, &quot;|---|---|&quot;, *rows]) + &quot;\n&quot;)<br></pre><pre>def main():<br>    OUT.mkdir(exist_ok=True)<br>    results, broken = {}, False<br>    for flow in sorted(pathlib.Path(&quot;.maestro&quot;).glob(&quot;*.yaml&quot;)):<br>        verdict = run_flow(flow)<br>        if verdict in (&quot;timed out&quot;, &quot;hung&quot;):<br>            if recover():<br>                again = run_flow(flow)                   # one retry, no more<br>                verdict = f&quot;{again} (retried: first {verdict})&quot;<br>            else:<br>                verdict, broken = f&quot;{verdict}, and recovery failed&quot;, True<br>        results[flow.stem] = verdict<br>        print(f&quot;{flow.stem}: {verdict}&quot;, flush=True)<br>        write_summary(results)                           # after EVERY flow<br>        if broken:<br>            break<br>    # A failed test is a line in the report. A broken pipeline, or nothing passing, fails the job.<br>    nothing_passed = not any(v.startswith(&quot;passed&quot;) for v in results.values())<br>    sys.exit(1 if broken or nothing_passed else 0)<br></pre><pre>if __name__ == &quot;__main__&quot;:<br>    main()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EMWw5jT-ZmKnPdsdTbLVvQ.png" /></figure><h3>Step 3: The pipeline</h3><p>Your one-job runner left after its hello. Register and start it again (Part 1, Steps 3 and 4), with a new token if the old one has expired. Then add .github/workflows/ui-tests.yml:</p><pre>name: UI tests<br>on: workflow_dispatch<br>permissions:<br>  contents: read<br>jobs:<br>  ui:<br>    runs-on: self-hosted<br>    timeout-minutes: 90<br>    env:<br>      AVD: &lt;your_avd&gt;<br>    steps:<br>      - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0</pre><pre>      - name: Build the debug app<br>        run: ./gradlew :app:assembleDebug</pre><pre>      - name: Start the emulator<br>        timeout-minutes: 10<br>        run: bash ci/start_emulator.sh</pre><pre>      - name: Install the app<br>        run: adb -s emulator-5554 install -r app/build/outputs/apk/debug/app-debug.apk</pre><pre>      - name: Run the flows<br>        timeout-minutes: 45<br>        run: python3 run_flows.py</pre><pre>      - name: Show results on the run page<br>        if: always()<br>        run: if [ -f reports/summary.md ]; then cat reports/summary.md &gt;&gt; &quot;$GITHUB_STEP_SUMMARY&quot;; fi</pre><pre>      - name: Upload the report<br>        if: always()<br>        uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2<br>        with:<br>          name: ui-report-${{ github.run_number }}-${{ github.run_attempt }}<br>          path: |<br>            reports/<br>            emulator.log<br>          retention-days: 14</pre><pre>      - name: Stop the emulator<br>        if: always()<br>        run: adb -s emulator-5554 emu kill || true</pre><p>Change the Gradle task, the APK path (here and in run_flows.py) and the AVD name to yours. Push, then <strong>Actions → UI tests → Run workflow</strong>.</p><p>We haven’t run this exact workflow in GitHub Actions yet. If something differs, tell us in the comments.</p><p><strong>You should see:</strong> a results table on the run page, and a report to download.</p><h3>Four clocks, so nothing waits for ever</h3><ul><li><strong>One flow:</strong> 300 seconds. Ours take 40 to 80.</li><li><strong>Booting the emulator:</strong> 10 minutes.</li><li><strong>The whole test step:</strong> 45 minutes.</li><li><strong>The whole job:</strong> 90 minutes.</li></ul><h3>Catching a hang early</h3><p>A frozen emulator doesn’t say it is frozen. And Maestro prints nothing until it finishes, so a quiet log proves nothing.</p><p>So while a flow runs, the script asks the device every 20 seconds: adb shell echo ok. Three silences in a row and the flow is &quot;hung&quot;. That takes about 90 seconds instead of waiting the full 300.</p><h3>Recovery: turn it off and on again, properly</h3><ol><li>Kill Maestro <strong>and its child processes</strong>.</li><li>Kill the emulator by process id. A frozen one ignores adb emu kill.</li><li>Boot a fresh one and wait until it can install apps.</li><li>Remove Maestro’s helper apps so they reinstall, and reinstall your app.</li><li>Run that one flow again, <strong>once</strong>. If recovery fails, stop and fail the job.</li></ol><p>We tested this by freezing a real emulator in the middle of a flow. The script called it hung, restarted it, reinstalled the app and retried. The flow passed, about two minutes after the freeze.</p><h3>Reports, and getting them out</h3><ul><li>Each flow leaves a <strong>JUnit XML</strong> file and a <strong>log</strong> in reports/.</li><li>summary.md is rewritten after every flow, so even a crashed run leaves a table.</li><li>The summary appears on the run page; the whole folder and emulator.log are uploaded for 14 days.</li><li>The upload name includes the run attempt, so a re-run doesn’t collide with the first.</li></ul><p><strong>One rule to agree with your team:</strong> a failed test shows in the report, but the job stays green if other tests passed. Someone has to read the table. Change the last lines of the script if you want any failure to turn the job red.</p><h3>Things that bite</h3><p><strong>Don’t write tests for one screen.</strong> Ours quietly assumed a tall one. On a shorter screen two of them failed, and nothing was wrong with the app. Write flows that don’t care how big the screen is:</p><ul><li>Scroll to an element before you check or tap it (scrollUntilVisible).</li><li>Find things by id, not by where they sit.</li><li>Never assume something is already on screen.</li><li>Try the suite on a small screen before you trust it.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CMQWc17MU4fDv6iVldjVtA.png" /></figure><p>To see what a device really shows, ask the running device:</p><pre>adb shell wm size<br>adb shell wm density</pre><p>You can also pin one screen in CI so runs stay comparable. Treat that as a seatbelt, not as the fix:</p><pre>adb shell wm size 720x1600<br>adb shell wm density 300</pre><p><strong>The tap that worked and did nothing.</strong> A card half hidden under a pinned header still reported its full position. The tap landed on the header, and Maestro said completed. Bring the target well inside the screen first; centerElement: true can help.</p><p><strong>The emulator that froze for real.</strong> On a GitHub-hosted runner, one of ours stopped answering and the run sat for 29 minutes, before we had a heartbeat. We still don’t know why it froze.</p><p><strong>How long it takes.</strong> Our 8 tests took about 270 seconds on a Mac, and 387 to 522 seconds on a GitHub-hosted Linux runner.</p><p>That’s the series: hire the laptop, then give it something worth doing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2ae1134a256" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part 1: Run your GitHub Actions on your own machine]]></title>
            <link>https://medium.com/@ckarthickit/part-1-run-your-github-actions-on-your-own-machine-345cc377af29?source=rss-b09faa2b79e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/345cc377af29</guid>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Karthick Chinnathambi]]></dc:creator>
            <pubDate>Thu, 26 Nov 2026 06:20:01 GMT</pubDate>
            <atom:updated>2026-11-26T06:20:01.930Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MrSX-u2bi0YCCypCKal_Zg.png" /></figure><p><em>Your laptop is sitting right there. Let’s give it a job.</em></p><p><em>A note up front: I wrote this with an AI assistant. It drafted the text and drew the cartoons. The experiments and numbers come from my own project and machine.</em></p><p>A <strong>self-hosted runner</strong> is a small program you leave running on your own computer. When a workflow asks for it, your machine does the work instead of a GitHub virtual machine.</p><p>Think of GitHub as a job board and your laptop as an eager freelancer who keeps asking, “Anything for me?” This is the story of its first day: hired in five seconds, one job kept waiting 46 minutes, and a slightly alarming look at your SSH keys.</p><h3>How the freelancer works</h3><ol><li>You download GitHub’s runner program and register it to a repository.</li><li>It calls GitHub over outbound HTTPS and asks for work. No open port, no public IP.</li><li>A job picks its runner by <strong>labels</strong>. The label self-hosted simply means “one of my own machines”.</li><li>It runs the job <strong>as you</strong>, with your files and your access.</li><li>It does <strong>one job at a time</strong>, and the next job finds the last one’s leftovers on disk.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*185W0-Pu7eXO_wgbSXJe9Q.png" /></figure><p>This is not <a href="https://github.com/nektos/act">act</a>, which imitates GitHub Actions on your machine without GitHub. Here GitHub still runs the show; your machine only does the work.</p><h3>Before you start: get the key to the building</h3><ul><li><strong>Permission.</strong> For a personal repository you must be its owner. For an organisation repository you need to be an organisation owner or a repository admin (<a href="https://docs.github.com/en/actions/how-tos/manage-runners/self-hosted-runners/add-runners">GitHub’s docs</a>).</li><li><strong>No permission? Ask for a token.</strong> Someone who has it opens Settings → Actions → Runners → New self-hosted runner and sends you the token. It expires after one hour. Treat it like a password.</li><li><strong>A private repository.</strong> GitHub itself recommends using self-hosted runners only with private ones.</li><li><strong>A computer that stays awake</strong> while it works.</li></ul><h3>Check your freelancer’s pockets</h3><p>Our hello job asked what it could see:</p><pre>READABLE     : .ssh<br>READABLE     : .config/gh</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y6YCdhb_CYonCGBdSvVYVw.png" /></figure><p>It only checked permissions and opened nothing. A malicious or buggy job would not be so polite.</p><ul><li><strong>Private repositories only.</strong> On a public one, a stranger’s pull request can run code on your machine.</li><li><strong>No secrets.</strong> Keep release and signing workflows on GitHub’s machines, which are thrown away after each job.</li><li><strong>Least privilege.</strong> permissions: contents: read, and no pull_request trigger.</li><li><strong>Pin actions to commit SHAs.</strong> A tag like v4 can move, and whatever it points to runs as you.</li><li><strong>Better still, give it its own room:</strong> a separate user account or a virtual machine.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W2PnSomfoyEdoLpS1sUjgg.png" /></figure><h3>Step 1: Open the paperwork</h3><p>In your repository, go to <strong>Settings → Actions → Runners → New self-hosted runner</strong>. Pick your operating system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yNZzS7bUN5WeNl4SjwI9Kg.png" /></figure><p><em>1: Runners in the sidebar. 2: the button you want.</em></p><p><strong>You should see:</strong> a <em>Download</em> block, a <em>Configure</em> block and your token.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_5Tt0iyh9KiVFApyj0sejA.png" /></figure><p><em>At 1, pick your system and your chip. 2, 3 and 4 are Steps 2, 3 and 4 below. Apple silicon Macs need ARM64, not the x64 shown here.</em></p><h3>Step 2: Download and check the parcel</h3><p>Make a folder and paste the page’s <em>Download</em> block into it. It looks like this:</p><pre>mkdir actions-runner &amp;&amp; cd actions-runner<br>curl -o runner.tar.gz -L &lt;URL from the page&gt;<br>echo &quot;&lt;hash from the page&gt;  runner.tar.gz&quot; | shasum -a 256 -c<br>tar xzf ./runner.tar.gz</pre><p><strong>You should see:</strong> runner.tar.gz: OK. Anything else: delete the file and download again.</p><h3>Step 3: Sign the contract</h3><pre>./config.sh --url https://github.com/&lt;owner&gt;/&lt;repo&gt; --token &lt;TOKEN&gt; \<br>  --name my-laptop --ephemeral --unattended</pre><ul><li>--name: what the Runners page calls it.</li><li>--ephemeral: one job, then it unregisters itself. A forgotten runner can&#39;t keep accepting work.</li><li>--unattended: no questions asked.</li></ul><p><strong>You should see:</strong> Connected to GitHub, then Runner successfully added.</p><h3>Step 4: Clock in</h3><pre>caffeinate -i ./run.sh</pre><p>caffeinate stops a Mac from napping on the job. On Linux, ./run.sh is enough.</p><p><strong>You should see:</strong> Connected to GitHub and Listening for Jobs. Leave the terminal open.</p><h3>Step 5: Give it a first job</h3><p>Save this as .github/workflows/hello.yml and push it to your default branch:</p><pre>name: Hello<br>on: workflow_dispatch<br>jobs:<br>  hello:<br>    runs-on: self-hosted<br>    steps:<br>      - run: echo &quot;hello from $(hostname -s)&quot;</pre><p>The only difference from a hosted job is the runs-on line. Now go to <strong>Actions → Hello → Run workflow</strong>.</p><p><strong>You should see</strong>, in your terminal:</p><pre>Running job: hello<br>Job hello completed with result: Succeeded<br>√ Removed .credentials<br>√ Removed .runner</pre><p>Ours started 5 seconds after the runner began listening. Stuck on <em>Queued</em>? Check that run.sh is still running.</p><p><strong>One tag is enough.</strong> self-hosted means &quot;one of my machines&quot;, and it&#39;s what GitHub&#39;s own setup page suggests. GitHub also tags every runner with its operating system and chip. You only need more than one tag to pick between several machines: a job that lists <a href="https://docs.github.com/en/actions/how-tos/manage-runners/self-hosted-runners/use-in-a-workflow">several labels</a> needs a runner that has all of them.</p><h3>Step 6: Let it go</h3><p>With --ephemeral, the runner has already unregistered itself. The files stay behind. Delete the folder:</p><pre>cd .. &amp;&amp; rm -rf actions-runner</pre><p>For a runner you keep, drop --ephemeral and run it as a service (on a Mac, only while you are logged in):</p><pre>./svc.sh install &amp;&amp; ./svc.sh start</pre><p>To retire that one, run ./svc.sh stop, then ./svc.sh uninstall, then ./config.sh remove --token &lt;REMOVAL_TOKEN&gt;. Remove it on GitHub too, or a ghost runner stays on the page and jobs queue behind it.</p><h3>What surprised us</h3><p><strong>The first question isn’t your name.</strong> Without --unattended, the first prompt asks for a runner <em>group</em>. We typed our runner&#39;s name there and got Could not find any self-hosted runner group named &quot;mac-learning&quot;.</p><p><strong>It gets hired fast.</strong> Four times out of four, a runner picked up a waiting job within 4 to 5 seconds of coming online.</p><p><strong>Jobs are patient.</strong> We gave three jobs to two one-shot runners. The third waited at least 46 minutes until we hired a runner again. It was not cancelled. GitHub only gives up after <a href="https://docs.github.com/en/actions/reference/limits">24 hours</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*njyXCJw73qfqXR0GtOQXGw.png" /></figure><p><strong>--ephemeral removes the registration, not the mess.</strong> One job left 322 MB behind in the runner&#39;s folder, almost all of it a copy of the repository.</p><p><strong>It brings your habits to work.</strong> The job ran under Homebrew’s bash, and actions/checkout copied our real ~/.gitconfig. A GitHub-hosted machine starts clean; yours does not.</p><h3>Should you hire your laptop?</h3><p><strong>Yes, if</strong> the job needs something you already own: an emulator, a phone, a big cache, a special tool.</p><p><strong>No, if</strong> the repository is public, the job holds secrets, or you need a spotless machine every time.</p><p><strong>Cost:</strong> GitHub’s <a href="https://docs.github.com/en/billing/concepts/product-billing/github-actions">billing page</a> lists self-hosted runner usage as free (checked 26 Nov 2026). Your electricity is not covered.</p><p>Your laptop has now had a job. So far it hasn’t asked for a raise. Next, in Part 2, we give it real work: Maestro UI tests on an Android emulator.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=345cc377af29" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>