-
Notifications
You must be signed in to change notification settings - Fork 3
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
Have the code currently used by Martijn #9
Draft
mhdirkse
wants to merge
19
commits into
ibissource:master
Choose a base branch
from
mhdirkse:currentMhdirkse
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 9 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
297f3fc
Fix ibis4pta for Martijn-s laptop
114666c
Rollback changes for debugging, add graphs example and sort version s…
e3bec12
Add an example of Python graphs
dd79e69
Make a graph of the performance test with nice xticks
21ad491
Document graphs.py
fc0783c
Update for running on Thursday Nov 25 2021
9f8aa70
Back to in-memory H2 database
7c920f9
Ignore Python cache
7b73bb3
Updates for todays test run
167c47d
Processing review comments by Gerrit
9355a37
Follow review comments by Gerrit
e25a5bd
Make a start removing unnecessary differences
79dac75
Try reduce differences
8aecead
Try to reduce differences
048395a
Try to reduce differences
4a3399f
Try to reduce differences
4556dc8
Try to reduce differences
d6493a3
Add work directory
f1afc15
Pass f-f version to test correctly to the frank-runner
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,6 @@ buildNumber.properties | |
/.factorypath | ||
/.classpath | ||
/.project | ||
|
||
/target/ | ||
/work |
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,8 @@ | ||
<project default="restart"> | ||
<target name="restart"> | ||
<basename property="project.dir" file="${basedir}"/> | ||
<exec executable="../frank-runner/restart.bat" vmlauncher="false" failonerror="true"> | ||
<arg value="-Dproject.dir=${project.dir}"/> | ||
</exec> | ||
</target> | ||
</project> |
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,3 @@ | ||
maven=true | ||
jdbc.migrator.active=true | ||
ignore.double.jars=true |
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 +1,2 @@ | ||
/~$allIbisVersions.xlsx | ||
pythonHelp/__pycache__/ |
Binary file not shown.
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,72 @@ | ||
# This script produces graphs from the output file of | ||
# the ibis4pta Frank config. See the global variables at | ||
# the top of this script for settings. | ||
# | ||
# This is a Python script that works with Python 3. Please | ||
# install the following before running: | ||
# | ||
# pip3 install numpy | ||
# pip3 install matplotlib | ||
|
||
from matplotlib import pyplot as plt | ||
import numpy as np | ||
import csv | ||
from pythonHelp import pythonHelp | ||
|
||
fileToProcess = "../work/output.csv" | ||
# adapter = "HandlePviewsDispatcher" | ||
# adapter = "HandlePViewsGetData" | ||
# adapter = "HandlePViewsOrchestrate" | ||
# adapter = "HandlePviewsStore" | ||
adapter = "TestXSLTPipe" | ||
|
||
plottedFields = ["min", "max", "first", "last", "p50", "stdDev"] | ||
|
||
rows = [] | ||
with open(fileToProcess, newline="") as csvFile: | ||
reader = csv.DictReader(csvFile, dialect="excel", delimiter=";") | ||
for row in reader: | ||
rows.append(row) | ||
|
||
rowsOfAdapter = [selectedRow for selectedRow in rows if selectedRow["adapter"].strip() == adapter.strip()] | ||
rowsOfAdapter = sorted(rowsOfAdapter, key=lambda row: pythonHelp.sortableVersionKey(pythonHelp.SortableVersion(row["ibisversion"]))) | ||
|
||
def getLabel(previous, current): | ||
newVersion = (previous.getMinor() != current.getMinor()) or (previous.getMajor() != current.getMajor()) | ||
newType = (previous.getKind() != current.getKind()) | ||
if newVersion and (current.getKind() != pythonHelp.SNAPSHOT): | ||
return "N" | ||
if newVersion and (current.getKind() == pythonHelp.SNAPSHOT): | ||
return str(current.getMajor()) + "." + str(current.getMinor()) | ||
if (not newVersion) and newType: | ||
if(current.getKind() == pythonHelp.CANDIDATE): | ||
return "C" | ||
if(current.getKind() == pythonHelp.RELEASE): | ||
return "R" | ||
return None | ||
|
||
tickIdx = [] | ||
tickLabel = [] | ||
if(len(rowsOfAdapter) >= 2): | ||
for i in range(1, len(rowsOfAdapter)): | ||
label = getLabel(pythonHelp.SortableVersion(rowsOfAdapter[i-1]["ibisversion"]), pythonHelp.SortableVersion(rowsOfAdapter[i]["ibisversion"])) | ||
if label is not None: | ||
tickIdx.append(i) | ||
tickLabel.append(label) | ||
|
||
x = np.arange(0, len(rowsOfAdapter)) | ||
yraw = [] | ||
for f in plottedFields: | ||
yraw.append([float(row[f]) for row in rowsOfAdapter]) | ||
ymax = max(max(yraw)) | ||
for currentY in yraw: | ||
y = np.array(currentY) | ||
plt.plot(x,y) | ||
plt.legend(plottedFields) | ||
plt.ylim(0, ymax) | ||
plt.xlabel("version") | ||
plt.ylabel(adapter) | ||
plt.title('Performance trend') | ||
plt.xticks(tickIdx, tickLabel) | ||
plt.grid("on") | ||
plt.show() |
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.
Als je dan toch update, dan naar de laatste stabiele versie (7.6.4) or naar de laatste release candidate (7.7-RC1)