Awesome CI Workflow Code formater: "2 files are not in one and only one directory" but they are in separate branches. #107

Closed
opened 2026-01-29 15:03:37 +00:00 by claunia · 7 comments
Owner

Originally created by @straight-into-the-wall on GitHub (Oct 22, 2021).

Hey @Panquesito7 @kvedala,

On my fork's Github Actions I got this error from Awesome CI Workflow Code formatter; even if I separated the two files into two different commits.

2 files are not in one and only one directory:
leetcode/src/1.c
leetcode/src/6.c

Error: Process completed with exit code 2.

Any idea how I could fix it?

Thanx

awesome_error

Originally posted by @straight-into-the-wall in https://github.com/TheAlgorithms/C/issues/897#issuecomment-949695340

Originally created by @straight-into-the-wall on GitHub (Oct 22, 2021). Hey @Panquesito7 @kvedala, On my fork's Github Actions I got this error from Awesome CI Workflow Code formatter; even if I separated the two files into two different commits. ```txt 2 files are not in one and only one directory: leetcode/src/1.c leetcode/src/6.c Error: Process completed with exit code 2. ``` Any idea how I could fix it? Thanx ![awesome_error](https://user-images.githubusercontent.com/92807553/138473882-113e4fa9-0ca8-4b21-8ef0-aaa8835df8aa.png) _Originally posted by @straight-into-the-wall in https://github.com/TheAlgorithms/C/issues/897#issuecomment-949695340_
Author
Owner

@straight-into-the-wall commented on GitHub (Oct 24, 2021):

Now there is only one modified file, but the issue remains the same.
image

@straight-into-the-wall commented on GitHub (Oct 24, 2021): Now there is only one modified file, but the issue remains the same. ![image](https://user-images.githubusercontent.com/92807553/138613213-83368fcc-a3b4-4034-a47b-09c3ba4483f7.png)
Author
Owner

@Panquesito7 commented on GitHub (Oct 24, 2021):

@ayaankhan98, @mishraabhinn, thoughts?

@Panquesito7 commented on GitHub (Oct 24, 2021): @ayaankhan98, @mishraabhinn, thoughts?
Author
Owner

@straight-into-the-wall commented on GitHub (Oct 24, 2021):

Maybe is because I've 2 different PR affecting one folder? (Seems unlikely too me but I've no other clues)

https://github.com/TheAlgorithms/C/pull/896

https://github.com/TheAlgorithms/C/pull/897

@straight-into-the-wall commented on GitHub (Oct 24, 2021): Maybe is because I've 2 different PR affecting one folder? (Seems unlikely too me but I've no other clues) https://github.com/TheAlgorithms/C/pull/896 https://github.com/TheAlgorithms/C/pull/897
Author
Owner

@straight-into-the-wall commented on GitHub (Oct 24, 2021):

the failing check code is there:

  nodir_files = [file for file in cpp_files if file.count(os.sep) != 1 and "project_euler" not in file and "data_structure" not in file]
  if nodir_files:
    print(f"{len(nodir_files)} files are not in one and only one directory:")
    print("\n".join(nodir_files) + "\n")
@straight-into-the-wall commented on GitHub (Oct 24, 2021): the failing check code is there: ```sh nodir_files = [file for file in cpp_files if file.count(os.sep) != 1 and "project_euler" not in file and "data_structure" not in file] if nodir_files: print(f"{len(nodir_files)} files are not in one and only one directory:") print("\n".join(nodir_files) + "\n") ```
Author
Owner

@Panquesito7 commented on GitHub (Oct 24, 2021):

Maybe is because I've 2 different PR affecting one folder? (Seems unlikely too me but I've no other clues)

#896

#897

Don't think so, that shouldn't happen. The Leetcode folder is known for having CI issues, AFAIK.

@Panquesito7 commented on GitHub (Oct 24, 2021): > Maybe is because I've 2 different PR affecting one folder? (Seems unlikely too me but I've no other clues) > > #896 > > #897 Don't think so, that shouldn't happen. The Leetcode folder is known for having CI issues, AFAIK.
Author
Owner

@straight-into-the-wall commented on GitHub (Oct 25, 2021):

I found that Awesome workflow was counting the length of the modified file list in the number of undesired files.

I proposed a solution in PR #900.

@straight-into-the-wall commented on GitHub (Oct 25, 2021): I found that Awesome workflow was counting the length of the modified file list in the number of undesired files. I proposed a solution in PR #900.
Author
Owner

@straight-into-the-wall commented on GitHub (Oct 25, 2021):

In former version of .github/workflows/awesome_workflow.yml commits were permitted to present multiple solutions at one time. PR #901 reuse that piece of code. So to give alternative solution to this issue.

@straight-into-the-wall commented on GitHub (Oct 25, 2021): In former version of .github/workflows/awesome_workflow.yml commits were permitted to present multiple solutions at one time. PR #901 reuse that piece of code. So to give alternative solution to this issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#107