Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the cache key #61

Merged
merged 1 commit into from
Oct 15, 2020
Merged

Change the cache key #61

merged 1 commit into from
Oct 15, 2020

Conversation

Yikun
Copy link
Owner

@Yikun Yikun commented Oct 15, 2020

No description provided.

@Yikun Yikun mentioned this pull request Oct 15, 2020
@Yikun
Copy link
Owner Author

Yikun commented Oct 15, 2020

第一次结果:

2020-10-15T11:22:23.3073835Z ##[group]Run actions/cache@v1
2020-10-15T11:22:23.3074433Z with:
2020-10-15T11:22:23.3075958Z   path: /home/runner/work/hub-mirror-action/hub-mirror-action/hub-mirror-cache
2020-10-15T11:22:23.3077495Z   key: Linux-yikun-hub-cache-20201015112223272
2020-10-15T11:22:23.3078588Z   restore-keys: Linux-yikun-hub-cache
2020-10-15T11:22:23.3079345Z ##[endgroup]
2020-10-15T11:22:23.3685207Z ##[debug]Cache Path: /home/runner/work/hub-mirror-action/hub-mirror-action/hub-mirror-cache
2020-10-15T11:22:23.3690416Z ::save-state name=CACHE_KEY,::Linux-yikun-hub-cache-20201015112223272
2020-10-15T11:22:23.3692414Z ##[debug]Save intra-action state CACHE_KEY = Linux-yikun-hub-cache-20201015112223272
2020-10-15T11:22:23.3694125Z ##[debug]Resolved Keys:
2020-10-15T11:22:23.3695963Z ##[debug]["Linux-yikun-hub-cache-20201015112223272","Linux-yikun-hub-cache"]
2020-10-15T11:22:23.3702239Z ##[debug]Resource Url: https://artifactcache.actions.githubusercontent.com/n61puPS6BUDRfsn2fysQFPy01wk8C82Lf5Hrr1InnUxeJr1gC3/_apis/artifactcache/cache?keys=Linux-yikun-hub-cache-20201015112223272%2CLinux-yikun-hub-cache
2020-10-15T11:22:23.4736874Z Cache not found for input keys: Linux-yikun-hub-cache-20201015112223272, Linux-yikun-hub-cache.

@Yikun
Copy link
Owner Author

Yikun commented Oct 15, 2020

第二次结果:

2020-10-15T11:26:46.6795689Z ##[debug]Loading env
2020-10-15T11:26:46.6804702Z ##[group]Run actions/cache@v1
2020-10-15T11:26:46.6805251Z with:
2020-10-15T11:26:46.6806002Z   path: /home/runner/work/hub-mirror-action/hub-mirror-action/hub-mirror-cache
2020-10-15T11:26:46.6807151Z   key: Linux-yikun-hub-cache-20201015112646656
2020-10-15T11:26:46.6808236Z   restore-keys: Linux-yikun-hub-cache
2020-10-15T11:26:46.6808924Z ##[endgroup]
2020-10-15T11:26:46.7256076Z ##[debug]Cache Path: /home/runner/work/hub-mirror-action/hub-mirror-action/hub-mirror-cache
2020-10-15T11:26:46.7261235Z ::save-state name=CACHE_KEY,::Linux-yikun-hub-cache-20201015112646656
2020-10-15T11:26:46.7262990Z ##[debug]Save intra-action state CACHE_KEY = Linux-yikun-hub-cache-20201015112646656
2020-10-15T11:26:46.7264298Z ##[debug]Resolved Keys:
2020-10-15T11:26:46.7265694Z ##[debug]["Linux-yikun-hub-cache-20201015112646656","Linux-yikun-hub-cache"]
2020-10-15T11:26:46.7314988Z ##[debug]Resource Url: https://artifactcache.actions.githubusercontent.com/n61puPS6BUDRfsn2fysQFPy01wk8C82Lf5Hrr1InnUxeJr1gC3/_apis/artifactcache/cache?keys=Linux-yikun-hub-cache-20201015112646656%2CLinux-yikun-hub-cache
2020-10-15T11:26:46.7865608Z ::add-mask::***
2020-10-15T11:26:46.7868502Z ##[debug]Cache Result:
2020-10-15T11:26:46.7872978Z ##[debug]{"scope":"refs/heads/refresh-cache-key","cacheKey":"Linux-yikun-hub-cache-20201015112223272","cacheVersion":null,"creationTime":"2020-10-15T11:22:47.9266667Z","archiveLocation":"***"}
2020-10-15T11:26:46.7882765Z ##[debug]Archive Path: /home/runner/work/_temp/cc706f03-1e19-48b4-b3c9-6ffed4d65762/cache.tgz
2020-10-15T11:26:46.7887720Z ::save-state name=CACHE_RESULT,::{"scope":"refs/heads/refresh-cache-key","cacheKey":"Linux-yikun-hub-cache-20201015112223272","cacheVersion":null,"creationTime":"2020-10-15T11:22:47.9266667Z","archiveLocation":"***"}
2020-10-15T11:26:46.7891797Z ##[debug]Save intra-action state CACHE_RESULT = {"scope":"refs/heads/refresh-cache-key","cacheKey":"Linux-yikun-hub-cache-20201015112223272","cacheVersion":null,"creationTime":"2020-10-15T11:22:47.9266667Z","archiveLocation":"***"}
2020-10-15T11:26:46.8399555Z Cache Size: ~0 MB (107378 B)
2020-10-15T11:26:46.8438888Z [command]/bin/tar -xz -f /home/runner/work/_temp/cc706f03-1e19-48b4-b3c9-6ffed4d65762/cache.tgz -C /home/runner/work/hub-mirror-action/hub-mirror-action/hub-mirror-cache
2020-10-15T11:26:46.8556737Z ::set-output name=cache-hit,::false
2020-10-15T11:26:46.8557911Z ##[debug]steps['cache']['outputs']['cache-hit']='false'
2020-10-15T11:26:46.8559702Z Cache restored from key: Linux-yikun-hub-cache-20201015112223272

@Yikun
Copy link
Owner Author

Yikun commented Oct 15, 2020

第三次结果:

2020-10-15T11:29:25.5780838Z ##[group]Run actions/cache@v1
2020-10-15T11:29:25.5781348Z with:
2020-10-15T11:29:25.5782119Z   path: /home/runner/work/hub-mirror-action/hub-mirror-action/hub-mirror-cache
2020-10-15T11:29:25.5783211Z   key: Linux-yikun-hub-cache-20201015112925559
2020-10-15T11:29:25.5784533Z   restore-keys: Linux-yikun-hub-cache
2020-10-15T11:29:25.5785164Z ##[endgroup]
2020-10-15T11:29:25.6213212Z ##[debug]Cache Path: /home/runner/work/hub-mirror-action/hub-mirror-action/hub-mirror-cache
2020-10-15T11:29:25.6215615Z ::save-state name=CACHE_KEY,::Linux-yikun-hub-cache-20201015112925559
2020-10-15T11:29:25.6217052Z ##[debug]Save intra-action state CACHE_KEY = Linux-yikun-hub-cache-20201015112925559
2020-10-15T11:29:25.6218277Z ##[debug]Resolved Keys:
2020-10-15T11:29:25.6220036Z ##[debug]["Linux-yikun-hub-cache-20201015112925559","Linux-yikun-hub-cache"]
2020-10-15T11:29:25.6225910Z ##[debug]Resource Url: https://artifactcache.actions.githubusercontent.com/n61puPS6BUDRfsn2fysQFPy01wk8C82Lf5Hrr1InnUxeJr1gC3/_apis/artifactcache/cache?keys=Linux-yikun-hub-cache-20201015112925559%2CLinux-yikun-hub-cache
2020-10-15T11:29:25.6845699Z ::add-mask::***
2020-10-15T11:29:25.6848285Z ##[debug]Cache Result:
2020-10-15T11:29:25.6853926Z ##[debug]{"scope":"refs/heads/refresh-cache-key","cacheKey":"Linux-yikun-hub-cache-20201015112646656","cacheVersion":null,"creationTime":"2020-10-15T11:27:11.43Z","archiveLocation":"***"}
2020-10-15T11:29:25.6865636Z ##[debug]Archive Path: /home/runner/work/_temp/5c178036-126b-4db2-be72-020cc1797b74/cache.tgz
2020-10-15T11:29:25.6870753Z ::save-state name=CACHE_RESULT,::{"scope":"refs/heads/refresh-cache-key","cacheKey":"Linux-yikun-hub-cache-20201015112646656","cacheVersion":null,"creationTime":"2020-10-15T11:27:11.43Z","archiveLocation":"***"}
2020-10-15T11:29:25.6875605Z ##[debug]Save intra-action state CACHE_RESULT = {"scope":"refs/heads/refresh-cache-key","cacheKey":"Linux-yikun-hub-cache-20201015112646656","cacheVersion":null,"creationTime":"2020-10-15T11:27:11.43Z","archiveLocation":"***"}
2020-10-15T11:29:25.7234195Z Cache Size: ~0 MB (107442 B)
2020-10-15T11:29:25.7279102Z [command]/bin/tar -xz -f /home/runner/work/_temp/5c178036-126b-4db2-be72-020cc1797b74/cache.tgz -C /home/runner/work/hub-mirror-action/hub-mirror-action/hub-mirror-cache
2020-10-15T11:29:25.7408840Z ::set-output name=cache-hit,::false
2020-10-15T11:29:25.7410073Z ##[debug]steps['cache']['outputs']['cache-hit']='false'
2020-10-15T11:29:25.7411786Z Cache restored from key: Linux-yikun-hub-cache-20201015112646656

@Yikun
Copy link
Owner Author

Yikun commented Oct 15, 2020

@yi-Xu-0100 好了,看着没问题了。

第一次:无cache,保存Linux-yikun-hub-cache-20201015112223272
第二次:从Linux-yikun-hub-cache-20201015112223272恢复,保存Linux-yikun-hub-cache-20201015112646656
第三次:从Linux-yikun-hub-cache-20201015112646656恢复,保存Linux-yikun-hub-cache-20201015112925559

@Yikun Yikun merged commit f8921e1 into master Oct 15, 2020
@Yikun Yikun deleted the refresh-cache-key branch March 9, 2021 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant