Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5855bb79
Commit
5855bb79
authored
Apr 05, 2022
by
John McDonnell
Committed by
Tiffany Rea
Apr 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update list-untracked-repositories E2E to allow for 24 hours grace period
parent
4ab0dd5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
qa/qa/service/praefect_manager.rb
qa/qa/service/praefect_manager.rb
+8
-0
No files found.
qa/qa/service/praefect_manager.rb
View file @
5855bb79
...
@@ -530,9 +530,17 @@ module QA
...
@@ -530,9 +530,17 @@ module QA
storage_repositories
[
2
..-
3
]
storage_repositories
[
2
..-
3
]
end
end
def
modify_repo_access_time
(
node
,
repo_path
,
update_time
)
repo
=
"/var/opt/gitlab/git-data/repositories/
#{
repo_path
}
"
shell
(
%{
docker exec --user git #{node} bash -c 'find #{repo} -exec touch -d "#{update_time}" {}
\\
;'
}
)
end
def
add_repo_to_disk
(
node
,
repo_path
)
def
add_repo_to_disk
(
node
,
repo_path
)
cmd
=
"GIT_DIR=. git init --initial-branch=main /var/opt/gitlab/git-data/repositories/
#{
repo_path
}
"
cmd
=
"GIT_DIR=. git init --initial-branch=main /var/opt/gitlab/git-data/repositories/
#{
repo_path
}
"
shell
"docker exec --user git
#{
node
}
bash -c '
#{
cmd
}
'"
shell
"docker exec --user git
#{
node
}
bash -c '
#{
cmd
}
'"
modify_repo_access_time
(
node
,
repo_path
,
"24 hours ago"
)
end
end
def
remove_repo_from_disk
(
repo_path
)
def
remove_repo_from_disk
(
repo_path
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment