Skip to content

Commit

Permalink
Try to speed up project-reset E2E test
Browse files Browse the repository at this point in the history
It's taking 30-60 seconds for finishProjectReset to complete now, and
I'm starting to suspect that we might not be clearing the NFS directory
cache that actually needs clearing. So I'm doing an `ls` on the `.hg`
folder to see if that makes a difference.
  • Loading branch information
rmunn committed May 10, 2024
1 parent 5743922 commit 62d40ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hgweb/command-runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ echo ""
# Run the hg command, simply output to stdout
first_char=$(echo $project_code | cut -c1)
# Ensure NFS cache is refreshed in case project repo changed in another pod (e.g., project reset)
ls /var/hg/repos/$first_char/$project_code >/dev/null 2>/dev/null # Don't need output; this is enough to refresh NFS dir cache
ls /var/hg/repos/$first_char/$project_code/.hg >/dev/null 2>/dev/null # Don't need output; this is enough to refresh NFS dir cache
# Sometimes invalidatedircache is called after deleting a project, so the cd would fail. So exit fast in that case.
[ "x$command_name" = "xinvalidatedircache" ] && exit 0
cd /var/hg/repos/$first_char/$project_code
Expand Down

0 comments on commit 62d40ca

Please sign in to comment.