Skip to content

perf(time): cache parsed relative time strings - #1052

Open
marco-c wants to merge 1 commit into
taskcluster:mainfrom
marco-c:cache_time_strings
Open

marco-c wants to merge 1 commit into
taskcluster:mainfrom
marco-c:cache_time_strings

perf(time): cache parsed relative time strings

d7301de
Select commit
Loading
Failed to load commit list.
firefoxci-taskcluster / pre-commit-v1 succeeded Sep 29, 2026 in 4s

FirefoxCI (pull_request)

Run pre-commit checks

Details

View task in Taskcluster | View logs in Taskcluster | View task group in Taskcluster

Task Status

Started: 2026-09-29T13:40:26.154Z
Resolved: 2026-09-29T13:40:30.374Z
Task Execution Time: 4 seconds, 220 milliseconds
Task Status: completed
Reason Resolved: completed
TaskId: Gdnb3nJKRIif_GP4IhsQHw
RunId: 0

Artifacts

- public/logs/live_backing.log (10.9 KB)
- public/logs/live.log


[taskcluster 2026-09-29T13:40:26.667Z] Worker Type (mozilla-t/pre-commit) settings:
[taskcluster 2026-09-29T13:40:26.667Z]   {
[taskcluster 2026-09-29T13:40:26.667Z]     "generic-worker": {
[taskcluster 2026-09-29T13:40:26.667Z]       "config": {
[taskcluster 2026-09-29T13:40:26.667Z]         "capacity": 1,
[taskcluster 2026-09-29T13:40:26.667Z]         "headlessTasks": true
[taskcluster 2026-09-29T13:40:26.667Z]       },
[taskcluster 2026-09-29T13:40:26.667Z]       "engine": "multiuser",
[taskcluster 2026-09-29T13:40:26.667Z]       "go-arch": "amd64",
[taskcluster 2026-09-29T13:40:26.667Z]       "go-os": "linux",
[taskcluster 2026-09-29T13:40:26.667Z]       "go-version": "go1.27.1",
[taskcluster 2026-09-29T13:40:26.667Z]       "release": "https://github.com/taskcluster/taskcluster/releases/tag/v110.1.0",
[taskcluster 2026-09-29T13:40:26.667Z]       "revision": "8522ee4ea64acdb407128264f3b3b56a2e24c2d9",
[taskcluster 2026-09-29T13:40:26.667Z]       "source": "https://github.com/taskcluster/taskcluster/commits/8522ee4ea64acdb407128264f3b3b56a2e24c2d9",
[taskcluster 2026-09-29T13:40:26.667Z]       "version": "110.1.0"
[taskcluster 2026-09-29T13:40:26.667Z]     },
[taskcluster 2026-09-29T13:40:26.667Z]     "image": "projects/taskcluster-imaging/global/images/gw-fxci-gcp-l1-2404-amd64-headless-googlecompute-2026-09-23",
[taskcluster 2026-09-29T13:40:26.667Z]     "instance-id": "6595689113785431574",
[taskcluster 2026-09-29T13:40:26.667Z]     "instance-type": "projects/887720501152/machineTypes/c3d-standard-4",
[taskcluster 2026-09-29T13:40:26.667Z]     "local-ipv4": "10.138.0.15",
[taskcluster 2026-09-29T13:40:26.667Z]     "project-id": "fxci-production-level1-workers",
[taskcluster 2026-09-29T13:40:26.667Z]     "public-hostname": "mozilla-t-pre-commit-rnrdfel5t46apgt-hlh3pq.c.fxci-production-level1-workers.internal",
[taskcluster 2026-09-29T13:40:26.667Z]     "public-ipv4": "136.109.59.246",
[taskcluster 2026-09-29T13:40:26.667Z]     "region": "us-west1",
[taskcluster 2026-09-29T13:40:26.667Z]     "zone": "us-west1-b"
[taskcluster 2026-09-29T13:40:26.667Z]   }
[taskcluster 2026-09-29T13:40:26.667Z] Task ID: Gdnb3nJKRIif_GP4IhsQHw
[taskcluster 2026-09-29T13:40:26.667Z] === Task Starting ===
[taskcluster 2026-09-29T13:40:27.402Z] [mounts] Moving existing writable directory cache lint-pre-commit-uv-v1 from /home/generic-worker/caches/fqZV8EHTTL-a8VLNMZL0Tw to /home/task_Gdnb3nJKRIif__0/cache0
[taskcluster 2026-09-29T13:40:27.402Z] [mounts] Creating directory /home/task_Gdnb3nJKRIif__0
[taskcluster 2026-09-29T13:40:27.413Z] [mounts] Successfully mounted writable directory cache '/home/task_Gdnb3nJKRIif__0/cache0'
[taskcluster 2026-09-29T13:40:27.413Z] [mounts] Moving existing writable directory cache lint-pre-commit-repos-v1 from /home/generic-worker/caches/BOLsjOxmRjy9yBssW_Mi1w to /home/task_Gdnb3nJKRIif__0/cache1
[taskcluster 2026-09-29T13:40:27.413Z] [mounts] Creating directory /home/task_Gdnb3nJKRIif__0
[taskcluster 2026-09-29T13:40:27.423Z] [mounts] Successfully mounted writable directory cache '/home/task_Gdnb3nJKRIif__0/cache1'
[taskcluster 2026-09-29T13:40:27.423Z] [mounts] Moving existing writable directory cache lint-pre-commit-checkout-taskcluster-taskgraph-v1 from /home/generic-worker/caches/SIUtA_oSRzCw8fez-j2oHA to /home/task_Gdnb3nJKRIif__0/cache2
[taskcluster 2026-09-29T13:40:27.423Z] [mounts] Creating directory /home/task_Gdnb3nJKRIif__0
[taskcluster 2026-09-29T13:40:27.433Z] [mounts] Successfully mounted writable directory cache '/home/task_Gdnb3nJKRIif__0/cache2'
[taskcluster 2026-09-29T13:40:27.433Z] [d2g] Using cached docker image "docker.io/mozillareleases/taskgraph:run-task-v24.1.1@sha256:9b9a1a3ca42025bb8d7eba19e1b8759f04504097265074df25bbc997bd802543"
[taskcluster 2026-09-29T13:40:27.436Z] Executing command 0: docker run -t --name taskcontainer_NvgVXYlBRfm2-SRtTm2r8Q --memory-swap -1 --pids-limit -1 --pull=never --log-driver=none '--add-host=localhost.localdomain:127.0.0.1' -v '/home/task_Gdnb3nJKRIif__0/cache0:/builds/worker/.cache/uv' -v '/home/task_Gdnb3nJKRIif__0/cache1:/builds/worker/.cache/pre-commit' -v /home/task_Gdnb3nJKRIif__0/cache2:/builds/worker/checkouts --network gw-task-Gdnb3nJKRIif-0 '--add-host=taskcluster:172.18.0.1' --env-file 'env.list' -- 'mozillareleases/taskgraph:run-task-v24.1.1@sha256:9b9a1a3ca42025bb8d7eba19e1b8759f04504097265074df25bbc997bd802543' run-task --src-checkout=/builds/worker/checkouts/src --task-cwd=/builds/worker/checkouts/src -- bash -c 'uv tool install pre-commit && /builds/worker/.local/bin/pre-commit run --all-files'
[setup 2026-09-29T13:40:27.658+00:00] run-task started in /
[setup 2026-09-29T13:40:27.658+00:00] Invoked by command: --src-checkout=/builds/worker/checkouts/src --task-cwd=/builds/worker/checkouts/src -- bash -c uv tool install pre-commit && /builds/worker/.local/bin/pre-commit run --all-files
[setup 2026-09-29T13:40:27.658+00:00] Python version: 3.13.5
[setup 2026-09-29T13:40:27.658+00:00] Subprocess python version: 
cpython-3.13.5-linux-x86_64-gnu    /usr/bin/python3.13
cpython-3.13.5-linux-x86_64-gnu    /usr/bin/python3 -> python3.13
[cache 2026-09-29T13:40:27.742+00:00] cache /builds/worker/.cache/uv exists; requirements: gid=1000 uid=1000 version=1
[cache 2026-09-29T13:40:27.742+00:00] cache /builds/worker/.cache/pre-commit exists; requirements: gid=1000 uid=1000 version=1
[cache 2026-09-29T13:40:27.743+00:00] cache /builds/worker/checkouts exists; requirements: gid=1000 uid=1000 version=1
[setup 2026-09-29T13:40:27.743+00:00] running as worker:worker
[vcs 2026-09-29T13:40:27.743+00:00] executing ['git', 'config', '--global', '--add', 'safe.directory', '/builds/worker/checkouts/src']
[vcs 2026-09-29T13:40:27.745+00:00] executing ['git', 'fetch', 'https://github.com/marco-c/taskgraph', 'cache_time_strings']
[vcs 2026-09-29T13:40:28.088+00:00] From https://github.com/marco-c/taskgraph
[vcs 2026-09-29T13:40:28.088+00:00]  * branch            cache_time_strings -> FETCH_HEAD
[vcs 2026-09-29T13:40:28.094+00:00] executing ['git', 'checkout', '-f', '-B', 'cache_time_strings', 'd7301dee5b2f454bb1efb0f3ce4c3ff6ee8d3b10']
[vcs 2026-09-29T13:40:28.116+00:00] Switched to a new branch 'cache_time_strings'
[vcs 2026-09-29T13:40:28.116+00:00] cleaning git checkout...
[vcs 2026-09-29T13:40:28.116+00:00] executing ['git', 'clean', '-nxdff']
[vcs 2026-09-29T13:40:28.119+00:00] removing ['/builds/worker/checkouts/src/.ruff_cache/']
[vcs 2026-09-29T13:40:28.120+00:00] successfully cleaned git checkout!
[vcs 2026-09-29T13:40:28.122+00:00] TinderboxPrint:<a href='https://github.com/marco-c/taskgraph/commit/d7301dee5b2f454bb1efb0f3ce4c3ff6ee8d3b10' title='Built from taskgraph commit d7301dee5b2f454bb1efb0f3ce4c3ff6ee8d3b10'>d7301dee5b2f454bb1efb0f3ce4c3ff6ee8d3b10</a>
[setup 2026-09-29T13:40:28.122+00:00] UV_CACHE_DIR is /builds/worker/.cache/uv
[task 2026-09-29T13:40:28.122+00:00] executing ['bash', '-c', 'uv tool install pre-commit && /builds/worker/.local/bin/pre-commit run --all-files']
[task 2026-09-29T13:40:28.135+00:00] Resolved 10 packages in 3ms
[task 2026-09-29T13:40:28.138+00:00] warning: Failed to hardlink files; falling back to full copy. This may lead to degraded performance.
[task 2026-09-29T13:40:28.138+00:00]          If the cache and target directories are on different filesystems, hardlinking may not be supported.
[task 2026-09-29T13:40:28.138+00:00]          If this is intentional, set `export UV_LINK_MODE=copy` or use `--link-mode=copy` to suppress this warning.
[task 2026-09-29T13:40:28.153+00:00] Installed 10 packages in 16ms
[task 2026-09-29T13:40:28.153+00:00]  + cfgv==3.5.0
[task 2026-09-29T13:40:28.154+00:00]  + distlib==0.4.3
[task 2026-09-29T13:40:28.154+00:00]  + filelock==4.0.6
[task 2026-09-29T13:40:28.154+00:00]  + identify==2.6.20
[task 2026-09-29T13:40:28.154+00:00]  + nodeenv==1.11.0
[task 2026-09-29T13:40:28.154+00:00]  + platformdirs==4.12.1
[task 2026-09-29T13:40:28.154+00:00]  + pre-commit==4.6.2
[task 2026-09-29T13:40:28.154+00:00]  + python-discovery==1.6.1
[task 2026-09-29T13:40:28.154+00:00]  + pyyaml==6.0.3
[task 2026-09-29T13:40:28.154+00:00]  + virtualenv==21.13.0
[task 2026-09-29T13:40:28.154+00:00] Installed 1 executable: pre-commit
[task 2026-09-29T13:40:28.155+00:00] warning: `/builds/worker/.local/bin` is not on your PATH. To use installed tools, run `export PATH="/builds/worker/.local/bin:$PATH"` or `uv tool update-shell`.
[task 2026-09-29T13:40:28.473+00:00] trim trailing whitespace.................................................Passed
[task 2026-09-29T13:40:28.535+00:00] fix end of files.........................................................Passed
[task 2026-09-29T13:40:28.674+00:00] check yaml...............................................................Passed
[task 2026-09-29T13:40:28.742+00:00] check for added large files..............................................Passed
[task 2026-09-29T13:40:28.775+00:00] ruff (legacy alias)......................................................Passed
[task 2026-09-29T13:40:28.809+00:00] ruff format..............................................................Passed
[task 2026-09-29T13:40:28.829+00:00] uv-lock..................................................................Passed
[task 2026-09-29T13:40:29.055+00:00] yamllint.................................................................Passed
[task 2026-09-29T13:40:29.318+00:00] codespell................................................................Passed
[taskcluster 2026-09-29T13:40:29.915Z]                        Exit Code: 0
[taskcluster 2026-09-29T13:40:29.915Z]                        User Time: 9.581ms
[taskcluster 2026-09-29T13:40:29.915Z]                      Kernel Time: 15.33ms
[taskcluster 2026-09-29T13:40:29.915Z]                        Wall Time: 2.478396408s
[taskcluster 2026-09-29T13:40:29.915Z]  Average Available System Memory: 14.41 GiB
[taskcluster 2026-09-29T13:40:29.915Z]       Average System Memory Used: 1.20 GiB
[taskcluster 2026-09-29T13:40:29.915Z]          Peak System Memory Used: 1.31 GiB
[taskcluster 2026-09-29T13:40:29.915Z]              Total System Memory: 15.61 GiB
[taskcluster 2026-09-29T13:40:29.915Z]                           Result: SUCCEEDED
[taskcluster 2026-09-29T13:40:29.915Z] === Task Finished ===
[taskcluster 2026-09-29T13:40:29.916Z] Task Duration: 2.479031488s
[taskcluster 2026-09-29T13:40:29.946Z] [mounts] Preserving cache: Moving "/home/task_Gdnb3nJKRIif__0/cache0" to "/home/generic-worker/caches/fqZV8EHTTL-a8VLNMZL0Tw"
[taskcluster 2026-09-29T13:40:29.946Z] [mounts] Preserving cache: Moving "/home/task_Gdnb3nJKRIif__0/cache1" to "/home/generic-worker/caches/BOLsjOxmRjy9yBssW_Mi1w"
[taskcluster 2026-09-29T13:40:29.947Z] [mounts] Preserving cache: Moving "/home/task_Gdnb3nJKRIif__0/cache2" to "/home/generic-worker/caches/SIUtA_oSRzCw8fez-j2oHA"