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

Fix cache in tests-cacher #128

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Kwaizer
Copy link
Contributor

@Kwaizer Kwaizer commented Jan 28, 2025

Resolves: AlmaLinux/build-system#411

Git pull works properly in local testing, so this problem can be addressed with a hotfix where we re-clone repository if missing folders are found

@Kwaizer Kwaizer force-pushed the fix-cache branch 4 times, most recently from 88e5eba to 0851071 Compare January 29, 2025 10:57
@@ -118,6 +119,21 @@ async def get_test_repositories(self) -> List[TestRepository]:
test_repos.append(TestRepository(**test_repo))
return test_repos

def get_compiled_test_rules(
self,
Copy link
Member

Choose a reason for hiding this comment

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

Wrong indent

Copy link
Collaborator

@anfimovdm anfimovdm left a comment

Choose a reason for hiding this comment

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

Could you please check how it works with the following case?

  1. Process some repo one time to let the service to cache a git repository
  2. Add to the repo a new test dir and define a regex in test_rules.json
  3. Check how it works
  4. Repeat second and third steps again

Note: Please, don't turn off or restart the service when you will try to reproduce the error with cache

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.

Fix cache in tests-cacher
3 participants