fiftyone.geolocation 4.3.4 → 4.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ci/common-ci/.github/labels.yml +12 -0
- package/ci/common-ci/.github/workflows/sync-labels.yml +2 -0
- package/ci/common-ci/release-config.json +20 -148
- package/ci/common-ci/scripts/modules/51DDownloadDataFileModule/51DDownloadDataFileModule.psm1 +38 -14
- package/ci/common-ci/scripts/modules/51DGitModule/51DGitModule.psm1 +17 -13
- package/package.json +1 -1
|
@@ -22,6 +22,12 @@
|
|
|
22
22
|
- name: "status: duplicate"
|
|
23
23
|
description: This issue or pull request already exists
|
|
24
24
|
color: cfd3d7
|
|
25
|
+
- name: "status: awaiting external input"
|
|
26
|
+
description: This item is awaiting for external input
|
|
27
|
+
color: 6699ff
|
|
28
|
+
- name: "status: will not fix"
|
|
29
|
+
description: This item will not be fixed
|
|
30
|
+
color: 6392fa
|
|
25
31
|
- name: "status: released/4.3.0"
|
|
26
32
|
description: This change was released in the specified version
|
|
27
33
|
color: a8d131
|
|
@@ -66,3 +72,9 @@
|
|
|
66
72
|
- name: "scheduled: 15th Dec 2021"
|
|
67
73
|
description: This item has been scheduled for 15th Dec 2021 release
|
|
68
74
|
color: 6ff076
|
|
75
|
+
- name: "scheduled: 12th Jan 2022"
|
|
76
|
+
description: This item has been scheduled for 12th Jan 2022 release
|
|
77
|
+
color: d49233
|
|
78
|
+
- name: "scheduled: 19th Jan 2022"
|
|
79
|
+
description: This item has been scheduled for 19th Jan 2022 release
|
|
80
|
+
color: d49291
|
|
@@ -26,6 +26,8 @@ jobs:
|
|
|
26
26
|
51Degrees/device-detection-cxx
|
|
27
27
|
51Degrees/device-detection-data
|
|
28
28
|
51Degrees/device-detection-dotnet
|
|
29
|
+
51Degrees/device-detection-go
|
|
30
|
+
51Degrees/device-detection-examples-go
|
|
29
31
|
51Degrees/device-detection-java
|
|
30
32
|
51Degrees/device-detection-nginx
|
|
31
33
|
51Degrees/device-detection-node
|
|
@@ -1,44 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"repositories": {
|
|
3
3
|
"common-ci": {
|
|
4
|
-
"version": "4.3.
|
|
4
|
+
"version": "4.3.41",
|
|
5
5
|
"isLeaf": true
|
|
6
6
|
},
|
|
7
7
|
"device-detection-cxx": {
|
|
8
|
-
"version": "4.3.
|
|
8
|
+
"version": "4.3.12",
|
|
9
9
|
"isLeaf": false,
|
|
10
10
|
"dependencies": [
|
|
11
11
|
"common-ci"
|
|
12
12
|
]
|
|
13
13
|
},
|
|
14
|
-
"device-detection-varnish": {
|
|
15
|
-
"version": "4.3.2",
|
|
16
|
-
"isLeaf": false,
|
|
17
|
-
"dependencies": [
|
|
18
|
-
"common-ci",
|
|
19
|
-
"device-detection-cxx"
|
|
20
|
-
]
|
|
21
|
-
},
|
|
22
|
-
"device-detection-nginx": {
|
|
23
|
-
"version": "4.3.4",
|
|
24
|
-
"isLeaf": false,
|
|
25
|
-
"dependencies": [
|
|
26
|
-
"common-ci",
|
|
27
|
-
"device-detection-cxx"
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
"device-detection-java": {
|
|
31
|
-
"version": "4.3.10",
|
|
32
|
-
"packageName": "pipeline.device-detection",
|
|
33
|
-
"versionVariableName": "devicedetection.version",
|
|
34
|
-
"isLeaf": false,
|
|
35
|
-
"dependencies": [
|
|
36
|
-
"common-ci",
|
|
37
|
-
"device-detection-cxx"
|
|
38
|
-
]
|
|
39
|
-
},
|
|
40
14
|
"location-java": {
|
|
41
|
-
"version": "4.3.
|
|
15
|
+
"version": "4.3.7",
|
|
42
16
|
"packageName": "pipeline.geo-location",
|
|
43
17
|
"versionVariableName": "geolocation.version",
|
|
44
18
|
"isLeaf": false,
|
|
@@ -47,93 +21,36 @@
|
|
|
47
21
|
"device-detection-java"
|
|
48
22
|
]
|
|
49
23
|
},
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
"packageName": "
|
|
53
|
-
"versionVariableName": "
|
|
54
|
-
"isLeaf": false,
|
|
55
|
-
"dependencies": [
|
|
56
|
-
"common-ci",
|
|
57
|
-
"location-java"
|
|
58
|
-
]
|
|
59
|
-
},
|
|
60
|
-
"pipeline-dotnet": {
|
|
61
|
-
"version": "4.3.8",
|
|
62
|
-
"packageName": "FiftyOne.Pipeline",
|
|
63
|
-
"isLeaf": false,
|
|
64
|
-
"dependencies": [
|
|
65
|
-
"common-ci"
|
|
66
|
-
]
|
|
67
|
-
},
|
|
68
|
-
"location-dotnet": {
|
|
69
|
-
"version": "4.3.8",
|
|
70
|
-
"packageName": "FiftyOne.Geolocation",
|
|
71
|
-
"isLeaf": false,
|
|
72
|
-
"dependencies": [
|
|
73
|
-
"common-ci",
|
|
74
|
-
"pipeline-dotnet",
|
|
75
|
-
"device-detection-dotnet"
|
|
76
|
-
]
|
|
77
|
-
},
|
|
78
|
-
"device-detection-dotnet": {
|
|
79
|
-
"version": "4.3.10",
|
|
80
|
-
"packageName": "FiftyOne.DeviceDetection",
|
|
81
|
-
"isLeaf": false,
|
|
82
|
-
"dependencies": [
|
|
83
|
-
"common-ci",
|
|
84
|
-
"device-detection-cxx",
|
|
85
|
-
"pipeline-dotnet"
|
|
86
|
-
]
|
|
87
|
-
},
|
|
88
|
-
"entitlement-dotnet": {
|
|
89
|
-
"version": "4.1.16",
|
|
24
|
+
"device-detection-java": {
|
|
25
|
+
"version": "4.3.12",
|
|
26
|
+
"packageName": "pipeline.device-detection",
|
|
27
|
+
"versionVariableName": "devicedetection.version",
|
|
90
28
|
"isLeaf": false,
|
|
91
29
|
"dependencies": [
|
|
92
30
|
"common-ci",
|
|
93
|
-
"
|
|
94
|
-
]
|
|
95
|
-
},
|
|
96
|
-
"internal-engines-dotnet": {
|
|
97
|
-
"version": "4.3.5",
|
|
98
|
-
"packageName": "FiftyOne.GeoLocation.OnPremise",
|
|
99
|
-
"isLeaf": false,
|
|
100
|
-
"dependencies": [
|
|
101
|
-
"common-ci",
|
|
102
|
-
"pipeline-dotnet",
|
|
103
|
-
"device-detection-dotnet",
|
|
104
|
-
"location-dotnet"
|
|
105
|
-
]
|
|
106
|
-
},
|
|
107
|
-
"pipeline-node": {
|
|
108
|
-
"version": "4.3.6",
|
|
109
|
-
"packageName": "fiftyone.pipeline",
|
|
110
|
-
"isLeaf": false,
|
|
111
|
-
"dependencies": [
|
|
112
|
-
"common-ci"
|
|
31
|
+
"device-detection-cxx"
|
|
113
32
|
]
|
|
114
33
|
},
|
|
115
34
|
"location-node": {
|
|
116
|
-
"version": "4.3.
|
|
35
|
+
"version": "4.3.5",
|
|
117
36
|
"packageName": "fiftyone.geolocation",
|
|
118
37
|
"isLeaf": false,
|
|
119
38
|
"dependencies": [
|
|
120
39
|
"common-ci",
|
|
121
|
-
"pipeline-node",
|
|
122
40
|
"device-detection-node"
|
|
123
41
|
]
|
|
124
42
|
},
|
|
125
43
|
"device-detection-node": {
|
|
126
|
-
"version": "4.3.
|
|
44
|
+
"version": "4.3.9",
|
|
127
45
|
"packageName": "fiftyone.devicedetection",
|
|
128
46
|
"isLeaf": false,
|
|
129
47
|
"dependencies": [
|
|
130
48
|
"common-ci",
|
|
131
|
-
"device-detection-cxx"
|
|
132
|
-
"pipeline-node"
|
|
49
|
+
"device-detection-cxx"
|
|
133
50
|
]
|
|
134
51
|
},
|
|
135
52
|
"device-detection-python": {
|
|
136
|
-
"version": "4.3.
|
|
53
|
+
"version": "4.3.3",
|
|
137
54
|
"packageName": "fiftyone_devicedetection",
|
|
138
55
|
"versionVariableName": "deviceDetectionVersion",
|
|
139
56
|
"isLeaf": false,
|
|
@@ -142,74 +59,29 @@
|
|
|
142
59
|
"device-detection-cxx"
|
|
143
60
|
]
|
|
144
61
|
},
|
|
145
|
-
"pipeline-php-core": {
|
|
146
|
-
"version": "4.3.5",
|
|
147
|
-
"packageName": "fiftyone.pipeline.core",
|
|
148
|
-
"isLeaf": false,
|
|
149
|
-
"dependencies": [
|
|
150
|
-
"common-ci"
|
|
151
|
-
]
|
|
152
|
-
},
|
|
153
|
-
"pipeline-php-engines": {
|
|
154
|
-
"version": "4.3.4",
|
|
155
|
-
"packageName": "fiftyone.pipeline.engines",
|
|
156
|
-
"isLeaf": false,
|
|
157
|
-
"dependencies": [
|
|
158
|
-
"common-ci",
|
|
159
|
-
"pipeline-php-core"
|
|
160
|
-
]
|
|
161
|
-
},
|
|
162
|
-
"pipeline-php-cloudrequestengine": {
|
|
163
|
-
"version": "4.3.5",
|
|
164
|
-
"packageName": "fiftyone.pipeline.cloudrequestengine",
|
|
165
|
-
"isLeaf": false,
|
|
166
|
-
"dependencies": [
|
|
167
|
-
"common-ci",
|
|
168
|
-
"pipeline-php-core",
|
|
169
|
-
"pipeline-php-engines"
|
|
170
|
-
]
|
|
171
|
-
},
|
|
172
|
-
"location-php": {
|
|
173
|
-
"version": "4.3.4",
|
|
174
|
-
"packageName": "fiftyone.geolocation",
|
|
175
|
-
"isLeaf": false,
|
|
176
|
-
"dependencies": [
|
|
177
|
-
"common-ci",
|
|
178
|
-
"pipeline-php-core",
|
|
179
|
-
"pipeline-php-engines",
|
|
180
|
-
"pipeline-php-cloudrequestengine",
|
|
181
|
-
"device-detection-php"
|
|
182
|
-
]
|
|
183
|
-
},
|
|
184
62
|
"device-detection-php-onpremise": {
|
|
185
|
-
"version": "4.3.
|
|
63
|
+
"version": "4.3.9",
|
|
186
64
|
"packageName": "fiftyone.devicedetection",
|
|
187
65
|
"isLeaf": false,
|
|
188
66
|
"dependencies": [
|
|
189
67
|
"common-ci",
|
|
190
|
-
"device-detection-cxx"
|
|
191
|
-
"pipeline-php-core",
|
|
192
|
-
"pipeline-php-engines"
|
|
68
|
+
"device-detection-cxx"
|
|
193
69
|
]
|
|
194
70
|
},
|
|
195
|
-
"device-detection-
|
|
196
|
-
"version": "4.3.
|
|
197
|
-
"packageName": "fiftyone.devicedetection",
|
|
71
|
+
"device-detection-go": {
|
|
72
|
+
"version": "4.3.3",
|
|
198
73
|
"isLeaf": false,
|
|
199
74
|
"dependencies": [
|
|
200
75
|
"common-ci",
|
|
201
|
-
"
|
|
202
|
-
"pipeline-php-engines",
|
|
203
|
-
"pipeline-php-cloudrequestengine"
|
|
76
|
+
"device-detection-cxx"
|
|
204
77
|
]
|
|
205
78
|
},
|
|
206
|
-
"
|
|
207
|
-
"version": "
|
|
208
|
-
"packageName": "fiftyonedegrees.wordpress",
|
|
79
|
+
"device-detection-examples-go": {
|
|
80
|
+
"version": "4.3.2",
|
|
209
81
|
"isLeaf": false,
|
|
210
82
|
"dependencies": [
|
|
211
83
|
"common-ci",
|
|
212
|
-
"
|
|
84
|
+
"device-detection-go"
|
|
213
85
|
]
|
|
214
86
|
}
|
|
215
87
|
},
|
package/ci/common-ci/scripts/modules/51DDownloadDataFileModule/51DDownloadDataFileModule.psm1
CHANGED
|
@@ -22,26 +22,50 @@ function Get-DataFile {
|
|
|
22
22
|
[string]$fullFilePath
|
|
23
23
|
)
|
|
24
24
|
|
|
25
|
+
Add-Type -AssemblyName System.Net.Http
|
|
26
|
+
|
|
25
27
|
$webClient = New-Object System.Net.Http.HttpClient;
|
|
26
28
|
$webClient.Timeout = New-TimeSpan -Seconds 240
|
|
27
29
|
$url ="https://distributor.51degrees.com/api/v2/download?LicenseKeys=$($licenseKey)&Type=$($dataType)&Download=True&Product=$($product)"
|
|
28
30
|
$start_time = Get-Date
|
|
31
|
+
$complete = $false
|
|
32
|
+
$tryCount = 0
|
|
29
33
|
|
|
30
|
-
|
|
31
|
-
$stream = $webClient.GetStreamAsync($url)
|
|
32
|
-
$stream.ConfigureAwait($false) > $null
|
|
33
|
-
if ($null -ne $stream.Exception){ throw $stream.Exception }
|
|
34
|
-
|
|
35
|
-
# Save stream to path
|
|
36
|
-
try
|
|
37
|
-
{
|
|
38
|
-
$fileStream = [System.IO.File]::Create($fullFilePath)
|
|
39
|
-
$stream.Result.CopyTo($fileStream)
|
|
40
|
-
}
|
|
41
|
-
finally
|
|
34
|
+
DO
|
|
42
35
|
{
|
|
43
|
-
|
|
44
|
-
|
|
36
|
+
$tryCount++;
|
|
37
|
+
Write-Host "Attempt: $tryCount"
|
|
38
|
+
|
|
39
|
+
try
|
|
40
|
+
{
|
|
41
|
+
# Get download stream
|
|
42
|
+
$stream = $webClient.GetStreamAsync($url)
|
|
43
|
+
$stream.ConfigureAwait($false) > $null
|
|
44
|
+
if ($null -ne $stream.Exception){ throw $stream.Exception }
|
|
45
|
+
|
|
46
|
+
# Save stream to path
|
|
47
|
+
try
|
|
48
|
+
{
|
|
49
|
+
$fileStream = [System.IO.File]::Create($fullFilePath)
|
|
50
|
+
$stream.Result.CopyTo($fileStream)
|
|
51
|
+
$complete = $true
|
|
52
|
+
}
|
|
53
|
+
finally
|
|
54
|
+
{
|
|
55
|
+
if ($null -ne $fileStream){ $fileStream.Dispose() }
|
|
56
|
+
if (($null -ne $stream) -and ($stream.IsCompleted -eq $true)){ $stream.Dispose() }
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
catch
|
|
60
|
+
{
|
|
61
|
+
Write-Host "# ERROR downloading data file:"
|
|
62
|
+
Write-Host $_
|
|
63
|
+
}
|
|
64
|
+
} While (($complete -eq $false) -and ($tryCount -le 10))
|
|
65
|
+
|
|
66
|
+
if($complete -eq $false)
|
|
67
|
+
{
|
|
68
|
+
throw "# ERROR: Data file download failed after $tryCount attempts."
|
|
45
69
|
}
|
|
46
70
|
|
|
47
71
|
Write-Output "Time taken: $((Get-Date).Subtract($start_time).Seconds) second(s)"
|
|
@@ -592,7 +592,9 @@ function Update-SubmoduleReferences {
|
|
|
592
592
|
Write-Host "# Checking tag $targetTag"
|
|
593
593
|
|
|
594
594
|
$tagUpdated = $false
|
|
595
|
-
|
|
595
|
+
$targetSpecified = $null -ne $targetTag
|
|
596
|
+
|
|
597
|
+
if ($targetSpecified) {
|
|
596
598
|
# Get all tag
|
|
597
599
|
Write-Host "# Fetch all tags"
|
|
598
600
|
if (![GitHandler]::FetchAllTags()) {
|
|
@@ -628,18 +630,20 @@ function Update-SubmoduleReferences {
|
|
|
628
630
|
}
|
|
629
631
|
|
|
630
632
|
Pop-Location
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
633
|
+
|
|
634
|
+
if($targetSpecified) {
|
|
635
|
+
# Exit if not all tags have been found.
|
|
636
|
+
if (!$tagUpdated) {
|
|
637
|
+
Write-Host "# ERROR: Failed to update Submodule $subRepoName to tag $targetTag."
|
|
638
|
+
return $false
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
# Stage the submodule update
|
|
642
|
+
Write-Host "# Stage the submodule $submodulePath"
|
|
643
|
+
if (![GitHandler]::Add($submodulePath)) {
|
|
644
|
+
Write-Host "# ERROR: Failed to stage the submodule $subRepoName."
|
|
645
|
+
return $false
|
|
646
|
+
}
|
|
643
647
|
}
|
|
644
648
|
} else {
|
|
645
649
|
Write-Host "# ERROR: Failed to extract module path from $submodulePath"
|