Skip to content

Conversation

@vmaerten
Copy link
Member

@vmaerten vmaerten commented Sep 15, 2024

Fixes :

It also improve the output, now the task with wildcard replaced are displayed :

image

I was struggled a bit with the naming. I choose Fullname but feel free if you have a better idea.

@vmaerten vmaerten force-pushed the feat/improve-fingerprint-with-wildcard branch from feb5d44 to dab7cb3 Compare September 15, 2024 10:32
@vmaerten vmaerten marked this pull request as ready for review September 15, 2024 10:35
task.go Outdated
call.Vars = &ast.Vars{}
}
call.Vars.Set("MATCH", ast.Var{Value: matchingTasks[0].Wildcards})
matchingTasks[0].Task.FullName = call.Task
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like we'd be getting a race condition here, no? Parallel calls to this task would be overiding the same attribute.

Tricky to implement this in another way, though, I know...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are totally right. The same task with a wildcard, used twice in a dep (ran in parallel) the first one will be overridden by the last

Put this in draft until I find a solution for it

Thanks!

@vmaerten vmaerten removed the request for review from pd93 October 20, 2024 13:06
@vmaerten vmaerten marked this pull request as draft October 20, 2024 13:07
@vmaerten vmaerten force-pushed the feat/improve-fingerprint-with-wildcard branch from 4cd0f48 to 15d6799 Compare August 17, 2025 14:30
@vmaerten
Copy link
Member Author

Finally took the time to finish this!
I've also fix another issue with this

@vmaerten vmaerten changed the title feat: improve fingerprint and output with wildcard feat: improve fingerprint, run and output with wildcard Aug 17, 2025
@vmaerten vmaerten marked this pull request as ready for review August 17, 2025 16:23
@vmaerten vmaerten requested review from andreynering and pd93 August 17, 2025 16:23
Copy link
Member

@andreynering andreynering left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's working perfectly. Thank you!

Do not forget to mention this on CHANGELOG after merging.

@vmaerten vmaerten merged commit 48039be into main Sep 11, 2025
13 checks passed
@vmaerten vmaerten deleted the feat/improve-fingerprint-with-wildcard branch September 11, 2025 17:33
vmaerten added a commit that referenced this pull request Sep 11, 2025
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.

Wildcards and fingerprinting: consider to automatically concat the wildcard parameter on the cache key

3 participants