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

Error creating blob for some files #3577

Closed
tangrufus opened this issue Dec 22, 2024 · 3 comments · Fixed by #3588
Closed

Error creating blob for some files #3577

tangrufus opened this issue Dec 22, 2024 · 3 comments · Fixed by #3588

Comments

@tangrufus
Copy link

On the same job, some blobs are created for certain files but not all.

Create or update the pull request branch
  /usr/bin/git symbolic-ref HEAD --short
  main
  Working base is branch 'main'
  /usr/bin/git checkout --progress -B 6b59eeb1-d933-42d4-a4f2-7b330fabcb49 HEAD --
  M	"tests/.pest/snapshots/E2E/Console/CommandTest/_TypistTech_PhpMatrix_Console_Command__\342\206\222_it_success_with_data_set_____7_3_1____________auto_______full_______7_3_1_________auto____full__.snap"


// ...

Creating tree objects for local commit ce4063d1922ccfd6c2573e7a7139553116777ef6
  Error: Error creating blob for file '"tests/.pest/snapshots/E2E/Console/CommandTest/_TypistTech_PhpMatrix_Console_Command__\342\206\222_it_success_with_data_set_____7_3_1____________auto_______full_______7_3_1_________auto____full__.snap"': ENOENT: no such file or directory, lstat '/home/runner/work/php-matrix/php-matrix/"tests/.pest/snapshots/E2E/Console/CommandTest/

// ...

Creating tree object for blob at 'resources/all-versions.json' with status 'M'
Creating tree object for blob at 'tests/data/releases-8.json' with status 'M'

Example: https://github.com/typisttech/php-matrix/actions/runs/12451384164/job/34759263479#step:7:539

On the same repo, another job successfully created the PR with a very similar setup. See: https://github.com/typisttech/php-matrix/actions/runs/12451464051/job/34759436280

Is there anything I can do to debug the issue?

@tangrufus tangrufus changed the title Error creating blob for some files. Error creating blob for some files Dec 22, 2024
@peter-evans
Copy link
Owner

Hi @tangrufus

Thank you for opening this issue. I'll take a look at this when I have chance. My guess is that those long, strange looking file names are causing an issue.

@peter-evans
Copy link
Owner

I think I've figured out the issue and I'm making a fix for it. When using sign-commits, unicode is not correctly preserved in filepaths.

@peter-evans
Copy link
Owner

Released a fix in v7.0.6 / v7

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 a pull request may close this issue.

2 participants