Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,8 @@ function setupCache(owner, repo) {
// Check if this is a gRPC Aborted error indicating hydration in progress
if (error instanceof connect_1.ConnectError && error.code === connect_1.Code.Aborted) {
const hydrationMessage = error.message || 'Initial mirror clone is running';
core.warning(`[git-mirror] Another job is hydrating the git mirror cache: ${hydrationMessage}`);
core.warning('[git-mirror] No sticky disk will be mounted for this run; checkout will clone directly from GitHub onto the runner disk (no mirror cache). The mirror cache will be available on subsequent runs once hydration completes.');
core.info(`[git-mirror] Another job is hydrating the git mirror cache: ${hydrationMessage}`);
core.info('[git-mirror] No sticky disk will be mounted for this run; checkout will clone directly from GitHub onto the runner disk (no mirror cache). The mirror cache will be available on subsequent runs once hydration completes.');
return {
exposeId: '',
stickyDiskKey,
Expand Down Expand Up @@ -3714,7 +3714,7 @@ function getSourceInner(settings, report, onHydrationReport) {
report.sticky_disk_setup_ms = Date.now() - setupStart;
// Check if hydration is in progress - another job is doing the initial git clone --mirror
if (cacheInfo.hydrationInProgress) {
// Warning already logged by setupCache, just fall back to standard checkout
// Already logged by setupCache, just fall back to standard checkout
report.serving_mode = 'fallback-contention';
cacheInfo = null;
core.endGroup();
Expand Down
4 changes: 2 additions & 2 deletions src/blacksmith-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,10 @@ export async function setupCache(
if (error instanceof ConnectError && error.code === Code.Aborted) {
const hydrationMessage =
error.message || 'Initial mirror clone is running'
core.warning(
core.info(
`[git-mirror] Another job is hydrating the git mirror cache: ${hydrationMessage}`
)
core.warning(
core.info(
'[git-mirror] No sticky disk will be mounted for this run; checkout will clone directly from GitHub onto the runner disk (no mirror cache). The mirror cache will be available on subsequent runs once hydration completes.'
)
return {
Expand Down
2 changes: 1 addition & 1 deletion src/git-source-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ async function getSourceInner(

// Check if hydration is in progress - another job is doing the initial git clone --mirror
if (cacheInfo.hydrationInProgress) {
// Warning already logged by setupCache, just fall back to standard checkout
// Already logged by setupCache, just fall back to standard checkout
report.serving_mode = 'fallback-contention'
cacheInfo = null
core.endGroup()
Expand Down
Loading