Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GstLAL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lscsoft
GstLAL
Commits
2a6fd7e5
Commit
2a6fd7e5
authored
6 years ago
by
Alexander Pace
Browse files
Options
Downloads
Patches
Plain Diff
Apply a patch disabling servicediscovery before running the offline makefile.
parent
f695ae70
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+9
-0
9 additions, 0 deletions
.gitlab-ci.yml
gstlal-inspiral/tests/disable_service_discovery.patch
+90
-0
90 additions, 0 deletions
gstlal-inspiral/tests/disable_service_discovery.patch
with
99 additions
and
0 deletions
.gitlab-ci.yml
+
9
−
0
View file @
2a6fd7e5
...
...
@@ -277,7 +277,16 @@ test:offline:
-
export LAL_DATA_PATH=${GSTLAL_DIR}/lalsuite-extra/data/lalsimulation/
-
cd gstlal-inspiral/tests
# Patch gstlal_inspiral to disable servicediscovery/avahi:
-
patch ${GSTLAL_DIR}/bin/gstlal_inspiral ./disable_service_discovery.patch
# Run the makefile:
-
make -f Makefile.offline_tutorial_test
# Unpatch gstlal_inspiral to bring it back to normal:
-
patch -R ${GSTLAL_DIR}/bin/gstlal_inspiral ./disable_service_discovery.patch
-
cp -rf ./WEBDIR/gstlal_offline_tutorial ../../public/
artifacts
:
expire_in
:
24h
...
...
This diff is collapsed.
Click to expand it.
gstlal-inspiral/tests/disable_service_discovery.patch
0 → 100644
+
90
−
0
View file @
2a6fd7e5
--- gstlal_inspiral 2018-11-09 06:24:21.479979000 -0800
+++ gstlal_inspiral.1 2018-11-09 06:27:05.681872000 -0800
@@ -170,7 +170,7 @@
from gstlal import bottle
from gstlal import datasource
from gstlal import far
-from gstlal import httpinterface
+#from gstlal import httpinterface
from gstlal import hoftcache
from gstlal import inspiral
from gstlal import inspiral_pipe
@@ -637,15 +637,15 @@
# uncomment the next line to show tracebacks when something fails
# in the web server
#bottle.app().catchall = False
- httpservers = httpinterface.HTTPServers(
- service_name = "%s.gstlal_inspiral" % (options.job_tag if options.job_tag is not None else base64.urlsafe_b64encode(uuid.uuid4().bytes)),
- service_domain = service_domain(options.gracedb_search, options.gracedb_pipeline),
- service_properties = {
- "cwd": os.getcwd(),
- "pid": str(os.getpid()),
- },
- verbose = options.verbose
- )
+ #httpservers = httpinterface.HTTPServers(
+ # service_name = "%s.gstlal_inspiral" % (options.job_tag if options.job_tag is not None else base64.urlsafe_b64encode(uuid.uuid4().bytes)),
+ # service_domain = service_domain(options.gracedb_search, options.gracedb_pipeline),
+ # service_properties = {
+ # "cwd": os.getcwd(),
+ # "pid": str(os.getpid()),
+ # },
+ # verbose = options.verbose
+ #)
#
@@ -653,25 +653,25 @@
#
- @bottle.route("/")
- @bottle.route("/index.html")
- def index(job_tag = options.job_tag, instruments = all_instruments):
- # get the host and port to report in the links from the
- # request we've received so that the URLs contain the IP
- # address by which client has contacted us
- netloc = bottle.request.urlparts[1]
- server_address = "http://%s" % netloc
- yield "<html><body>\n<h3>%s %s %s %s</h3>\n<p>\n" % (job_tag, os.environ.get("GSTLAL_LL_JOB"), netloc, " ".join(sorted(instruments)))
- for route in sorted(bottle.default_app().routes, key = lambda route: route.rule):
- # don't create links back to this page
- if route.rule in ("/", "/index.html"):
- continue
- # only create links for GET methods
- if route.method != "GET":
- continue
- yield "<a href=\"%s%s\">%s</a><br>\n" % (server_address, route.rule, route.rule)
- yield "</p>\n</body></html>"
- # FIXME: get service-discovery working, then don't do this
+ #@bottle.route("/")
+ #@bottle.route("/index.html")
+ #def index(job_tag = options.job_tag, instruments = all_instruments):
+ # # get the host and port to report in the links from the
+ # # request we've received so that the URLs contain the IP
+ # # address by which client has contacted us
+ # netloc = bottle.request.urlparts[1]
+ # server_address = "http://%s" % netloc
+ # yield "<html><body>\n<h3>%s %s %s %s</h3>\n<p>\n" % (job_tag, os.environ.get("GSTLAL_LL_JOB"), netloc, " ".join(sorted(instruments)))
+ # for route in sorted(bottle.default_app().routes, key = lambda route: route.rule):
+ # # don't create links back to this page
+ # if route.rule in ("/", "/index.html"):
+ # continue
+ # # only create links for GET methods
+ # if route.method != "GET":
+ # continue
+ # yield "<a href=\"%s%s\">%s</a><br>\n" % (server_address, route.rule, route.rule)
+ # yield "</p>\n</body></html>"
+ ## FIXME: get service-discovery working, then don't do this
if "GSTLAL_LL_JOB" in os.environ:
open("%s_registry.txt" % os.environ["GSTLAL_LL_JOB"], "w").write("http://%s:%s/\n" % (socket.gethostname(), httpservers[0][0].port))
@@ -911,7 +911,7 @@
#
- del httpservers
+ #del httpservers
bottle.default_app.pop()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment