Event
push
Branch
main
Commit
4143f98
Started
Duration
5:57

Synced from GitHub

Linux packages

SuccessTook 2:05

Annotations

  • warning:

    Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4, actions/setup-go@v5, actions/setup-node@v4, actions/upload-artifact@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

  • warning:

    Restore cache failed: Dependencies file is not found in /home/runner/work/screen-time/screen-time. Supported file pattern: go.sum

  • notice:

    "The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"

Steps

  1. 1Set up job, Success0:01
  2. 2Run actions/checkout@v4, Success0:01
  3. 3Run actions/setup-node@v4, Success0:03
  4. 4Run actions/setup-go@v5, Success0:07
  5. 5Install X11 tools, Success0:15
  6. 6Install dependencies, Success0:06
  7. 7Run the tracker tests, Success0:00
  8. 8Run backend tests, Success0:14
  9. 9Smoke-check the X11 reader, Success0:07
  10. 10Stamp the version, Success0:00
  11. 11Build the packages, Success0:57
  12. 12Upload the build, Success0:09
  13. 22Post Run actions/setup-go@v5, Success0:00
  14. 23Post Run actions/setup-node@v4, Success0:01
  15. 24Post Run actions/checkout@v4, Success0:00
  16. 25Complete job, Success0:00
Whole log, 45 KB
Current runner version: '2.338.0'
▸ Runner Image Provisioner
Hosted Compute Agent
Version: 20261021.618
Commit: 21505ad2541d5be6135ed84fc33697146cf75b8e
Build Date: 2026-10-21T00:45:21Z
Worker ID: {8d8732d1-2d4b-42c2-93f5-7ea03aa90ad4}
Region: westus
Cloud: Azure
▸ Operating System
Ubuntu
26.04.1
LTS
▸ Runner Image
Image: ubuntu-26.04
Version: 20261025.179.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu26/20261025.179/images/ubuntu/Ubuntu2604-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu26%2F20261025.179
▸ GITHUB_TOKEN Permissions
Contents: write
Metadata: read
Secret source: Actions
Cache mode: write
Prepare workflow directory
Prepare all required actions
Getting action download info
Download action repository 'actions/checkout@v4' (SHA:11d5960a326750d5838078e36cf38b85af677262)
Download action repository 'actions/setup-node@v4' (SHA:49933ea5288caeca8642d1e84afbd3f7d6820020)
Download action repository 'actions/setup-go@v5' (SHA:40f1582b2485089dde7abd97c1529aa768e1baff)
Download action repository 'actions/upload-artifact@v4' (SHA:ea165f8d65b6e75b540449e92b4886f43607fa02)
Complete job name: Linux packages
▸ Run actions/checkout@v4
with:
  repository: screen-gd/screen-time
  token: ***
  ssh-strict: true
  ssh-user: git
  persist-credentials: true
  clean: true
  sparse-checkout-cone-mode: true
  fetch-depth: 1
  fetch-tags: false
  show-progress: true
  lfs: false
  submodules: false
  set-safe-directory: true
  allow-unsafe-pr-checkout: false
Syncing repository: screen-gd/screen-time
▸ Getting Git version info
Working directory is '/home/runner/work/screen-time/screen-time'
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/39ad896f-92ec-416c-aa52-3c349caedc9d' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/screen-time/screen-time
Deleting the contents of '/home/runner/work/screen-time/screen-time'
▸ Initializing the repository
[command]/usr/bin/git init /home/runner/work/screen-time/screen-time
hint: Using 'master' as the name for the initial branch. This default branch name
hint: will change to "main" in Git 3.0. To configure the initial branch name
hint: to use in all of your new repositories, which will suppress this warning,
hint: call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
hint:
hint: Disable this message with "git config set advice.defaultBranchName false"
Initialized empty Git repository in /home/runner/work/screen-time/screen-time/.git/
[command]/usr/bin/git remote add origin https://github.com/screen-gd/screen-time
▸ Disabling automatic garbage collection
[command]/usr/bin/git config --local gc.auto 0
▸ Setting up auth
[command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
[command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf\.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
[command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
▸ Fetching the repository
[command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +4143f98e98c28922be53294862a4e315bf3ab946:refs/remotes/origin/main
From https://github.com/screen-gd/screen-time
 * [new ref]         4143f98e98c28922be53294862a4e315bf3ab946 -> origin/main
▸ Determining the checkout info
[command]/usr/bin/git sparse-checkout disable
[command]/usr/bin/git config --local --unset-all extensions.worktreeConfig
▸ Checking out the ref
[command]/usr/bin/git checkout --progress --force -B main refs/remotes/origin/main
Switched to a new branch 'main'
branch 'main' set up to track 'origin/main'.
[command]/usr/bin/git log -1 --format=%H
4143f98e98c28922be53294862a4e315bf3ab946
▸ Run actions/setup-node@v4
with:
  node-version: 22
  cache: npm
  always-auth: false
  check-latest: false
  token: ***
Found in cache @ /opt/hostedtoolcache/node/22.23.4/x64
(node:2343) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
▸ Environment details
(Use `node --trace-deprecation ...` to show where the warning was created)
node: v22.23.4
npm: 10.9.9
yarn: 1.22.22
[command]/opt/hostedtoolcache/node/22.23.4/x64/bin/npm config get cache
/home/runner/.npm
Cache hit for: node-cache-Linux-x64-npm-ae65805408a9f10330f7a50ee5010a116877f2befe0e814f519980bbee6620a5
(node:2343) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
Received 12582912 of 43377413 (29.0%), 12.0 MBs/sec
Received 43377413 of 43377413 (100.0%), 32.5 MBs/sec
Cache Size: ~41 MB (43377413 B)
[command]/usr/bin/tar -xf /home/runner/work/_temp/ac57ea74-b803-4429-9f4e-0a71bee9d6bf/cache.tzst -P -C /home/runner/work/screen-time/screen-time --use-compress-program unzstd
Cache restored successfully
Cache restored from key: node-cache-Linux-x64-npm-ae65805408a9f10330f7a50ee5010a116877f2befe0e814f519980bbee6620a5
▸ Run actions/setup-go@v5
with:
  go-version: 1.23
  check-latest: false
  token: ***
  cache: true
Setup go version spec 1.23
Attempting to download 1.23...
(node:2392) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
matching 1.23...
Acquiring 1.23.12 from https://github.com/actions/go-versions/releases/download/1.23.12-16792118003/go-1.23.12-linux-x64.tar.gz
Extracting Go...
[command]/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /home/runner/work/_temp/bac55690-bdec-4018-a044-37742f6195f6 -f /home/runner/work/_temp/c933bd13-47f8-4725-877a-fa1489f8709d
Successfully extracted go to /home/runner/work/_temp/bac55690-bdec-4018-a044-37742f6195f6
Adding to the cache ...
Successfully cached go to /opt/hostedtoolcache/go/1.23.12/x64
Added go to the path
Successfully set up Go version 1.23
[command]/opt/hostedtoolcache/go/1.23.12/x64/bin/go env GOMODCACHE
[command]/opt/hostedtoolcache/go/1.23.12/x64/bin/go env GOCACHE
/home/runner/go/pkg/mod
/home/runner/.cache/go-build
Warning: Restore cache failed: Dependencies file is not found in /home/runner/work/screen-time/screen-time. Supported file pattern: go.sum
go version go1.23.12 linux/amd64

▸ go env
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/home/runner/.cache/go-build'
GOENV='/home/runner/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/runner/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/runner/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/opt/hostedtoolcache/go/1.23.12/x64'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/opt/hostedtoolcache/go/1.23.12/x64/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.23.12'
GODEBUG=''
GOTELEMETRY='local'
GOTELEMETRYDIR='/home/runner/.config/go/telemetry'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/dev/null'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build3561346718=/tmp/go-build -gno-record-gcc-switches'

▸ Run sudo apt-get update && sudo apt-get install -y xvfb xterm x11-utils xdotool xfonts-base
sudo apt-get update && sudo apt-get install -y xvfb xterm x11-utils xdotool xfonts-base
shell: /usr/bin/bash -e {0}
Get:1 file:/etc/apt/apt-mirrors.txt Mirrorlist [144 B]
Get:6 https://packages.microsoft.com/ubuntu/26.04/prod resolute InRelease [3964 B]
Hit:2 http://azure.archive.ubuntu.com/ubuntu resolute InRelease
Get:7 https://packages.microsoft.com/ubuntu/26.04/prod resolute/main amd64 Packages [127 kB]
Get:3 http://azure.archive.ubuntu.com/ubuntu resolute-updates InRelease [137 kB]
Get:4 http://azure.archive.ubuntu.com/ubuntu resolute-backports InRelease [137 kB]
Get:5 http://azure.archive.ubuntu.com/ubuntu resolute-security InRelease [137 kB]
Get:8 https://packages.microsoft.com/ubuntu/26.04/prod resolute/main arm64 Packages [116 kB]
Get:9 http://azure.archive.ubuntu.com/ubuntu resolute-updates/main amd64v3 Packages [794 kB]
Get:10 http://azure.archive.ubuntu.com/ubuntu resolute-updates/main Translation-en [183 kB]
Get:11 http://azure.archive.ubuntu.com/ubuntu resolute-updates/universe amd64v3 Packages [335 kB]
Get:12 http://azure.archive.ubuntu.com/ubuntu resolute-updates/universe Translation-en [111 kB]
Get:13 http://azure.archive.ubuntu.com/ubuntu resolute-updates/restricted amd64v3 Packages [543 kB]
Get:14 http://azure.archive.ubuntu.com/ubuntu resolute-updates/restricted Translation-en [112 kB]
Get:15 http://azure.archive.ubuntu.com/ubuntu resolute-security/main amd64v3 Packages [608 kB]
Get:16 http://azure.archive.ubuntu.com/ubuntu resolute-security/main Translation-en [141 kB]
Get:17 http://azure.archive.ubuntu.com/ubuntu resolute-security/universe amd64v3 Packages [206 kB]
Get:18 http://azure.archive.ubuntu.com/ubuntu resolute-security/universe Translation-en [67.9 kB]
Fetched 3758 kB in 0s (11.1 MB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
xvfb is already the newest version (2:21.1.22-1ubuntu1.3).
Solving dependencies...
The following additional packages will be installed:
  libutempter0 libxcb-shape0 libxdo3 libxv1 libxxf86dga1 luit xbitmaps
  xfonts-encodings xfonts-utils
Suggested packages:
  mesa-utils xfonts-cyrillic
The following NEW packages will be installed:
  libutempter0 libxcb-shape0 libxdo3 libxv1 libxxf86dga1 luit x11-utils
  xbitmaps xdotool xfonts-base xfonts-encodings xfonts-utils xterm
0 upgraded, 13 newly installed, 0 to remove and 15 not upgraded.
Need to get 7902 kB of archives.
After this operation, 12.5 MB of additional disk space will be used.
Get:1 file:/etc/apt/apt-mirrors.txt Mirrorlist [144 B]
Get:2 http://azure.archive.ubuntu.com/ubuntu resolute/main amd64v3 libutempter0 amd64 1.2.1-4build1 [9768 B]
Get:3 http://azure.archive.ubuntu.com/ubuntu resolute/main amd64v3 libxcb-shape0 amd64 1.17.0-2ubuntu1 [6196 B]
Get:4 http://azure.archive.ubuntu.com/ubuntu resolute/main amd64v3 libxv1 amd64 2:1.0.13-1 [11.0 kB]
Get:5 http://azure.archive.ubuntu.com/ubuntu resolute/main amd64v3 libxxf86dga1 amd64 2:1.1.5-1build2 [12.0 kB]
Get:6 http://azure.archive.ubuntu.com/ubuntu resolute/main amd64v3 luit amd64 2.0.20250912-1 [41.8 kB]
Get:7 http://azure.archive.ubuntu.com/ubuntu resolute/main amd64v3 x11-utils amd64 7.7+7build1 [192 kB]
Get:8 http://azure.archive.ubuntu.com/ubuntu resolute/universe amd64v3 xbitmaps all 1.1.1-2.2build1 [22.3 kB]
Get:9 http://azure.archive.ubuntu.com/ubuntu resolute/main amd64v3 xfonts-encodings all 1:1.0.5-0ubuntu3 [576 kB]
Get:10 http://azure.archive.ubuntu.com/ubuntu resolute/main amd64v3 xfonts-utils amd64 1:7.7+7build1 [97.3 kB]
Get:11 http://azure.archive.ubuntu.com/ubuntu resolute/main amd64v3 xfonts-base all 1:1.0.5+nmu1build1 [5940 kB]
Get:12 http://azure.archive.ubuntu.com/ubuntu resolute/universe amd64v3 xterm amd64 407-1ubuntu1 [928 kB]
Get:13 http://azure.archive.ubuntu.com/ubuntu resolute/universe amd64v3 libxdo3 amd64 1:3.20160805.1-5.1build1 [22.6 kB]
Get:14 http://azure.archive.ubuntu.com/ubuntu resolute/universe amd64v3 xdotool amd64 1:3.20160805.1-5.1build1 [43.1 kB]
Fetched 7902 kB in 6s (1249 kB/s)
Selecting previously unselected package libutempter0:amd64.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 212715 files and directories currently installed.)
Preparing to unpack .../00-libutempter0_1.2.1-4build1_amd64v3.deb ...
Unpacking libutempter0:amd64 (1.2.1-4build1) ...
Selecting previously unselected package libxcb-shape0:amd64.
Preparing to unpack .../01-libxcb-shape0_1.17.0-2ubuntu1_amd64v3.deb ...
Unpacking libxcb-shape0:amd64 (1.17.0-2ubuntu1) ...
Selecting previously unselected package libxv1:amd64.
Preparing to unpack .../02-libxv1_2%3a1.0.13-1_amd64v3.deb ...
Unpacking libxv1:amd64 (2:1.0.13-1) ...
Selecting previously unselected package libxxf86dga1:amd64.
Preparing to unpack .../03-libxxf86dga1_2%3a1.1.5-1build2_amd64v3.deb ...
Unpacking libxxf86dga1:amd64 (2:1.1.5-1build2) ...
Selecting previously unselected package luit.
Preparing to unpack .../04-luit_2.0.20250912-1_amd64v3.deb ...
Adding 'diversion of /usr/bin/luit to /usr/bin/luit.x11-utils by luit'
Adding 'diversion of /usr/share/man/man1/luit.1.gz to /usr/share/man/man1/luit.x11-utils.1.gz by luit'
Unpacking luit (2.0.20250912-1) ...
Selecting previously unselected package x11-utils.
Preparing to unpack .../05-x11-utils_7.7+7build1_amd64v3.deb ...
Unpacking x11-utils (7.7+7build1) ...
Selecting previously unselected package xbitmaps.
Preparing to unpack .../06-xbitmaps_1.1.1-2.2build1_all.deb ...
Unpacking xbitmaps (1.1.1-2.2build1) ...
Selecting previously unselected package xfonts-encodings.
Preparing to unpack .../07-xfonts-encodings_1%3a1.0.5-0ubuntu3_all.deb ...
Unpacking xfonts-encodings (1:1.0.5-0ubuntu3) ...
Selecting previously unselected package xfonts-utils.
Preparing to unpack .../08-xfonts-utils_1%3a7.7+7build1_amd64v3.deb ...
Unpacking xfonts-utils (1:7.7+7build1) ...
Selecting previously unselected package xfonts-base.
Preparing to unpack .../09-xfonts-base_1%3a1.0.5+nmu1build1_all.deb ...
Unpacking xfonts-base (1:1.0.5+nmu1build1) ...
Selecting previously unselected package xterm.
Preparing to unpack .../10-xterm_407-1ubuntu1_amd64v3.deb ...
Unpacking xterm (407-1ubuntu1) ...
Selecting previously unselected package libxdo3:amd64.
Preparing to unpack .../11-libxdo3_1%3a3.20160805.1-5.1build1_amd64v3.deb ...
Unpacking libxdo3:amd64 (1:3.20160805.1-5.1build1) ...
Selecting previously unselected package xdotool.
Preparing to unpack .../12-xdotool_1%3a3.20160805.1-5.1build1_amd64v3.deb ...
Unpacking xdotool (1:3.20160805.1-5.1build1) ...
Setting up luit (2.0.20250912-1) ...
Setting up libxcb-shape0:amd64 (1.17.0-2ubuntu1) ...
Setting up libxxf86dga1:amd64 (2:1.1.5-1build2) ...
Setting up libxdo3:amd64 (1:3.20160805.1-5.1build1) ...
Setting up xfonts-encodings (1:1.0.5-0ubuntu3) ...
Setting up libxv1:amd64 (2:1.0.13-1) ...
Setting up libutempter0:amd64 (1.2.1-4build1) ...
Setting up x11-utils (7.7+7build1) ...
Setting up xbitmaps (1.1.1-2.2build1) ...
Setting up xdotool (1:3.20160805.1-5.1build1) ...
Setting up xfonts-utils (1:7.7+7build1) ...
Setting up xfonts-base (1:1.0.5+nmu1build1) ...
Setting up xterm (407-1ubuntu1) ...
update-alternatives: using /usr/bin/xterm to provide /usr/bin/x-terminal-emulator (x-terminal-emulator) in auto mode
update-alternatives: using /usr/bin/lxterm to provide /usr/bin/x-terminal-emulator (x-terminal-emulator) in auto mode
Processing triggers for hicolor-icon-theme (0.18-2build1) ...
Processing triggers for libc-bin (2.43-2ubuntu2.4) ...
Processing triggers for man-db (2.13.1-1build1) ...
Not building database; man-db/auto-update is not 'true'.
Processing triggers for fontconfig (2.17.1-3ubuntu1) ...

Running kernel seems to be up-to-date.

Restarting services...

Service restarts being deferred:
 systemctl restart hosted-compute-agent.service

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
▸ Run npm ci
npm ci
shell: /usr/bin/bash -e {0}
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated rimraf@2.6.3: Rimraf versions prior to v4 are no longer supported
npm warn deprecated lodash.isequal@4.5.0: This package is deprecated. Use require('node:util').isDeepStrictEqual instead.
npm warn deprecated glob@7.2.3: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me
npm warn deprecated boolean@3.2.0: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

added 291 packages, and audited 292 packages in 6s

48 packages are looking for funding
  run `npm fund` for details

1 high severity vulnerability

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
▸ Run npm test
npm test
shell: /usr/bin/bash -e {0}

> tally-screen-time@1.2.2 test
> node scripts/tracker-test.js

ok   input credits every sample
ok   idle without media credits nothing
ok   media in the front app keeps counting while idle
ok   background media does not hold the clock
ok   media starting after a pause credits one sample, not the gap
ok   media stopping returns to idle
ok   two hours of untouched media ends the run
ok   the media ceiling is a setting, and never is allowed
ok   a shorter ceiling stops media sooner
ok   the reason follows the desk
ok   paused and sleep both say so
ok   a full-screen app counts as in use
ok   a sleep gap is never credited
ok   pausing stops credit and idle resumes it
ok   suspending clears the timer
ok   identify reads macOS apps by bundle id
ok   identify reads Linux executables
ok   rootsFor lays out each OS
ok   an unsupported platform says why

all tracker rules hold
▸ Run go test ./...
go test ./...
shell: /usr/bin/bash -e {0}
?   	github.com/screen-gd/screen-time/backend/cmd/tally-backend	[no test files]
ok  	github.com/screen-gd/screen-time/backend/internal/server	0.006s
ok  	github.com/screen-gd/screen-time/backend/internal/store	0.003s
▸ Run Xvfb :99 -screen 0 1280x800x24 &
Xvfb :99 -screen 0 1280x800x24 &
export DISPLAY=:99
sleep 1
xterm -T tally-smoke 2>/tmp/xterm-err.log &
xterm_pid=$!
id=""
for i in $(seq 1 20); do
  # xdotool exits 1 while no window matches; without '|| true',
  # pipefail + -e would abort the step on the first empty search.
  # Search by pid (_NET_WM_PID) first, then by the -T window name.
  id=$(xdotool search --pid "$xterm_pid" | head -n 1 || true)
  if [ -z "$id" ]; then
    id=$(xdotool search --name tally-smoke | head -n 1 || true)
  fi
  [ -n "$id" ] && break
  sleep 0.5
done
if [ -z "$id" ]; then
  echo "::error::xterm never appeared on Xvfb"
  cat /tmp/xterm-err.log || true
  xwininfo -root -tree || true
  exit 1
fi
# xprop's format letter picks the property type: 'a' would set an
# ATOM (and intern "$id" as an atom name); 'c' stores the numeric
# value as a 32-bit CARDINAL, which is what readers expect. The pid
# is set explicitly so the check doesn't depend on xterm publishing it.
xprop -id "$id" -f _NET_WM_PID 32c -set _NET_WM_PID "$xterm_pid"
xprop -root -f _NET_ACTIVE_WINDOW 32c -set _NET_ACTIVE_WINDOW "$id"
xprop -root _NET_ACTIVE_WINDOW
xprop -id "$id" _NET_WM_PID WM_NAME
XDG_SESSION_TYPE=x11 npm run check -- --expect xterm
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
_NET_ACTIVE_WINDOW(CARDINAL) = 2097164
_NET_WM_PID(CARDINAL) = 5266
WM_NAME(STRING) = "tally-smoke"

> tally-screen-time@1.2.2 check
> node scripts/koffi-test.js --expect xterm

platform     linux
support      yes
title        runner@runnervmnwato: ~/work/screen-time/screen-time
process      /usr/bin/xterm pid 5266
app id       (none)
idle         0 s since the last keyboard or mouse input
media        addon missing - idle falls back to keyboard and mouse alone
front app    is not playing media
full screen  no
expect       matched 'xterm'
▸ Run npm version "1.2.7" --no-git-tag-version --allow-same-version
npm version "1.2.7" --no-git-tag-version --allow-same-version
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
v1.2.7
▸ Run npm run dist:linux
npm run dist:linux
shell: /usr/bin/bash -e {0}
env:
  CSC_IDENTITY_AUTO_DISCOVERY: false

> tally-screen-time@1.2.7 dist:linux
> node scripts/build-native.js && npm run backend:build && electron-builder --linux --publish never

[tally] media sessions are Windows-only; skipping the native build

> tally-screen-time@1.2.7 backend:build
> node scripts/build-backend.js

[tally] backend written to /home/runner/work/screen-time/screen-time/backend/tally-backend
  • electron-builder  version=26.18.0 os=7.0.0-1017-azure
  • loaded configuration  file=package.json ("build" field)
  • executing @electron/rebuild  electronVersion=40.10.6 arch=x64 buildFromSource=false workspaceRoot=/home/runner/work/screen-time/screen-time projectDir=./ appDir=./
  • installing native dependencies  arch=x64
  • completed installing native dependencies
  • packaging       platform=linux arch=x64 electron=40.10.6 appOutDir=dist/linux-unpacked
  • downloaded      label=electron progress=100%
  • downloaded electron zip extracted successfully  output=/home/runner/work/screen-time/screen-time/dist/linux-unpacked
  • searching for node modules  pm=npm searchDir=/home/runner/work/screen-time/screen-time
  • building        target=AppImage arch=x64 file=dist/Tally-1.2.7-linux-x86_64.AppImage
  • electron uses desktopName as app_id / WM_CLASS for window association. Without it desktop environments may not link running windows to this .desktop entry. Set desktopName in package.json and linux.syncDesktopName: true to fix.  reason=desktopName is not set in package.json docs=https://www.electron.build/linux#window-association-desktopname--syncdesktopname
  • downloaded      label=appimage-12.0.1.7z progress=100%
  • downloaded      label=7zip-linux-x64.tar.gz progress=100%
  • building embedded block map  file=dist/Tally-1.2.7-linux-x86_64.AppImage
  • building        target=deb arch=x64 file=dist/Tally-1.2.7-linux-amd64.deb
  • adding autoupdate files for: deb  resourceDir=dist/linux-unpacked/resources
  • electron uses desktopName as app_id / WM_CLASS for window association. Without it desktop environments may not link running windows to this .desktop entry. Set desktopName in package.json and linux.syncDesktopName: true to fix.  reason=desktopName is not set in package.json docs=https://www.electron.build/linux#window-association-desktopname--syncdesktopname
  • downloaded      label=fpm-1.17.0-ruby-3.4.3-linux-amd64.7z progress=100%
▸ Run actions/upload-artifact@v4
with:
  name: linux
  path: dist/*.AppImage
dist/*.deb
dist/latest-linux.yml

  if-no-files-found: error
  compression-level: 6
  overwrite: false
  include-hidden-files: false
(node:6864) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
With the provided path, there will be 3 files uploaded
Artifact name is valid!
Root directory input is valid!
Beginning upload of artifact content to blob storage
(node:6864) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
Uploaded bytes 8388608
Uploaded bytes 16777216
Uploaded bytes 25165824
Uploaded bytes 33554432
Uploaded bytes 41943040
Uploaded bytes 50331648
Uploaded bytes 58720256
Uploaded bytes 67108864
Uploaded bytes 75497472
Uploaded bytes 83886080
Uploaded bytes 92274688
Uploaded bytes 100663296
Uploaded bytes 109051904
Uploaded bytes 117440512
Uploaded bytes 125829120
Uploaded bytes 134217728
Uploaded bytes 142606336
Uploaded bytes 150994944
Uploaded bytes 159383552
Uploaded bytes 167772160
Uploaded bytes 176160768
Uploaded bytes 184549376
Uploaded bytes 192937984
Uploaded bytes 201326592
Uploaded bytes 209715200
Uploaded bytes 218103808
Uploaded bytes 226492416
Uploaded bytes 234881024
Uploaded bytes 243269632
Uploaded bytes 251658240
Uploaded bytes 253445907
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact zip is 2d1fb3b298a88e3d56bf02be6e471fdcd74e8588812f681ca69d0891ec1bd9ad
Finalizing artifact upload
Artifact linux.zip successfully finalized. Artifact ID 12862295799
Artifact linux has been successfully uploaded! Final size is 253445907 bytes. Artifact ID is 12862295799
Artifact download URL: https://github.com/screen-gd/screen-time/actions/runs/40791284296/artifacts/12862295799
Post job cleanup.
(node:6879) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
[command]/opt/hostedtoolcache/go/1.23.12/x64/bin/go env GOMODCACHE
[command]/opt/hostedtoolcache/go/1.23.12/x64/bin/go env GOCACHE
/home/runner/go/pkg/mod
/home/runner/.cache/go-build
[warning]Cache folder path is retrieved but doesn't exist on disk: /home/runner/go/pkg/mod
Primary key was not generated. Please check the log messages above for more errors or information
Post job cleanup.
(node:6901) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Cache hit occurred on the primary key node-cache-Linux-x64-npm-ae65805408a9f10330f7a50ee5010a116877f2befe0e814f519980bbee6620a5, not saving cache.
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/f74a7fed-7232-4795-a736-6a3be6e6db0d' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/screen-time/screen-time
[command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
[command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
http.https://github.com/.extraheader
[command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf\.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes
Terminate orphan process: pid (5262) (Xvfb)
Terminate orphan process: pid (5266) (xterm)
Warning: Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4, actions/setup-go@v5, actions/setup-node@v4, actions/upload-artifact@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/