Skip to content
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

ProgramAB with xml parser #1372

Open
wants to merge 117 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
fd0f50d
Proposal to be able to set botname or username in aiml
supertick Nov 29, 2023
7562b39
updated version
supertick Nov 29, 2023
b38e50f
init push
supertick Dec 5, 2023
37675a8
dragged in from deps
supertick Dec 5, 2023
768575d
more
supertick Dec 5, 2023
0dce02c
more
supertick Dec 5, 2023
2f50853
hashToHex
supertick Dec 5, 2023
10eb5e0
state change definition
supertick Dec 5, 2023
0473e76
no more oob payload
supertick Dec 5, 2023
a0e79da
formatted xml and fixed ui
supertick Dec 5, 2023
3f763dc
full install copies bots over
supertick Dec 5, 2023
79899d2
jacoco and surefire try 1
supertick Dec 6, 2023
6524acf
try 2
supertick Dec 6, 2023
551099a
try3
supertick Dec 6, 2023
678e8f1
try4
supertick Dec 6, 2023
ff19c54
upped surefire version
supertick Dec 6, 2023
d138598
not filtering opencv surefire 18
supertick Dec 6, 2023
ddba3b2
adding opencv sub deps .. maybe
supertick Dec 6, 2023
c7f001b
trying latest surefire again removed batch-mode
supertick Dec 6, 2023
6177926
adding OpenCV exclusion to pom :(
supertick Dec 6, 2023
5163775
corrected debug-mode
supertick Dec 6, 2023
00e539f
trying on pull_request for jacoco
supertick Dec 6, 2023
18f9a18
worky MockGateway
supertick Dec 9, 2023
975a806
Intial commit
supertick Dec 9, 2023
ffe474d
fixed unit test - mockgateway now with bi-directional reporting
supertick Dec 9, 2023
22fbee4
replaced TestCatcher in clock test with mock gateway
supertick Dec 9, 2023
7b9979b
Merge branch 'mock-gateway' of https://github.com/MyRobotLab/myrobotl…
supertick Dec 9, 2023
115b121
Merge branch 'develop' of https://github.com/MyRobotLab/myrobotlab in…
supertick Dec 10, 2023
cd5ef8d
updated deps
supertick Dec 10, 2023
9158cc2
updated generated pom
supertick Dec 10, 2023
985b8ac
Merge branch 'develop' of https://github.com/MyRobotLab/myrobotlab in…
supertick Dec 10, 2023
3923042
Test for UltrasonicSensor
supertick Dec 10, 2023
f87ef8f
jacoco worky
supertick Dec 10, 2023
ef41092
Merge branch 'develop' of https://github.com/MyRobotLab/myrobotlab in…
supertick Dec 10, 2023
6df28c2
Merge branch 'develop' of https://github.com/MyRobotLab/myrobotlab in…
supertick Dec 10, 2023
e74f6d3
mvn clean verify
supertick Dec 10, 2023
1a1153c
adjusted test logging
supertick Dec 10, 2023
d4fd021
testing if launcher is root cause of ci problem
supertick Dec 10, 2023
bd92b80
was not it
supertick Dec 10, 2023
796966a
fixed ConcurrentModificationException when releasing service
supertick Dec 10, 2023
d2ddcb1
Merge branch 'develop' of https://github.com/MyRobotLab/myrobotlab in…
supertick Dec 10, 2023
dae02fe
this seems to work
supertick Dec 10, 2023
c35d224
test again
supertick Dec 10, 2023
d869231
guessing to the ci problem
supertick Dec 10, 2023
38f5054
back surefire back down to 2.18
supertick Dec 10, 2023
a0fa276
minimal test
supertick Dec 10, 2023
5bbac1c
divide and conquer
supertick Dec 10, 2023
85e5388
adding DependencyTest
supertick Dec 10, 2023
47133b9
javadoc fixes
supertick Dec 10, 2023
0b6496a
adding ServiceInterfaceTest
supertick Dec 10, 2023
c254391
more javadoc fixes
supertick Dec 10, 2023
4216d89
removed swinggui reference
supertick Dec 10, 2023
fdff143
javadoc fix
supertick Dec 10, 2023
602cca8
test
supertick Dec 11, 2023
09e9567
adding more tests
supertick Dec 11, 2023
a535fa9
more
supertick Dec 11, 2023
86f76a6
framework tests
supertick Dec 11, 2023
2f348a5
always publish jacoco from jenkins
supertick Dec 11, 2023
6da5516
full testing enabled
supertick Dec 11, 2023
18fc832
too much infra uses this port moving to 8081
supertick Dec 11, 2023
a071b1c
surefire archive and remove special node
supertick Dec 11, 2023
9cd25dd
ignoring for now
supertick Dec 11, 2023
3296f65
cleaned up jenkinsfile
supertick Dec 12, 2023
e70f1d7
fixed parans
supertick Dec 12, 2023
c957f3f
again
supertick Dec 12, 2023
2fe21a5
update
supertick Dec 12, 2023
c449d5e
processing surefire reporting
supertick Dec 12, 2023
135fa5e
removed debugging
supertick Dec 12, 2023
ced8d7b
updated test
supertick Dec 12, 2023
8686fca
logback-test updated
supertick Dec 12, 2023
8141693
Merge branch 'test-work-1' of https://github.com/MyRobotLab/myrobotla…
supertick Dec 12, 2023
e7635e9
update pom
supertick Dec 12, 2023
1ddc792
raspi fixes need logging
supertick Dec 12, 2023
d79e065
reduce logging
supertick Dec 12, 2023
1c1d243
synchronized around runtime being set to null
supertick Dec 12, 2023
d8a70cf
constant id
supertick Dec 12, 2023
cb7dbe4
dumb logging
supertick Dec 12, 2023
56eb7cc
removal of memory "plan" - losing uses files now
supertick Dec 13, 2023
4c529a1
removal of unused and unwanted classes
supertick Dec 13, 2023
7aab33a
net unit test class
supertick Dec 13, 2023
f54fac0
more kruft removed
supertick Dec 13, 2023
2a361da
reducing kruft
supertick Dec 13, 2023
ff61ef1
winter cleaning
supertick Dec 13, 2023
8fbb160
got me stumped
supertick Dec 13, 2023
9205406
removed concurrency issue
supertick Dec 13, 2023
3c12ca1
thread safe registry removal
supertick Dec 13, 2023
260cabb
gaurding runtime instance
supertick Dec 13, 2023
f533d1a
release related - all tests should release & block
supertick Dec 13, 2023
fe689fd
guard instance lock
supertick Dec 13, 2023
0cf6e71
found unecessary null
supertick Dec 13, 2023
5fee0cb
put nullify in right spot
supertick Dec 13, 2023
eb86a6a
runtime doesnt super.releaseService()
supertick Dec 14, 2023
1efc147
robust getServiceNames
supertick Dec 14, 2023
fdd8685
null check before runtime release
supertick Dec 14, 2023
5231415
last one I think
supertick Dec 14, 2023
c85908a
resetting registry
supertick Dec 14, 2023
80e5ed3
reset runtime
supertick Dec 14, 2023
1b9c28e
regenned pom
supertick Dec 14, 2023
c5b9d09
Merge branch 'develop' of https://github.com/MyRobotLab/myrobotlab in…
supertick Dec 14, 2023
a737117
retiring build.yml and updating pom for surefire and jacoco
supertick Dec 14, 2023
b647ba0
correct test
supertick Dec 14, 2023
010842e
time
supertick Dec 14, 2023
a3fdba7
refactor jenkinsfile
supertick Dec 14, 2023
692611e
logging cleanup and reset log level when log stops
supertick Dec 14, 2023
889247d
externalized rate and perhaps stability of test
supertick Dec 14, 2023
9a94f75
Merge branch 'jacoco-worky' of https://github.com/MyRobotLab/myrobotl…
supertick Dec 14, 2023
3b7610a
bumping build
supertick Dec 14, 2023
842fcf4
required to not interfere with jenkins
supertick Dec 14, 2023
1cebd77
removed deprecated reference in test
supertick Dec 14, 2023
a945d2d
javadoc and small fixes
supertick Dec 14, 2023
6d8f174
Merge branch 'jacoco-worky-min' of github.com-myrobotlab:MyRobotLab/m…
supertick Dec 14, 2023
c4ad10e
javadoc fixes
supertick Dec 14, 2023
577d8aa
Merge branch 'javadoc-1' of github.com-myrobotlab:MyRobotLab/myrobotl…
supertick Dec 14, 2023
2b7c87d
merged
supertick Dec 14, 2023
8eddbe5
npe against non started search
supertick Dec 14, 2023
02569ad
fixed test
supertick Dec 14, 2023
999ab96
reformatted
supertick Apr 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/build.yml → .github/build.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file must be in the .github/workflows folder for git actions to work
# but currently is disabled, since builds are being done by jenkins
name: Java CI

on:
Expand Down Expand Up @@ -82,3 +84,4 @@ jobs:
tag_name: ${{ steps.version.outputs.version }}
generate_release_notes: true
body_path: ./release-template.md

95 changes: 29 additions & 66 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Cancel all jobs - Jenkins.instance.queue.clear()
***********************************************************************************/


pipeline {
// https://plugins.jenkins.io/agent-server-parameter/
// agent { label params['agent-name'] }
Expand Down Expand Up @@ -51,43 +50,25 @@ pipeline {
echo "VERSION ${VERSION}"
echo "BUILD_NUMBER ${BUILD_NUMBER}"



print params['agent-name']
// print System.properties['os.name'].toLowerCase() - access to java object requires permission changes
script {
if (isUnix()) {
sh '''
echo isUnix true
git --version
java -version
mvn -version

'''
echo sh(script: 'env|sort', returnStdout: true)
} else {
bat '''
echo isUnix false
git --version
java -version
mvn -version
set
'''
}
}
}
} // stage build

stage('compile') {
steps {
script {
if (isUnix()) {
sh '''
mvn -Dbuild.number=${BUILD_NUMBER} -DskipTests -q clean compile
'''
} else {
bat(/"${MAVEN_HOME}\bin\mvn" -Dbuild.number=${BUILD_NUMBER} -DskipTests -q clean compile /)
}
}
}
} // stage compile
Expand All @@ -98,91 +79,65 @@ pipeline {
}
steps {
script {
// TODO - integration tests !
if (isUnix()) {
sh '''
mvn test -Dtest=org.myrobotlab.framework.DependencyTest -q
'''
} else {
bat '''
mvn test -Dtest=org.myrobotlab.framework.DependencyTest -q
'''
}
}
}
} // stage verify
} // stage dependencies

stage('verify') {
when {
expression { params.verify == 'true' }
}
steps {
script {
// TODO - integration tests !
if (isUnix()) {
sh '''
mvn -Dfile.encoding=UTF-8 -DargLine="-Xmx1024m" verify --fail-fast -q
'''
} else {
bat '''
mvn -Dfile.encoding=UTF-8 -DargLine="-Xmx1024m" verify --fail-fast -q
'''
}
}
}
} // stage verify

stage('package') {
steps {
script {
if (isUnix()) {
sh '''
mvn -Dbuild.number=${BUILD_NUMBER} -DskipTests -q package
'''
} else {
bat(/"${MAVEN_HOME}\bin\mvn" -Dbuild.number=${BUILD_NUMBER} -DskipTests -q package /)
}
}
}
} // stage compile
} // stage package

stage('javadoc') {
// when {
// // expression { params.javadoc == 'true' }
// expression { env.BRANCH_NAME == 'master' || env.BRANCH_NAME == 'develop' }
// }
when {
// expression { params.javadoc == 'true' }
expression { env.BRANCH_NAME == 'master' || env.BRANCH_NAME == 'develop' }
}
steps {
script {
if (isUnix()) {
sh '''
mvn -q javadoc:javadoc
'''
} else {
bat '''
mvn -q javadoc:javadoc
'''
}
}
}
} // stage javadoc

stage('archive-min') {
when {
expression { env.BRANCH_NAME != 'master' && env.BRANCH_NAME != 'develop' }
}
stage('archive') {
// when {
// expression { env.BRANCH_NAME != 'master' && env.BRANCH_NAME != 'develop' }
// }
steps {
archiveArtifacts 'target/myrobotlab.jar, target/surefire-reports/*, target/*.exec'
archiveArtifacts 'target/myrobotlab.jar, target/surefire-reports/**, target/*.exec, target/site/**'
}
}

stage('archive-javadocs') {
when {
expression { env.BRANCH_NAME == 'master' || env.BRANCH_NAME == 'develop' }
}
steps {
archiveArtifacts 'target/myrobotlab.zip, target/surefire-reports/*, target/*.exec, target/site/**'
}
}
// stage('archive-javadocs') {
// when {
// expression { env.BRANCH_NAME == 'master' || env.BRANCH_NAME == 'develop' }
// }
// steps {
// archiveArtifacts 'target/myrobotlab.zip, target/surefire-reports/*, target/*.exec, target/site/**'
// }
// }

// stage('jacoco') {
// steps {
Expand All @@ -192,9 +147,10 @@ pipeline {
// }

stage('publish-github') {
when { expression { env.BRANCH_NAME == 'master' || env.BRANCH_NAME == 'develop' } }
// when { expression { env.BRANCH_NAME == 'master' || env.BRANCH_NAME == 'develop' } }
when { expression { env.BRANCH_NAME == 'master'} }
steps {
withCredentials([string(credentialsId: 'github-token-2', variable: 'token')]) { // var name "token" is set in cred config and is case senstive
withCredentials([string(credentialsId: 'supertick-github-token', variable: 'token')]) { // var name "token" is set in cred config and is case senstive
echo "publishing ${VERSION_PREFIX}.${BUILD_NUMBER}"
echo "version ${VERSION}"
// for security - your supposed to make it non-interpretive single quotes and let the OS process the interpolation
Expand All @@ -217,5 +173,12 @@ pipeline {
}
}

always {
// publish junit
junit 'target/surefire-reports/**/*.xml'
// Publish JaCoCo coverage report
jacoco(execPattern: '**/target/jacoco.exec')
}

} // post
} // pipeline
3 changes: 1 addition & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2025,9 +2025,8 @@
<excludes>
<exclude>**/integration/*</exclude>
<!-- unfortunately not testing OpenCV is required for ci to work -->
<exclude>**/OpenCV*</exclude>
</excludes>
<!-- required so surefire doesnt die talking to the agent over stdin-->
<!-- required so surefire doesnt die talking to the agent over stdin -->
<forkNode
implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory" />
</configuration>
Expand Down
Loading