-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
No more truncation of aggregate tables
- Loading branch information
1 parent
0185b09
commit ef7709e
Showing
35 changed files
with
88,253 additions
and
7 deletions.
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
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
37 changes: 37 additions & 0 deletions
37
open_xdmod/modules/xdmod/integration_tests/scripts/post_upgrade_ingest.sh
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,37 @@ | ||
#!/bin/bash | ||
# Tests that cloud ETL works after upgrade + reingestion | ||
|
||
BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
REF_SOURCE=`realpath $BASEDIR/../../tests/artifacts/xdmod-test-artifacts/xdmod/referencedata` | ||
REF_DIR=/var/tmp/referencedata | ||
|
||
sudo -u xdmod xdmod-shredder -r openstack -d $REF_DIR/openstack_upgrade -f openstack | ||
sudo -u xdmod xdmod-ingestor | ||
|
||
phpunit="$(readlink -f ../../../../vendor/bin/phpunit)" | ||
|
||
if [ "$1" = "--junit-output-dir" ]; | ||
then | ||
REGUSER="--log-junit $2/xdmod-regression-user.xml" | ||
PI="--log-junit $2/xdmod-regression-principalinvestigator.xml" | ||
CD="--log-junit $2/xdmod-regression-centerdirector.xml" | ||
CS="--log-junit $2/xdmod-regression-centerstaff.xml" | ||
PUB="--log-junit $2/xdmod-regression-public.xml" | ||
fi | ||
|
||
REG_TEST_USER_ROLE=usr $phpunit $REGUSER lib/Controllers/UsageExplorerCloudTest.php & usrpid=$! | ||
REG_TEST_USER_ROLE=pi $phpunit $PI lib/Controllers/UsageExplorerCloudTest.php & pipid=$! | ||
REG_TEST_USER_ROLE=cd $phpunit $CD lib/Controllers/UsageExplorerCloudTest.php & cdpid=$! | ||
REG_TEST_USER_ROLE=cs $phpunit $CS lib/Controllers/UsageExplorerCloudTest.php & cspid=$! | ||
$phpunit $PUB lib/Controllers/UsageExplorerCloudTest.php & pubpid=$! | ||
|
||
EXIT_STATUS=0 | ||
for pid in $usrpid $pipid $cdpid $cspid $pubpid; | ||
do | ||
wait "$pid" | ||
if [ "$?" -ne "0" ]; | ||
then | ||
EXIT_STATUS=1 | ||
fi | ||
done | ||
exit $EXIT_STATUS |
32 changes: 32 additions & 0 deletions
32
...xdmod/modules/xdmod/regression_tests/lib/Controllers/UsageExplorerCloudPostIngestTest.php
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,32 @@ | ||
<?php | ||
|
||
namespace Controllers; | ||
|
||
class UsageExplorerCloudPostIngestTest extends UsageExplorerTest | ||
{ | ||
|
||
public function csvExportProvider(){ | ||
parent::$baseDir = __DIR__ . '/../../../tests/artifacts/xdmod-test-artifacts/xdmod/post_ingest/'; | ||
parent::defaultSetup(); | ||
|
||
$statistics = array( | ||
'cloud_num_sessions_ended', | ||
'cloud_num_sessions_running', | ||
'cloud_num_sessions_started', | ||
); | ||
|
||
$group_bys = array( | ||
'none', | ||
); | ||
|
||
$varSettings = array( | ||
'realm' => array('Cloud'), | ||
'dataset_type' => array('aggregate', 'timeseries'), | ||
'statistic' => $statistics, | ||
'group_by' => $group_bys, | ||
'aggregation_unit' => array_keys($this->aggregationUnits) | ||
); | ||
|
||
return parent::generateTests($varSettings, '2018-06-01', '2018-06-07'); | ||
} | ||
} |
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
10 changes: 10 additions & 0 deletions
10
...est-artifacts/xdmod/post_ingest/none/cloud_num_sessions_ended/aggregate-Day-reference.csv
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,10 @@ | ||
title | ||
"Number of Sessions Ended" | ||
parameters | ||
|
||
start,end | ||
2018-06-01,2018-06-07 | ||
--------- | ||
Summary,"Number of Sessions Ended" | ||
Screwdriver,23 | ||
--------- |
10 changes: 10 additions & 0 deletions
10
...t-artifacts/xdmod/post_ingest/none/cloud_num_sessions_ended/aggregate-Month-reference.csv
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,10 @@ | ||
title | ||
"Number of Sessions Ended" | ||
parameters | ||
|
||
start,end | ||
2018-06-01,2018-06-07 | ||
--------- | ||
Summary,"Number of Sessions Ended" | ||
Screwdriver,23 | ||
--------- |
10 changes: 10 additions & 0 deletions
10
...artifacts/xdmod/post_ingest/none/cloud_num_sessions_ended/aggregate-Quarter-reference.csv
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,10 @@ | ||
title | ||
"Number of Sessions Ended" | ||
parameters | ||
|
||
start,end | ||
2018-06-01,2018-06-07 | ||
--------- | ||
Summary,"Number of Sessions Ended" | ||
Screwdriver,23 | ||
--------- |
10 changes: 10 additions & 0 deletions
10
...st-artifacts/xdmod/post_ingest/none/cloud_num_sessions_ended/aggregate-Year-reference.csv
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,10 @@ | ||
title | ||
"Number of Sessions Ended" | ||
parameters | ||
|
||
start,end | ||
2018-06-01,2018-06-07 | ||
--------- | ||
Summary,"Number of Sessions Ended" | ||
Screwdriver,23 | ||
--------- |
16 changes: 16 additions & 0 deletions
16
...st-artifacts/xdmod/post_ingest/none/cloud_num_sessions_ended/timeseries-Day-reference.csv
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,16 @@ | ||
title | ||
"Number of Sessions Ended" | ||
parameters | ||
|
||
start,end | ||
2018-06-01,2018-06-07 | ||
--------- | ||
Day,"[Screwdriver] Number of Sessions Ended" | ||
2018-06-01,0 | ||
2018-06-02,0 | ||
2018-06-03,0 | ||
2018-06-04,0 | ||
2018-06-05,3 | ||
2018-06-06,0 | ||
2018-06-07,20 | ||
--------- |
10 changes: 10 additions & 0 deletions
10
...-artifacts/xdmod/post_ingest/none/cloud_num_sessions_ended/timeseries-Month-reference.csv
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,10 @@ | ||
title | ||
"Number of Sessions Ended" | ||
parameters | ||
|
||
start,end | ||
2018-06-01,2018-06-07 | ||
--------- | ||
Month,"[Screwdriver] Number of Sessions Ended" | ||
2018-04,23 | ||
--------- |
10 changes: 10 additions & 0 deletions
10
...rtifacts/xdmod/post_ingest/none/cloud_num_sessions_ended/timeseries-Quarter-reference.csv
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,10 @@ | ||
title | ||
"Number of Sessions Ended" | ||
parameters | ||
|
||
start,end | ||
2018-06-01,2018-06-07 | ||
--------- | ||
Quarter,"[Screwdriver] Number of Sessions Ended" | ||
"2018 Q2",23 | ||
--------- |
10 changes: 10 additions & 0 deletions
10
...t-artifacts/xdmod/post_ingest/none/cloud_num_sessions_ended/timeseries-Year-reference.csv
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,10 @@ | ||
title | ||
"Number of Sessions Ended" | ||
parameters | ||
|
||
start,end | ||
2018-06-01,2018-06-07 | ||
--------- | ||
Year,"[Screwdriver] Number of Sessions Ended" | ||
2018,23 | ||
--------- |
10 changes: 10 additions & 0 deletions
10
...t-artifacts/xdmod/post_ingest/none/cloud_num_sessions_running/aggregate-Day-reference.csv
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,10 @@ | ||
title | ||
"Number of Active Sessions" | ||
parameters | ||
|
||
start,end | ||
2018-06-01,2018-06-07 | ||
--------- | ||
Summary,"Number of Active Sessions (Number of Sessions)" | ||
Screwdriver,23 | ||
--------- |
10 changes: 10 additions & 0 deletions
10
...artifacts/xdmod/post_ingest/none/cloud_num_sessions_running/aggregate-Month-reference.csv
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,10 @@ | ||
title | ||
"Number of Active Sessions" | ||
parameters | ||
|
||
start,end | ||
2018-06-01,2018-06-07 | ||
--------- | ||
Summary,"Number of Active Sessions (Number of Sessions)" | ||
Screwdriver,23 | ||
--------- |
10 changes: 10 additions & 0 deletions
10
...tifacts/xdmod/post_ingest/none/cloud_num_sessions_running/aggregate-Quarter-reference.csv
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,10 @@ | ||
title | ||
"Number of Active Sessions" | ||
parameters | ||
|
||
start,end | ||
2018-06-01,2018-06-07 | ||
--------- | ||
Summary,"Number of Active Sessions (Number of Sessions)" | ||
Screwdriver,23 | ||
--------- |
10 changes: 10 additions & 0 deletions
10
...-artifacts/xdmod/post_ingest/none/cloud_num_sessions_running/aggregate-Year-reference.csv
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,10 @@ | ||
title | ||
"Number of Active Sessions" | ||
parameters | ||
|
||
start,end | ||
2018-06-01,2018-06-07 | ||
--------- | ||
Summary,"Number of Active Sessions (Number of Sessions)" | ||
Screwdriver,23 | ||
--------- |
16 changes: 16 additions & 0 deletions
16
...-artifacts/xdmod/post_ingest/none/cloud_num_sessions_running/timeseries-Day-reference.csv
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,16 @@ | ||
title | ||
"Number of Active Sessions" | ||
parameters | ||
|
||
start,end | ||
2018-06-01,2018-06-07 | ||
--------- | ||
Day,"[Screwdriver] Number of Active Sessions (Number of Sessions)" | ||
2018-06-01,17 | ||
2018-06-02,17 | ||
2018-06-03,17 | ||
2018-06-04,17 | ||
2018-06-05,23 | ||
2018-06-06,20 | ||
2018-06-07,20 | ||
--------- |
10 changes: 10 additions & 0 deletions
10
...rtifacts/xdmod/post_ingest/none/cloud_num_sessions_running/timeseries-Month-reference.csv
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,10 @@ | ||
title | ||
"Number of Active Sessions" | ||
parameters | ||
|
||
start,end | ||
2018-06-01,2018-06-07 | ||
--------- | ||
Month,"[Screwdriver] Number of Active Sessions (Number of Sessions)" | ||
2018-04,23 | ||
--------- |
10 changes: 10 additions & 0 deletions
10
...ifacts/xdmod/post_ingest/none/cloud_num_sessions_running/timeseries-Quarter-reference.csv
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,10 @@ | ||
title | ||
"Number of Active Sessions" | ||
parameters | ||
|
||
start,end | ||
2018-06-01,2018-06-07 | ||
--------- | ||
Quarter,"[Screwdriver] Number of Active Sessions (Number of Sessions)" | ||
"2018 Q2",23 | ||
--------- |
10 changes: 10 additions & 0 deletions
10
...artifacts/xdmod/post_ingest/none/cloud_num_sessions_running/timeseries-Year-reference.csv
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,10 @@ | ||
title | ||
"Number of Active Sessions" | ||
parameters | ||
|
||
start,end | ||
2018-06-01,2018-06-07 | ||
--------- | ||
Year,"[Screwdriver] Number of Active Sessions (Number of Sessions)" | ||
2018,23 | ||
--------- |
10 changes: 10 additions & 0 deletions
10
...t-artifacts/xdmod/post_ingest/none/cloud_num_sessions_started/aggregate-Day-reference.csv
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,10 @@ | ||
title | ||
"Number of Sessions Started" | ||
parameters | ||
|
||
start,end | ||
2018-06-01,2018-06-07 | ||
--------- | ||
Summary,"Number of Sessions Started" | ||
Screwdriver,23 | ||
--------- |
10 changes: 10 additions & 0 deletions
10
...artifacts/xdmod/post_ingest/none/cloud_num_sessions_started/aggregate-Month-reference.csv
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,10 @@ | ||
title | ||
"Number of Sessions Started" | ||
parameters | ||
|
||
start,end | ||
2018-06-01,2018-06-07 | ||
--------- | ||
Summary,"Number of Sessions Started" | ||
Screwdriver,23 | ||
--------- |
10 changes: 10 additions & 0 deletions
10
...tifacts/xdmod/post_ingest/none/cloud_num_sessions_started/aggregate-Quarter-reference.csv
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,10 @@ | ||
title | ||
"Number of Sessions Started" | ||
parameters | ||
|
||
start,end | ||
2018-06-01,2018-06-07 | ||
--------- | ||
Summary,"Number of Sessions Started" | ||
Screwdriver,23 | ||
--------- |
Oops, something went wrong.