fiftyone.geolocation 4.4.1 → 4.4.3

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.
Files changed (118) hide show
  1. package/.github/workflows/monthly-copyright-update.yml +21 -0
  2. package/.github/workflows/nightly-documentation-update.yml +21 -0
  3. package/.github/workflows/nightly-package-update.yml +22 -0
  4. package/.github/workflows/nightly-prs-to-main.yml +22 -0
  5. package/.github/workflows/nightly-publish-to-main.yml +23 -0
  6. package/ci/README.md +11 -1
  7. package/ci/build-package-requirements.ps1 +1 -0
  8. package/ci/build-package.ps1 +14 -0
  9. package/ci/build-project.ps1 +16 -0
  10. package/ci/fetch-assets.ps1 +1 -0
  11. package/ci/get-next-package-version.ps1 +10 -0
  12. package/ci/install-package.ps1 +8 -0
  13. package/ci/options.json +50 -0
  14. package/ci/package-update-required.ps1 +1 -0
  15. package/ci/publish-package.ps1 +10 -0
  16. package/ci/run-integration-tests.ps1 +22 -0
  17. package/ci/run-performance-tests.ps1 +8 -0
  18. package/ci/run-unit-tests.ps1 +8 -0
  19. package/ci/setup-environment.ps1 +13 -0
  20. package/ci/update-packages.ps1 +10 -0
  21. package/docs/Doxyfile +12 -10
  22. package/package.json +11 -11
  23. package/tests/geoLocationCloud.test.js +0 -28
  24. package/ci/build-and-test.yml +0 -34
  25. package/ci/common-ci/.github/labels.yml +0 -86
  26. package/ci/common-ci/.github/workflows/sync-labels.yml +0 -52
  27. package/ci/common-ci/CiTips.md +0 -34
  28. package/ci/common-ci/GitVersion.yml +0 -18
  29. package/ci/common-ci/LICENSE +0 -286
  30. package/ci/common-ci/README.md +0 -365
  31. package/ci/common-ci/build-and-test.yml +0 -65
  32. package/ci/common-ci/c/shared-variables.yml +0 -15
  33. package/ci/common-ci/check-merge-commit-format.yml +0 -56
  34. package/ci/common-ci/cloud-release-config.json +0 -51
  35. package/ci/common-ci/create-tag.yml +0 -44
  36. package/ci/common-ci/deploy.yml +0 -25
  37. package/ci/common-ci/dotnet/shared-code-signing-steps.yml +0 -20
  38. package/ci/common-ci/dotnet/shared-extract-and-publish-packages.yml +0 -29
  39. package/ci/common-ci/go/shared-go-list-stage.yml +0 -64
  40. package/ci/common-ci/java/readme.md +0 -22
  41. package/ci/common-ci/java/shared-package-signing-steps.yml +0 -17
  42. package/ci/common-ci/java/shared-security-vulnerability-check.yml +0 -54
  43. package/ci/common-ci/node/shared-extract-and-publish-packages.yml +0 -26
  44. package/ci/common-ci/php/readme.md +0 -15
  45. package/ci/common-ci/release-config-schema.json +0 -52
  46. package/ci/common-ci/release-config-template.json +0 -310
  47. package/ci/common-ci/release-config.json +0 -151
  48. package/ci/common-ci/release-process.drawio +0 -165
  49. package/ci/common-ci/release-process.png +0 -0
  50. package/ci/common-ci/scripts/azure/checkSlot.ps1 +0 -28
  51. package/ci/common-ci/scripts/modules/51DAuthorizationModule/51DAuthorizationModule.Tests.ps1 +0 -1
  52. package/ci/common-ci/scripts/modules/51DAuthorizationModule/51DAuthorizationModule.psm1 +0 -16
  53. package/ci/common-ci/scripts/modules/51DBuildModule/51DBuildModule.Tests.ps1 +0 -3
  54. package/ci/common-ci/scripts/modules/51DBuildModule/51DBuildModule.psm1 +0 -200
  55. package/ci/common-ci/scripts/modules/51DDeployModule/51DDeployModule.psm1 +0 -66
  56. package/ci/common-ci/scripts/modules/51DDownloadDataFileModule/51DDownloadDataFileModule.psm1 +0 -74
  57. package/ci/common-ci/scripts/modules/51DEnvironmentModule/51DEnvironmentModule.Tests.ps1 +0 -25
  58. package/ci/common-ci/scripts/modules/51DEnvironmentModule/51DEnvironmentModule.psm1 +0 -22
  59. package/ci/common-ci/scripts/modules/51DErrorHandleModule/51DErrorHandleModule.Tests.ps1 +0 -1
  60. package/ci/common-ci/scripts/modules/51DErrorHandleModule/51DErrorHandleModule.psm1 +0 -41
  61. package/ci/common-ci/scripts/modules/51DGitModule/51DGitModule.Tests.ps1 +0 -5
  62. package/ci/common-ci/scripts/modules/51DGitModule/51DGitModule.psm1 +0 -765
  63. package/ci/common-ci/scripts/modules/51DPackageModule/51DPackageModule.Tests.ps1 +0 -842
  64. package/ci/common-ci/scripts/modules/51DPackageModule/51DPackageModule.psm1 +0 -926
  65. package/ci/common-ci/scripts/modules/51DPipelineModule/51DPipelineModule.Tests.ps1 +0 -1
  66. package/ci/common-ci/scripts/modules/51DPipelineModule/51DPipelineModule.psm1 +0 -87
  67. package/ci/common-ci/scripts/modules/51DPullRequestModule/51DPullRequestModule.Tests.ps1 +0 -194
  68. package/ci/common-ci/scripts/modules/51DPullRequestModule/51DPullRequestModule.psm1 +0 -653
  69. package/ci/common-ci/scripts/modules/51DReleaseModule/51DReleaseModule.Tests.ps1 +0 -277
  70. package/ci/common-ci/scripts/modules/51DReleaseModule/51DReleaseModule.psm1 +0 -554
  71. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/51DReleaseTestEnvModule.Tests.ps1 +0 -1141
  72. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/51DReleaseTestEnvModule.psd1 +0 -0
  73. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/51DReleaseTestEnvModule.psm1 +0 -1465
  74. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/ConfigurationVerifier.Tests.ps1 +0 -318
  75. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/ConfigurationVerifier.psm1 +0 -344
  76. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/ReleaseVerifier.Tests.ps1 +0 -1186
  77. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/ReleaseVerifier.psm1 +0 -900
  78. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/SharedVariables.psm1 +0 -139
  79. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/config/c-test-env-config.json +0 -268
  80. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/config/dotnet-deploy-test-env-config.json +0 -700
  81. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/config/dotnet-test-env-config.json +0 -533
  82. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/config/go-deploy-test-env-config.json +0 -290
  83. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/config/go-test-env-config.json +0 -260
  84. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/config/java-deploy-test-env-config.json +0 -511
  85. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/config/java-test-env-config.json +0 -388
  86. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/config/node-deploy-test-env-config.json +0 -419
  87. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/config/node-test-env-config.json +0 -329
  88. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/config/php-test-env-config.json +0 -540
  89. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/config/python-deploy-test-env-config.json +0 -411
  90. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/config/python-test-env-config.json +0 -321
  91. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/config/test-env-config.json +0 -457
  92. package/ci/common-ci/scripts/modules/51DRestModule/51DRestModule.psm1 +0 -38
  93. package/ci/common-ci/scripts/modules/AzurePortalModules/51DApplicationInsightsModule/51DApplicationInsightsModule.psm1 +0 -104
  94. package/ci/common-ci/scripts/modules/AzurePortalModules/51DChecksModule/51DChecksModule.psm1 +0 -68
  95. package/ci/common-ci/scripts/modules/AzurePortalModules/51DCloudModule/51DCloudModule.psm1 +0 -155
  96. package/ci/common-ci/scripts/modules/AzurePortalModules/51DConnectAzureModule/51DConnectAzureModule.psm1 +0 -45
  97. package/ci/common-ci/scripts/modules/AzurePortalModules/51DSSLBindingsModule/51DSSLBIndingsModule.psm1 +0 -100
  98. package/ci/common-ci/scripts/modules/AzurePortalModules/51DStagingSlotModule/51DStagingSlotModule.psm1 +0 -50
  99. package/ci/common-ci/scripts/modules/AzurePortalModules/51DStorageAccountModule/51DStorageAccountModule.psm1 +0 -248
  100. package/ci/common-ci/scripts/modules/AzurePortalModules/51DTrafficManagerModule/51DTrafficManagerModule.psm1 +0 -58
  101. package/ci/common-ci/shared-auto-complete-pr-stage.yml +0 -61
  102. package/ci/common-ci/shared-create-tag-job.yml +0 -23
  103. package/ci/common-ci/shared-docker-build-steps.yml +0 -34
  104. package/ci/common-ci/shared-docker-push-steps.yml +0 -32
  105. package/ci/common-ci/shared-docker-test-http-steps.yml +0 -69
  106. package/ci/common-ci/shared-git-tag-job.yml +0 -38
  107. package/ci/common-ci/shared-git-version-job.yml +0 -71
  108. package/ci/common-ci/shared-publish-github-stage.yml +0 -107
  109. package/ci/common-ci/shared-submodule-trigger-stage.yml +0 -110
  110. package/ci/common-ci/shared-variables.yml +0 -7
  111. package/ci/common-ci/trigger-release-apis.yml +0 -39
  112. package/ci/create-packages.yml +0 -109
  113. package/ci/deploy-external.yml +0 -55
  114. package/ci/deploy-internal.yml +0 -50
  115. package/ci/shared-build-and-test-platforms.yml +0 -26
  116. package/ci/shared-build-and-test-stage.yml +0 -128
  117. package/ci/shared-variables.yml +0 -1
  118. package/ci/submodule-trigger.yml +0 -12
@@ -1,109 +0,0 @@
1
- trigger:
2
- - master
3
- - develop
4
- - release/*
5
-
6
- # Don't trigger for a pull request
7
- pr: none
8
-
9
- resources:
10
- repositories:
11
- - repository: ciTemplates # Id of the repository used to reference to in this script
12
- type: git
13
- name: common-ci # Name of the actual repository
14
-
15
- # Include shared variables
16
- variables:
17
- - template: shared-variables.yml@ciTemplates
18
- - group: CIAutomation
19
- # Access token for the git repository. Used by the git tag task.
20
- - name: system_accesstoken
21
- value: $(System.AccessToken)
22
-
23
- stages:
24
-
25
- - stage: Publish
26
-
27
- jobs:
28
- - template: shared-git-version-job.yml@ciTemplates
29
- parameters:
30
- imageName: $(linuxImage)
31
-
32
- - job: Publish
33
- displayName: Publish Packages
34
- dependsOn: Versioning
35
- condition: and(succeeded(), ne(variables['CreatePackages'], 'Off'))
36
-
37
- pool:
38
- vmImage: $(linuxImage)
39
-
40
- variables:
41
- - group: PackageFeedAccessToken
42
- - name: GitVersionSemVer
43
- value: $[ dependencies.Versioning.outputs['SetGitVersionVars.GitVersionSemVer'] ]
44
-
45
- steps:
46
- # The lines below are needed to allow the pipeline access to the
47
- # OAuth access token that controls write access to the git repository.
48
- # (Required for GitTag task)
49
- - checkout: self
50
- lfs: true
51
- submodules: recursive
52
- persistCredentials: true
53
-
54
- # Set version number.
55
- - task: Npm@1
56
- displayName: 'npm version fiftyone.geolocation'
57
- inputs:
58
- command: 'custom'
59
- workingDir: '$(System.DefaultWorkingDirectory)'
60
- verbose: true
61
- customCommand: 'version --no-git-tag-version $(GitVersionSemVer)'
62
- continueOnError: true
63
- condition: succeededOrFailed()
64
-
65
- # Create packages
66
- - script: |
67
- npm pack
68
- displayName: 'Create npm package for later release'
69
- condition: succeededOrFailed()
70
-
71
- # Copy artifacts contents.
72
- - task: CopyFiles@2
73
- inputs:
74
- sourceFolder: '$(Build.SourcesDirectory)'
75
- contents: '**/*.tgz'
76
- targetFolder: $(Build.ArtifactStagingDirectory)/npm/fiftyone.geolocation
77
- displayName: 'Copy tgz files'
78
- condition: succeededOrFailed()
79
-
80
- - task: CopyFiles@2
81
- inputs:
82
- sourceFolder: '$(Build.SourcesDirectory)'
83
- contents: '**/package.json'
84
- targetFolder: $(Build.ArtifactStagingDirectory)/npm/fiftyone.geolocation
85
- displayName: 'Copy package.json files'
86
- condition: succeededOrFailed()
87
-
88
- - script: |
89
- ls $(Build.ArtifactStagingDirectory)/npm/fiftyone.geolocation/*fiftyone.geolocation*.tgz
90
- if [ $? -ne 0 ]; then
91
- echo "ERROR: Could not find packed module."
92
- exit 1
93
- fi
94
- displayName: 'List artifact staging contents'
95
- condition: succeededOrFailed()
96
- failOnStderr: true
97
-
98
- # Publish artifacts to DevOps
99
- - task: PublishBuildArtifacts@1
100
- inputs:
101
- pathtoPublish: '$(Build.ArtifactStagingDirectory)/npm'
102
- artifactName: npm
103
- displayName: 'Publish npm artifact'
104
- condition: succeededOrFailed()
105
-
106
- - template: shared-git-tag-job.yml@ciTemplates
107
- parameters:
108
- imageName: $(linuxImage)
109
- jobDependencies: [Versioning,Publish]
@@ -1,55 +0,0 @@
1
- # Disable automatic runs of this pipeline when changes are pushed to the repository.
2
- trigger: none
3
-
4
- # Disable automatic runs of this pipeline when a PR is create.
5
- pr: none
6
-
7
- # Add the pipeline that builds the packages as a resource.
8
- # This allows the deployment pipeline to be triggered whenever
9
- # the build pipeline completes.
10
- resources:
11
- pipelines:
12
- - pipeline: build-pipeline # The name for the triggering build pipeline within this script
13
- source: location-node-create-packages # Name of the pipeline from here: https://51degrees.visualstudio.com/Pipeline/_build
14
- trigger: true
15
- repositories:
16
- - repository: ciTemplates # Id of the repository used to reference to in this script
17
- type: git
18
- name: common-ci # Name of the actual repository
19
-
20
- # Include shared variables
21
- variables:
22
- - template: shared-variables.yml@ciTemplates
23
- - name: targetBranch
24
- value: 'refs/heads/master'
25
- - group: CIAutomation
26
-
27
- stages:
28
-
29
- - stage: publish_npm
30
- displayName: Publish to NPM
31
- condition: eq(variables['build.sourceBranch'], variables['targetBranch'])
32
- jobs:
33
- - deployment: deploy_npm
34
- displayName: Deploy to NPM
35
- pool:
36
- vmImage: $(linuxImage)
37
- workspace:
38
- clean: all
39
- environment: npm
40
- strategy:
41
- runOnce:
42
- deploy:
43
- steps:
44
-
45
- - template: node/shared-extract-and-publish-packages.yml@ciTemplates
46
- parameters:
47
- publishConnection: 'NPM publish connection'
48
- packageName: 'fiftyone.geolocation'
49
- internalFeedId: $(InternalFeedId)
50
-
51
-
52
- - template: shared-publish-github-stage.yml@ciTemplates
53
- parameters:
54
- imageName: $(linuxImage)
55
- branchName: ${{ variables.targetBranch }}
@@ -1,50 +0,0 @@
1
- # Disable automatic runs of this pipeline when changes are pushed to the repository.
2
- trigger: none
3
-
4
- # Disable automatic runs of this pipeline when a PR is create.
5
- pr: none
6
-
7
- # Add the pipeline that builds the packages as a resource.
8
- # This allows the deployment pipeline to be triggered whenever
9
- # the build pipeline completes.
10
- resources:
11
- pipelines:
12
- - pipeline: build-pipeline # The name for the triggering build pipeline within this script
13
- source: location-node-create-packages # Name of the pipeline from here: https://51degrees.visualstudio.com/Pipeline/_build
14
- trigger: true
15
- repositories:
16
- - repository: ciTemplates # Id of the repository used to reference to in this script
17
- type: git
18
- name: common-ci # Name of the actual repository
19
-
20
- # Include shared variables
21
- variables:
22
- - template: shared-variables.yml@ciTemplates
23
- - name: targetBranch
24
- value: 'refs/heads/master'
25
- - group: CIAutomation
26
-
27
- stages:
28
- - stage: publish_internal
29
- displayName: Publish Internal
30
- jobs:
31
- # Note - A 'deployment' job will automatically download the artifacts created by the triggering pipeline.
32
- - deployment: deploy_internal
33
- displayName: Deploy Internal
34
- pool:
35
- vmImage: $(linuxImage)
36
- workspace:
37
- clean: all
38
- environment: packages-internal
39
- strategy:
40
- runOnce:
41
- deploy:
42
- steps:
43
- #- bash: 'ls -R "$(PIPELINE.WORKSPACE)"'
44
- # displayName: 'List files and directories'
45
-
46
- - template: node/shared-extract-and-publish-packages.yml@ciTemplates
47
- parameters:
48
- publishConnection: 'NPM internal'
49
- packageName: 'fiftyone.geolocation'
50
- internalFeedId: $(InternalFeedId)
@@ -1,26 +0,0 @@
1
- parameters:
2
- - name: windowsImage
3
- - name: linuxImage
4
- - name: macImage
5
- - name: runTests
6
- type: string
7
- default: 'On'
8
-
9
- stages:
10
- - template: shared-build-and-test-stage.yml
11
- parameters:
12
- stageName: Windows
13
- imageName: ${{ parameters.windowsImage }}
14
- runTests: ${{ parameters.runTests }}
15
-
16
- - template: shared-build-and-test-stage.yml
17
- parameters:
18
- stageName: Linux
19
- imageName: ${{ parameters.linuxImage }}
20
- runTests: ${{ parameters.runTests }}
21
-
22
- - template: shared-build-and-test-stage.yml
23
- parameters:
24
- stageName: MacOS
25
- imageName: ${{ parameters.macImage }}
26
- runTests: ${{ parameters.runTests }}
@@ -1,128 +0,0 @@
1
- parameters:
2
- - name: stageName
3
- - name: imageName
4
- - name: runTests
5
- type: string
6
- default: 'On'
7
-
8
- stages:
9
- - stage: ${{ parameters.stageName }}
10
- dependsOn: []
11
-
12
- jobs:
13
- - job: Build_and_Test
14
- displayName: Build and Test
15
- condition: ne(${{ parameters.runTests }}, 'Off')
16
-
17
- pool:
18
- vmImage: ${{ parameters.imageName }}
19
-
20
- variables:
21
- - group: InternalKeys
22
-
23
- strategy:
24
- matrix:
25
- node_10_x:
26
- node_version: 10.x
27
- node_12_x:
28
- node_version: 12.x
29
- node_14_x:
30
- node_version: 14.x
31
- node_16_x:
32
- node_version: 16.x
33
- maxParallel: 1
34
-
35
- steps:
36
- - checkout: self
37
- lfs: true
38
- submodules: recursive
39
-
40
- - task: NodeTool@0
41
- inputs:
42
- versionSpec: $(node_version)
43
- displayName: 'Install Node.js'
44
-
45
- # The secure file to download will be stored in the
46
- # Pipelines/Library/SecureFiles section in Azure DevOps.
47
- - task: DownloadSecureFile@1
48
- displayName: 'Download .npmrc'
49
- name: npmrc
50
- inputs:
51
- secureFile: '.npmrc'
52
-
53
- - task: CopyFiles@2
54
- displayName: 'Copy .npmrc to working directory'
55
- inputs:
56
- sourceFolder: '$(Agent.TempDirectory)'
57
- targetFolder: '$(System.DefaultWorkingDirectory)'
58
- contents: '.npmrc'
59
-
60
- # 1. Set resource key environment variable from location resource key value
61
- # in 'InternalKeys' group
62
- # 2. Install dependencies.
63
- # 3. Run tests.
64
- # TODO: Remove specific device detection version once 4.3.3 released
65
- - bash: |
66
- echo "Resource key for testing = $(SuperResourceKey)"
67
- export RESOURCE_KEY="$(SuperResourceKey)"
68
- echo "Cloud endpoint for testing = $(FOD_CLOUD_API_URL)"
69
- export FOD_CLOUD_API_URL="$(FOD_CLOUD_API_URL)"
70
- npm install
71
- npm install fiftyone.devicedetection@4.3.3-beta.1
72
- npm test
73
- displayName: 'Build and Test'
74
-
75
- - bash: |
76
- eslint='{
77
- "env": {
78
- "browser": true,
79
- "commonjs": true,
80
- "es6": true
81
- },
82
- "extends": [
83
- "standard"
84
- ],
85
- "globals": {
86
- "Atomics": "readonly",
87
- "SharedArrayBuffer": "readonly",
88
- "test": true,
89
- "jest": true,
90
- "expect": true,
91
- "resourceKey": true
92
- },
93
- "parserOptions": {
94
- "ecmaVersion": 2018
95
- },
96
- "rules": {
97
- "node/no-deprecated-api": "off",
98
- "no-throw-literal": "off",
99
- "no-path-concat": "off",
100
- "no-prototype-builtins": "off",
101
- "no-eval": "off",
102
- "semi": [
103
- 2,
104
- "always"
105
- ]
106
- }
107
- }'
108
- echo $eslint
109
- echo $eslint > .eslintrc
110
- npm install -g eslint@6.8.0
111
- eslint '**/*.js'
112
- displayName: "Set up and run eslint"
113
- condition: ne(variables['node_version'], '6.x')
114
- failOnStderr: true
115
-
116
- - task: PublishTestResults@2
117
- condition: succeededOrFailed()
118
- inputs:
119
- testRunner: JUnit
120
- testResultsFiles: '**/test_results.xml'
121
- testRunTitle: 'Node $(node_version) ${{ parameters.stageName }}'
122
-
123
- - task: PublishCodeCoverageResults@1
124
- inputs:
125
- codeCoverageTool: Cobertura
126
- summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/*coverage.xml'
127
- reportDirectory: '$(System.DefaultWorkingDirectory)/**/coverage'
128
-
@@ -1 +0,0 @@
1
- # Shared variables between yaml files
@@ -1,12 +0,0 @@
1
- trigger: none
2
-
3
- pr: none
4
-
5
- resources:
6
- repositories:
7
- - repository: ciTemplates # Id of the repository used to reference to in this script
8
- type: git
9
- name: common-ci # Name of the actual repository
10
-
11
- stages:
12
- - template: shared-submodule-trigger-stage.yml@ciTemplates