Skip to content

Commit

Permalink
cutover a few more places from sftp to home.apache.org to lucenenight…
Browse files Browse the repository at this point in the history
…ly GitHub pages
  • Loading branch information
mikemccand committed Aug 27, 2024
1 parent 86f9a85 commit e807650
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 22 deletions.
3 changes: 1 addition & 2 deletions src/python/nightlyBench.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import glob
import os
import pickle
import pysftp
import random
import re
import shutil
Expand Down Expand Up @@ -1447,7 +1446,7 @@ def writeIndexHTML(searchChartData, days):
w('<br><br><b>Others:</b>')
w('<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="stored_fields_benchmarks.html">Stored fields geonames benchmarks</a>')
w('<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="search_gc_jit.html">GC/JIT metrics during search benchmarks</a>')
w('<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../geobench.html">Geo spatial benchmarks</a>')
w('<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="geobench.html">Geo spatial benchmarks</a>')
w('<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="sparseResults.html">Sparse vs dense doc values performance on NYC taxi ride corpus</a>')
w('<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="antcleantest.html">"gradle -p lucene test" and "gradle precommit" time in lucene</a>')
w('<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="checkIndexTime.html">CheckIndex time</a>')
Expand Down
8 changes: 0 additions & 8 deletions src/python/runNightlyGradleTestPrecommit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import pysftp
import re
import shutil
import time
Expand Down Expand Up @@ -361,13 +360,6 @@ def getLogFile(then, what):
then.day,
what)

def copyChart():
with pysftp.Connection('home.apache.org', username='mikemccand') as c:
with c.cd('public_html/lucenebench'):
#c.mkdir('lucenebench')
# TODO: this is not incremental...
c.put('%s/antcleantest.html' % constants.NIGHTLY_REPORTS_DIR, 'antcleantest.html')

if __name__ == '__main__':
if '-chart' in sys.argv:
writeGraph()
Expand Down
9 changes: 3 additions & 6 deletions src/python/sumAnalyzerPerf.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ def readResults(targetdir, lang):
allResults.sort()
allResultsJa.sort()

with open('analyzers.html', 'w') as f:
# write report directly into local (beast3) clone of lucenenightly repo; nightly
# build script will add/commit/push this change each night:
with open('/l/reports.nightly/analyzers.html', 'w') as f:

f.write('''
<html>
Expand Down Expand Up @@ -245,10 +247,5 @@ def readResults(targetdir, lang):
</html>
''')

import pysftp
with pysftp.Connection('home.apache.org', username='mikemccand') as c:
with c.cd('public_html/lucenebench'):
c.put('analyzers.html', 'analyzers.html')

print
print('done sumAnalyzerPerf.py')
7 changes: 1 addition & 6 deletions src/python/writeGeoShapeGraphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import os
import datetime
import pickle
import pysftp

nextGraph = 500
graphCount = 0
Expand Down Expand Up @@ -203,7 +202,7 @@ def add(data, key, timeStamp, value):
data[key] = {}
data[key][timeStamp] = value

with open('/tmp/geoshapebench.html', 'w') as f:
with open('/l/reports.nightly/geoshapebench.html', 'w') as f:
f.write('''<!DOCTYPE html>
<html lang="en">
<head>
Expand Down Expand Up @@ -326,7 +325,3 @@ def add(data, key, timeStamp, value):
</body>
</html>
''')

with pysftp.Connection('people.apache.org', username='ivera', private_key='/Users/ivera/.ssh/id_rsa') as c:
with c.cd('public_html'):
c.put('/tmp/geoshapebench.html', 'geoshapebench.html')

0 comments on commit e807650

Please sign in to comment.