[PR #2474] [MERGED] feat: improve new action cache logging #2455

Closed
opened 2026-03-01 21:55:31 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/nektos/act/pull/2474
Author: @ChristopherHX
Created: 9/27/2024
Status: Merged
Merged: 10/10/2024
Merged by: @mergify[bot]

Base: masterHead: improve-new-action-cache-logging


📝 Commits (3)

  • 4937eb4 feat: improve new action cache logging
  • 3e14135 Test logging failure cases
  • 87547ff Merge branch 'master' into improve-new-action-cache-logging

📊 Changes

4 files changed (+108 additions, -11 deletions)

View changed files

📝 pkg/runner/action_cache.go (+22 -9)
📝 pkg/runner/action_cache_offline_mode.go (+7 -1)
📝 pkg/runner/action_cache_test.go (+70 -1)
📝 pkg/runner/local_repository_cache.go (+9 -0)

📄 Description

Resolves #2471

Example the GoGitActionCache are new logging entries in default log level ( --use-new-action-cache )

[uses-composite-check-for-input-in-if-uses/test] GoGitActionCache fetch https://github.com/actions/github-script with ref v7 at /home/christopher/.cache/act/actions-github-script.git resolved to 60a0d83039c74a4aee543508d2ffcb1c3799cdea
[uses-composite-check-for-input-in-if-uses/test] GoGitActionCache get content actions/github-script with sha 60a0d83039c74a4aee543508d2ffcb1c3799cdea subpath action.yml at /home/christopher/.cache/act/actions-github-script.git
[uses-composite-check-for-input-in-if-uses/test] ⭐ Run Main actions/github-script@v7
[uses-composite-check-for-input-in-if-uses/test] GoGitActionCache get content actions/github-script with sha 60a0d83039c74a4aee543508d2ffcb1c3799cdea subpath  at /home/christopher/.cache/act/actions-github-script.git
[uses-composite-check-for-input-in-if-uses/test]   | { b: 'true', b2: 'true' }
[uses-composite-check-for-input-in-if-uses/test]   ✅  Success - Main actions/github-script@v7
[uses-composite-check-for-input-in-if-uses/test]   ⚙  ::set-output:: result=

LocalRepositoryCache logging ( --local-repository actions/github-script@v7=/tmp )

[uses-composite-check-for-input-in-if-uses/test] ⭐ Run Main actions/checkout@v4
[uses-composite-check-for-input-in-if-uses/test]   ✅  Success - Main actions/checkout@v4
[uses-composite-check-for-input-in-if-uses/test] ⭐ Run Main ./uses-composite-check-for-input-in-if-uses/composite_action
[uses-composite-check-for-input-in-if-uses/test] LocalRepositoryCache matched https://github.com/actions/github-script with ref v7 to /tmp/
[uses-composite-check-for-input-in-if-uses/test] LocalRepositoryCache read cachedir actions/github-script with ref v7 and subpath action.yml from /tmp/

Behind feature flags --use-new-action-cache / --local-repository / (--action-offline-mode logging adjusted if one previous feature flag is enabled)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/nektos/act/pull/2474 **Author:** [@ChristopherHX](https://github.com/ChristopherHX) **Created:** 9/27/2024 **Status:** ✅ Merged **Merged:** 10/10/2024 **Merged by:** [@mergify[bot]](https://github.com/apps/mergify) **Base:** `master` ← **Head:** `improve-new-action-cache-logging` --- ### 📝 Commits (3) - [`4937eb4`](https://github.com/nektos/act/commit/4937eb4b481fefe185ee2f7c9bf9117c0f0f01a9) feat: improve new action cache logging - [`3e14135`](https://github.com/nektos/act/commit/3e141359d6dcf68179bccd5ad829ba399fc4bcac) Test logging failure cases - [`87547ff`](https://github.com/nektos/act/commit/87547ff14a8730161d5d8dd7fc6f0ce7995e926a) Merge branch 'master' into improve-new-action-cache-logging ### 📊 Changes **4 files changed** (+108 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `pkg/runner/action_cache.go` (+22 -9) 📝 `pkg/runner/action_cache_offline_mode.go` (+7 -1) 📝 `pkg/runner/action_cache_test.go` (+70 -1) 📝 `pkg/runner/local_repository_cache.go` (+9 -0) </details> ### 📄 Description Resolves #2471 Example the GoGitActionCache are new logging entries in default log level ( `--use-new-action-cache` ) ``` [uses-composite-check-for-input-in-if-uses/test] GoGitActionCache fetch https://github.com/actions/github-script with ref v7 at /home/christopher/.cache/act/actions-github-script.git resolved to 60a0d83039c74a4aee543508d2ffcb1c3799cdea [uses-composite-check-for-input-in-if-uses/test] GoGitActionCache get content actions/github-script with sha 60a0d83039c74a4aee543508d2ffcb1c3799cdea subpath action.yml at /home/christopher/.cache/act/actions-github-script.git [uses-composite-check-for-input-in-if-uses/test] ⭐ Run Main actions/github-script@v7 [uses-composite-check-for-input-in-if-uses/test] GoGitActionCache get content actions/github-script with sha 60a0d83039c74a4aee543508d2ffcb1c3799cdea subpath at /home/christopher/.cache/act/actions-github-script.git [uses-composite-check-for-input-in-if-uses/test] | { b: 'true', b2: 'true' } [uses-composite-check-for-input-in-if-uses/test] ✅ Success - Main actions/github-script@v7 [uses-composite-check-for-input-in-if-uses/test] ⚙ ::set-output:: result= ``` LocalRepositoryCache logging ( `--local-repository actions/github-script@v7=/tmp` ) ``` [uses-composite-check-for-input-in-if-uses/test] ⭐ Run Main actions/checkout@v4 [uses-composite-check-for-input-in-if-uses/test] ✅ Success - Main actions/checkout@v4 [uses-composite-check-for-input-in-if-uses/test] ⭐ Run Main ./uses-composite-check-for-input-in-if-uses/composite_action [uses-composite-check-for-input-in-if-uses/test] LocalRepositoryCache matched https://github.com/actions/github-script with ref v7 to /tmp/ [uses-composite-check-for-input-in-if-uses/test] LocalRepositoryCache read cachedir actions/github-script with ref v7 and subpath action.yml from /tmp/ ``` _Behind feature flags `--use-new-action-cache` / `--local-repository` / (`--action-offline-mode` logging adjusted if one previous feature flag is enabled)_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 21:55:31 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#2455
No description provided.