Page MenuHomePhabricator

Changes in ec2_locations.ini can block updating the WebPageTest server
Closed, ResolvedPublic

Description

The WebPageTest server updates itself directly for git by running git pull origin master in the cron. One problem for us is that we have edited the ec2_locations.ini file and when we run and update that files is marked as modified:

git status
...
modified:   ec2_locations.ini
...

If that files is updated in the repo, it breaks our build. We should look into how best add our own changes (I guess easiest by looking at the .gitignore file to see what files that are supposed to be ignored and find the update pattern, since we are missing docs).

Event Timeline

Peter triaged this task as Medium priority.Jul 5 2017, 8:42 AM

.git/info/exclude won't work with tracked files, but there is a workaround described on https://stackoverflow.com/questions/10879783/git-doesnt-ignore-2-specifically-named-files

So I did that:

ubuntu@ip-172-31-16-36:/var/www/webpagetest$ sudo git update-index --assume-unchanged www/settings/ec2_locations.ini

And sure enough, it's gone from git status:

ubuntu@ip-172-31-16-36:/var/www/webpagetest$ git status
On branch master
Your branch is up-to-date with 'origin/master'.

Untracked files:
[...]
Gilles claimed this task.