Commit 9b903ea2 authored by rmagueta's avatar rmagueta

Merge remote-tracking branch 'origin/develop' into develop-NR_SA_F1AP_5GRECORDS

parents 6222463f 3dc9e3d1
...@@ -343,7 +343,7 @@ class Containerize(): ...@@ -343,7 +343,7 @@ class Containerize():
startOfTargetImageCreation = False startOfTargetImageCreation = False
buildStatus = False buildStatus = False
for line in inputfile: for line in inputfile:
result = re.search('FROM .* as ' + image + '$', str(line)) result = re.search('FROM .* [aA][sS] ' + image + '$', str(line))
if result is not None: if result is not None:
startOfTargetImageCreation = True startOfTargetImageCreation = True
if startOfTargetImageCreation: if startOfTargetImageCreation:
......
...@@ -61,24 +61,15 @@ gNBs = ...@@ -61,24 +61,15 @@ gNBs =
initialDLBWPk0_0 = 0; initialDLBWPk0_0 = 0;
#initialULBWPmappingType #initialULBWPmappingType
#0=typeA,1=typeB #0=typeA,1=typeB
initialDLBWPmappingType_0 = 0; initialDLBWPmappingType_0 = 0;#for DL slot
#this is SS=1,L=13 #this is SS=1,L=13
initialDLBWPstartSymbolAndLength_0 = 40; initialDLBWPstartSymbolAndLength_0 = 40;
initialDLBWPk0_1 = 0; initialDLBWPk0_1 = 0;#for mixed slot
initialDLBWPmappingType_1 = 0; initialDLBWPmappingType_1 = 0;
#this is SS=2,L=12 #this is SS=1,L=5
initialDLBWPstartSymbolAndLength_1 = 53; initialDLBWPstartSymbolAndLength_1 = 57;
initialDLBWPk0_2 = 0;
initialDLBWPmappingType_2 = 0;
#this is SS=1,L=12
initialDLBWPstartSymbolAndLength_2 = 54;
initialDLBWPk0_3 = 0;
initialDLBWPmappingType_3 = 0;
#this is SS=1,L=4 //5 (4 is for 43, 5 is for 57)
initialDLBWPstartSymbolAndLength_3 = 57; //43; //57;
#uplinkConfigCommon #uplinkConfigCommon
#frequencyInfoUL #frequencyInfoUL
ul_frequencyBand = 78; ul_frequencyBand = 78;
...@@ -103,7 +94,7 @@ gNBs = ...@@ -103,7 +94,7 @@ gNBs =
prach_msg1_FDM = 0; prach_msg1_FDM = 0;
prach_msg1_FrequencyStart = 0; prach_msg1_FrequencyStart = 0;
zeroCorrelationZoneConfig = 13; zeroCorrelationZoneConfig = 13;
preambleReceivedTargetPower = -100; preambleReceivedTargetPower = -90;
#preamblTransMax (0...10) = (3,4,5,6,7,8,10,20,50,100,200) #preamblTransMax (0...10) = (3,4,5,6,7,8,10,20,50,100,200)
preambleTransMax = 6; preambleTransMax = 6;
#powerRampingStep #powerRampingStep
......
...@@ -40,6 +40,8 @@ import shlex #lexical analysis ...@@ -40,6 +40,8 @@ import shlex #lexical analysis
import json #json structures import json #json structures
import datetime #now() and date formating import datetime #now() and date formating
from datetime import datetime from datetime import datetime
import re
import gitlab
#----------------------------------------------------------- #-----------------------------------------------------------
# Class Declaration # Class Declaration
...@@ -79,7 +81,7 @@ class gDashboard: ...@@ -79,7 +81,7 @@ class gDashboard:
#line 2 empty #line 2 empty
#line 3 is for the column names #line 3 is for the column names
i=3 i=3
row =["MR","Created_at","Author","Title","Assignee", "Reviewer", "CAN START","IN PROGRESS","COMPLETED","OK MERGE","Merge conflicts"] row =["MR","Created_at","Author","Title","Assignee", "Reviewer", "CAN START","IN PROGRESS","COMPLETED","Review Form","OK MERGE","Merge conflicts"]
self.sheet.insert_row(row, index=i, value_input_option='RAW') self.sheet.insert_row(row, index=i, value_input_option='RAW')
#line 4 onward, MR data lines #line 4 onward, MR data lines
...@@ -120,10 +122,32 @@ class gDashboard: ...@@ -120,10 +122,32 @@ class gDashboard:
else: else:
conflicts = "" conflicts = ""
#add a column flagging that the review form is present
#we use gitlab API to parse the MR notes
gl = gitlab.Gitlab.from_config('OAI')
project_id = 223
project = gl.projects.get(project_id)
#get the opened MR in the project
mrs = project.mergerequests.list(state='opened')
for m in range (0,len(mrs)):
if mrs[m].iid==self.d[x]['iid']:#check the iid is the one we are on
mr_notes = mrs[m].notes.list(all=True)
n=0
found=False
review_form=""
while found==False and n<len(mr_notes):
res=re.search('Code Review by',mr_notes[n].body)#this is the marker we are looking for in all notes
if res!=None:
review_form = "X"
found=True
n+=1
#build final row to be inserted, the first column is left empty for now, will be filled afterward with hyperlinks to gitlab MR #build final row to be inserted, the first column is left empty for now, will be filled afterward with hyperlinks to gitlab MR
row =["", str(date_time_obj.date()),str(self.d[x]['author']['name']),str(self.d[x]['title']),\ row =["", str(date_time_obj.date()),str(self.d[x]['author']['name']),str(self.d[x]['title']),\
assignee, reviewer,\ assignee, reviewer,\
milestone1,milestone2,milestone3,milestone4,conflicts] milestone1,milestone2,milestone3,review_form,milestone4,conflicts]
#insert the row to worksheet #insert the row to worksheet
self.sheet.insert_row(row, index=i, value_input_option='RAW') self.sheet.insert_row(row, index=i, value_input_option='RAW')
...@@ -246,10 +270,10 @@ class gDashboard: ...@@ -246,10 +270,10 @@ class gDashboard:
"sheetId": sheetId, "sheetId": sheetId,
"dimension": "COLUMNS", "dimension": "COLUMNS",
"startIndex": 6, "startIndex": 6,
"endIndex": 10 "endIndex": 11
}, },
"properties": { "properties": {
"pixelSize": 135 "pixelSize": 120
}, },
"fields": "pixelSize" "fields": "pixelSize"
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment