-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enable web and nginx slaves #20
Merged
Merged
Changes from all commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
f38fd5d
web: Add web support (+ more slack)
joshmoore 6946a08
web: use omero-install
joshmoore 4396b5c
fix web slave:
atarkowska d4f712a
update git ignore
atarkowska c7aa973
- uses systemd to start services on web and nginx
atarkowska adf2432
update number in rename.py
atarkowska 2e8cf58
revert to trigger
atarkowska 70452e0
move platform specific config to osx file
atarkowska 7e73a63
fix web job
atarkowska c418975
fix permission denied in nginx
atarkowska 58af84d
fix redis IP
atarkowska bcc5724
fix jenkins host in web job
atarkowska f811631
use redis and fix gunicorn IP
atarkowska 9947186
update number in rename
atarkowska dff519e
managing daemons with init scripts
atarkowska af2b571
add selenium hub
atarkowska d79eef8
update rename
atarkowska 6c9bbfb
add JAVA_OPTS to improve selenium nodes
atarkowska 8a47256
find slave IP
atarkowska 7c99dcd
use label rather then name to allow scaling
atarkowska 4c6aed5
add robot node
atarkowska 9d5ae2a
add robot job
atarkowska 2692d4e
clean up hosts
atarkowska be4c46b
more fixes to robot
atarkowska 283c6e6
install more dependences
atarkowska 632a4c6
more fixes
atarkowska feb4f01
install slice2java
atarkowska d216b1b
add robot plugin
atarkowska b9a301a
fix robot job
atarkowska 0e86638
update robot job to publish test results
atarkowska ca05c24
revert BF to push only PRs with default Travis status no-errors
atarkowska d743d1a
fix robot test results
atarkowska 78ea568
add web and robot to daily trigger
atarkowska bfc77f2
add more java opts for selenium hub
atarkowska 59cbbff
adding server systemd node and server job
atarkowska c6f3b59
improving server settings
atarkowska 34d24b1
add server host to web server list
atarkowska 70e55ca
run robot on server host
atarkowska 9aed6b4
update trigger job
atarkowska bd89be8
more selenium java opts
atarkowska ffacf26
update rename.py
atarkowska 8258c08
clean up robot workspace
atarkowska 6e5c61f
manage nginx reload via trigger
atarkowska df7a8aa
use ome/omero-install repo
atarkowska 88af7f5
use SPACENAME for webserver host for robot
atarkowska 60c4aa8
renaming containers and jobs, cleanup
atarkowska 6a38f32
remove robot volume
atarkowska 7914b33
node label remains unchanged
atarkowska 04dc7a7
add custom compose for unix
atarkowska 6a4bef8
change number in rename
atarkowska 2bbd608
remove slack
atarkowska e6cdf81
fix travis
atarkowska 565886f
handle USER_ID in ds
atarkowska File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
jenkins: | ||
user: ${USER_ID} | ||
|
||
omero: | ||
volumes: | ||
- /sys/fs/cgroup:/sys/fs/cgroup:ro | ||
- /run | ||
|
||
web: | ||
volumes: | ||
- /sys/fs/cgroup:/sys/fs/cgroup:ro | ||
- /run | ||
|
||
nginx: | ||
volumes: | ||
- /sys/fs/cgroup:/sys/fs/cgroup:ro | ||
- /run | ||
|
||
robot: | ||
volumes: | ||
- /sys/fs/cgroup:/sys/fs/cgroup:ro | ||
- /run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
EXTRA=${EXTRA:-"docker-compose.osx.yml"} | ||
exec docker-compose -f docker-compose.yml -f "$EXTRA" "$@" | ||
EXTRA=${EXTRA:-"docker-compose.unix.yml"} | ||
exec env USER_ID=$UID docker-compose -f docker-compose.yml -f "$EXTRA" "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<hudson.tasks.Shell_-DescriptorImpl/> | ||
<hudson.tasks.Shell_-DescriptorImpl> | ||
<shell>/bin/bash</shell> | ||
</hudson.tasks.Shell_-DescriptorImpl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<project> | ||
<actions/> | ||
<description></description> | ||
<keepDependencies>false</keepDependencies> | ||
<properties> | ||
<hudson.model.ParametersDefinitionProperty> | ||
<parameterDefinitions> | ||
<hudson.model.StringParameterDefinition> | ||
<name>HOSTNAME</name> | ||
<description></description> | ||
<defaultValue>omero</defaultValue> | ||
</hudson.model.StringParameterDefinition> | ||
</parameterDefinitions> | ||
</hudson.model.ParametersDefinitionProperty> | ||
</properties> | ||
<scm class="hudson.scm.NullSCM"/> | ||
<assignedNode>robot</assignedNode> | ||
<canRoam>false</canRoam> | ||
<disabled>false</disabled> | ||
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> | ||
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> | ||
<triggers/> | ||
<concurrentBuild>false</concurrentBuild> | ||
<builders> | ||
<hudson.tasks.Shell> | ||
<command>rm -rf src</command> | ||
</hudson.tasks.Shell> | ||
<hudson.plugins.copyartifact.CopyArtifact plugin="[email protected]"> | ||
<project>OMERO-build</project> | ||
<filter>src/target/openmicroscopy*zip</filter> | ||
<target></target> | ||
<excludes></excludes> | ||
<selector class="hudson.plugins.copyartifact.StatusBuildSelector"/> | ||
<flatten>true</flatten> | ||
<doNotFingerprintArtifacts>false</doNotFingerprintArtifacts> | ||
</hudson.plugins.copyartifact.CopyArtifact> | ||
<hudson.plugins.copyartifact.CopyArtifact plugin="[email protected]"> | ||
<project>OMERO-build</project> | ||
<filter>src/target/OMERO.server*zip</filter> | ||
<target></target> | ||
<excludes></excludes> | ||
<selector class="hudson.plugins.copyartifact.StatusBuildSelector"/> | ||
<flatten>true</flatten> | ||
<doNotFingerprintArtifacts>false</doNotFingerprintArtifacts> | ||
</hudson.plugins.copyartifact.CopyArtifact> | ||
<hudson.tasks.Shell> | ||
<command>SRC=$WORKSPACE/src | ||
|
||
# Setup configuration for robot job | ||
ZIP_SRC=$(ls openmicroscopy*zip) | ||
unzip $ZIP_SRC | ||
rm -f $ZIP_SRC | ||
mv $WORKSPACE/${ZIP_SRC%.zip} $SRC | ||
|
||
ZIP_DIST=$(ls OMERO.server*.zip) | ||
unzip $ZIP_DIST | ||
rm -f $ZIP_DIST | ||
mv $WORKSPACE/${ZIP_DIST%.zip} $SRC/dist | ||
|
||
source $HOME/omero-virtualenv/bin/activate | ||
|
||
pip install --upgrade --no-deps --force-reinstall -r $SRC/dist/share/web/requirements-py27-nginx.txt | ||
|
||
$SRC/dist/bin/omero config set omero.web.prefix "/web" | ||
|
||
cd $SRC/dist | ||
bash ../components/tests/ui/robot_setup.sh | ||
mv $SRC/dist/robot_ice.config $SRC/components/tests/ui/resources/ | ||
export ICE_CONFIG=$SRC/components/tests/ui/resources/robot_ice.config | ||
$SRC/dist/bin/omero --path $SRC/components/tests/ui/plugins robot config --protocol http --webhost 'SPACENAME-nginx.docker.openmicroscopy.org' --remoteurl 'http://seleniumhub:4444/wd/hub' --dc 'browserName:${BROWSER},javascriptEnabled:True' > $SRC/components/tests/ui/resources/config.txt | ||
|
||
echo Running the UI tests | ||
|
||
$SRC/build.py -f components/tests/ui/build.xml -Dtest.with.fail=false ui-test-web | ||
|
||
#aggregate the various output files. | ||
$SRC/build.py -f components/tests/ui/build.xml aggregate-results | ||
</command> | ||
</hudson.tasks.Shell> | ||
</builders> | ||
<publishers> | ||
<hudson.plugins.robot.RobotPublisher plugin="[email protected]"> | ||
<outputPath>$WORKSPACE/src/components/tests/ui/target/reports</outputPath> | ||
<reportFileName>report.html</reportFileName> | ||
<logFileName>log.html</logFileName> | ||
<outputFileName>output.xml</outputFileName> | ||
<disableArchiveOutput>false</disableArchiveOutput> | ||
<passThreshold>100.0</passThreshold> | ||
<unstableThreshold>80.0</unstableThreshold> | ||
<otherFiles> | ||
<string></string> | ||
</otherFiles> | ||
<enableCache>true</enableCache> | ||
<onlyCritical>true</onlyCritical> | ||
</hudson.plugins.robot.RobotPublisher> | ||
</publishers> | ||
<buildWrappers/> | ||
</project> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this reordering made on purpose ? This will set
none
as the default Travis status to use which might have some unwanted effect.