Page MenuHomePhabricator

Codesearch index for operations/puppet may be outdated
Closed, ResolvedPublic

Description

https://codesearch.wmflabs.org/search/?q=mobilelanding&i=nope&files=&repos= is finding:

operations / puppet
modules/mediawiki/templates/apache/sites/wwwportals.conf.erb
94
95    # Everything will be redirected to the appropriate lang.m.wikipedia.org or lang.zero.wikipedia.org based on zero configuration @ meta
96    RewriteRule ^/$ /w/mobilelanding.php [L]
97<%= sethandler %>
98</VirtualHost>

But this was removed a while ago. The permalink points to tree 9f1e9d99ec81c7cacb1b98cb3cdbc17113935d31 which is from three months ago (2 January 2019).

Event Timeline

Mentioned in SAL (#wikimedia-cloud) [2019-03-28T08:13:48Z] <legoktm> legoktm@codesearch4:/srv/puppet$ git pull # T219248

So when I set this up in January, I assumed hound would do the git pulls by itself. I guess it doesn't, and we need a cronjob to do so. Pulled it manually for now.

A search for afl_log_id is showing a link with this permalink.

That permalink is from a commit 4 months ago. There were newer commits to it from 9 weeks ago and 8 weeks ago, which appear to not yet be reflected in the index.

@D3r1ck01 Looks like you're a member as well. Would you like to try to update the index for this repo?

@D3r1ck01 Looks like you're a member as well. Would you like to try to update the index for this repo?

I'm also a maintainer so I went ahead and updated it. Let me know if it's fixed for now. Of course a better solution is needed (I dream of puppetizing codesearch)

The cronjob is in place and it's working just fine. I will document this and call it done for now.

Legoktm assigned this task to Ladsgroup.

For reference:

legoktm@codesearch4:~$ sudo crontab -u ladsgroup -l
# m h  dom mon dow   command
17 * * * * sudo bash /home/ladsgroup/puppet.sh > /home/ladsgroup/puppet.out 2> /home/ladsgroup/puppet.err
legoktm@codesearch4:~$ sudo cat /home/ladsgroup/puppet.sh
cd /srv/puppet
git pull