Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
42d7a50
Upgrades keytar for node-gyp support
gingi Jan 28, 2022
a051cf7
Better Spectron error messages
gingi Jan 11, 2022
4340ad8
Tweak: Pipeline YAML formatting
gingi Jan 11, 2022
13e75a3
Migrates pipeline to CyberEO-compliant 1ES Hosted Pool
gingi Jan 11, 2022
41c40fa
SBOM generation
gingi Feb 4, 2022
4b75cdf
Merge pull request #2427 from Azure/feature/cybereo
gingi Feb 8, 2022
00e6978
Fix Python backend and update various dependencies (#2411)
dpwatrous Feb 8, 2022
afe1cd9
Bump simple-get from 3.1.0 to 3.1.1 (#2432)
dependabot[bot] Feb 8, 2022
35fcf75
Bump log4js from 6.3.0 to 6.4.1 (#2433)
dependabot[bot] Feb 9, 2022
2459878
Moves SBOM generation to Dist pipeline
gingi Feb 9, 2022
64a5e2f
Security analysis on both CI and Dist pipelines
gingi Feb 9, 2022
b07e10c
Merge pull request #2434 from Azure/feature/cybereo-dist
gingi Feb 9, 2022
2e0af2f
Bump nth-check from 2.0.0 to 2.0.1 (#2431)
dependabot[bot] Feb 10, 2022
8029f00
Pipelines: Refactors Python and Node setup
gingi Feb 11, 2022
49de360
Pipelines use private feed for NPM and PyPi
gingi Feb 15, 2022
d71d1d2
Merge pull request #2443 from Azure/feature/private-feed
gingi Feb 16, 2022
a8bcb8b
Update to Electron 12, Angular 10, TS 4
dpwatrous Feb 12, 2022
62aa271
Switch from Spectron to Playwright for e2e tests
dpwatrous Feb 9, 2022
36f9e24
Merge pull request #2445 from Azure/feature/electron-angular-updates
dpwatrous Feb 16, 2022
ac857f0
Bump karma from 6.3.2 to 6.3.14 (#2442)
dependabot[bot] Feb 16, 2022
52f9070
Revert "Update to call List Supported Virtual Machine and Cloud Servi…
cRui861 Feb 10, 2022
4503771
Update patch version for reverting VM SKU API changes
cRui861 Feb 10, 2022
5a2ab52
Update changelog with hotfix information
cRui861 Feb 10, 2022
fe0fb0e
Manually bump version to 2.13.0
dpwatrous Feb 16, 2022
d4b6e38
Bump node-fetch from 2.6.1 to 2.6.7 (#2423)
dependabot[bot] Feb 17, 2022
485e999
Bump follow-redirects from 1.13.3 to 1.14.8 (#2438)
dependabot[bot] Feb 18, 2022
5daee21
Bump url-parse from 1.5.3 to 1.5.7 (#2450)
dependabot[bot] Feb 18, 2022
0b4a422
Enable Angular's Ivy compiler (#2451)
dpwatrous Feb 22, 2022
9a0ef65
[Fix] Update heatmap node height calculations (#2452)
cRui861 Feb 25, 2022
3fed00a
Bump url-parse from 1.5.7 to 1.5.10 (#2455)
dependabot[bot] Feb 28, 2022
71c3bd3
Update to call List Supported Virtual Machine and Cloud Service SKUs …
cRui861 Mar 1, 2022
6c239ce
February a11y Bug Fixes (#2469)
cRui861 Mar 9, 2022
6bba389
Fix bump version script (#2479)
cRui861 Mar 16, 2022
98e022c
Prepare for release 2.13.0 (#2482)
cRui861 Mar 18, 2022
425d095
Merge stable into master (#2485)
cRui861 Mar 23, 2022
c42e482
Explicitly uses .NET 2.1 for code-signing
gingi Mar 28, 2022
6afc860
Merge branch 'master' into prepare-2.13.0
gingi Mar 29, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ build/
dll/
typings/
logs/
env/
*.log*
*.mem.csv
release/
Expand Down
1 change: 0 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"recommendations": [
"stylelint.vscode-stylelint",
"EditorConfig.EditorConfig",
"msjsdiag.debugger-for-chrome",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"rvest.vs-code-prettier-eslint",
Expand Down
6 changes: 6 additions & 0 deletions .vsts/common/generate-sbom.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
steps:
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
displayName: "SBOM Generation"
inputs:
BuildDropPath: ./release

4 changes: 0 additions & 4 deletions .vsts/darwin/darwin-dependencies.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
steps:
- template: ../dependencies.yml
- template: ../pyenv.yml
- script: |
set -e
. "$(Agent.WorkFolder)/.venv/batchexplorer/bin/activate"
python --version
pip install -r python/requirements.txt
echo "Node.js version $(node --version)"
echo "NPM version $(npm --version)"
npm ci
Expand Down
1 change: 1 addition & 0 deletions .vsts/darwin/distribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ steps:
displayName: Build dmg
- script: npm run package darwin-manifest
displayName: Create manifest
- template: ../common/generate-sbom.yml
- template: ../common/publish-artifacts.yml
parameters:
folder: darwin
6 changes: 6 additions & 0 deletions .vsts/darwin/sign.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
steps:
- task: UseDotNet@2
displayName: 'Use .NET Core sdk'
inputs:
packageType: sdk
version: 2.1.x

- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
inputs:
ConnectedServiceName: 'ESRP CodeSign'
Expand Down
5 changes: 2 additions & 3 deletions .vsts/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ steps:
- powershell: ./scripts/azpipelines/build-type.ps1 "$(Build.SourceBranch)" "$(Build.BuildNumber)"
displayName: Resolve build type

- task: NodeTool@0
inputs:
versionSpec: '16.x.x'
- template: ./node-setup.yml
- template: ./python-setup.yml
11 changes: 9 additions & 2 deletions .vsts/distribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,26 @@
jobs:
- job: Linux
pool:
vmImage: ubuntu-18.04
name: Azure-Pipelines-EO-Batch-Explorer
demands:
- ImageOverride -equals BatchExplorerBuildImage-Linux
steps:
- template: ./linux/distribution.yml

- job: MacOS
pool:
vmImage: macOS-10.15
demands: xcode
variables:
- name: EOCompliance-Mac
value: true
steps:
- template: ./darwin/distribution.yml

- job: Windows
pool:
vmImage: vs2017-win2016
name: Azure-Pipelines-EO-Batch-Explorer
demands:
- ImageOverride -equals BatchExplorerBuildImage-Windows
steps:
- template: ./win/distribution.yml
1 change: 1 addition & 0 deletions .vsts/linux/distribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ steps:
. "$(Agent.WorkFolder)/.venv/batchexplorer/bin/activate"
npm run package linux-manifest
displayName: Create manifest
- template: ../common/generate-sbom.yml
- template: ../common/publish-artifacts.yml
parameters:
folder: linux
4 changes: 0 additions & 4 deletions .vsts/linux/linux-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,8 @@ steps:
sudo apt-get install -y libxkbfile-dev pkg-config libsecret-1-dev libxss1 libgconf-2-4 dbus xvfb libgtk-3-0 rpm
displayName: Install Linux packages
- template: ../dependencies.yml
- template: ../pyenv.yml
- script: |
set -e
. "$(Agent.WorkFolder)/.venv/batchexplorer/bin/activate"
echo "Python version $(python --version)"
pip install -r python/requirements.txt
echo "Node.js version $(node --version)"
echo "NPM version $(npm --version)"
npm install -g codecov
Expand Down
13 changes: 13 additions & 0 deletions .vsts/node-setup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
steps:
- task: NodeTool@0
inputs:
versionSpec: '16.x.x'

- script: |
cp .vsts/pipelines.npmrc .npmrc
displayName: Stage .npmrc configuration

- task: npmAuthenticate@0
displayName: Authenticate with NPM private feed
inputs:
workingFile: .npmrc
3 changes: 3 additions & 0 deletions .vsts/pipelines.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
registry=https://azurebatch.pkgs.visualstudio.com/_packaging/BatchExplorer/npm/registry/

always-auth=true
23 changes: 17 additions & 6 deletions .vsts/pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,43 @@ name: $(SourceBranch)$(Rev:.r)
jobs:
- job: Linux
pool:
vmImage: ubuntu-18.04
name: Azure-Pipelines-EO-Batch-Explorer
demands:
- ImageOverride -equals BatchExplorerBuildImage-Linux
steps:
- template: ./linux/ci.yml
- template: ./linux/ci.yml

- job: MacOS
pool:
vmImage: macOS-10.15
demands: xcode
variables:
- name: EOCompliance-Mac
value: true
steps:
- template: ./darwin/ci.yml
- template: ./darwin/ci.yml

- job: Windows
pool:
vmImage: windows-2019
name: Azure-Pipelines-EO-Batch-Explorer
demands:
- ImageOverride -equals BatchExplorerBuildImage-Windows
variables:
Packaging.EnableSBOMSigning: true
steps:
- template: ./win/ci.yml

- job: RegisterDependencies
displayName: Register dependencies
pool:
vmImage: vs2017-win2016
name: Azure-Pipelines-EO-Batch-Explorer
demands:
- ImageOverride -equals BatchExplorerBuildImage-Windows
condition: ne(variables['Build.Reason'], 'PullRequest')
variables:
EnableDetectorPip: true
continueOnError: true
steps:
- template: ./win/win-dependencies.yml
- task: ComponentGovernanceComponentDetection@0
displayName: 'Component Detection'
displayName: "Component Detection"
22 changes: 0 additions & 22 deletions .vsts/pyenv.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .vsts/python-setup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
steps:
- task: UsePythonVersion@0
condition: eq( variables['Agent.OS'], 'Windows_NT' )
inputs:
versionSpec: '3.8.x'
displayName: Install Python 3.8 for Batch Explorer

- bash: ./scripts/azpipelines/setup-python.sh
displayName: Set up Python environment and private feed

- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: 'BatchExplorer'

- script: |
set -e
. "$(Agent.WorkFolder)/.venv/batchexplorer/bin/activate"
pip install -r python/requirements.txt
condition: ne( variables['Agent.OS'], 'Windows_NT' )
displayName: Install Python dependencies (Linux)

- powershell: |
. .vsts/win/exec.ps1
$ErrorActionPreference = "Stop"
$(Agent.WorkFolder)\.venv\batchexplorer\Scripts\Activate.ps1
exec { pip install -r python/requirements.txt }
condition: eq( variables['Agent.OS'], 'Windows_NT' )
displayName: Install Python dependencies (Windows)
8 changes: 4 additions & 4 deletions .vsts/update-en-loc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ variables:
locdir: $(Build.ArtifactStagingDirectory)/BatchExplorer

pool:
vmImage: ubuntu-20.04
name: Azure-Pipelines-EO-Batch-Explorer
demands:
- ImageOverride -equals BatchExplorerBuildImage-Linux
steps:
- task: NodeTool@0
inputs:
versionSpec: '16.x.x'
- template: ./node-setup.yml

- script: npm ci
displayName: Install dependencies
Expand Down
35 changes: 9 additions & 26 deletions .vsts/win/ci.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,21 @@
steps:
# Static analysis before build
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@2
displayName: 'Run CredScan'
inputs:
suppressionsFile: test/cred-scan-exclude.json
toolMajorVersion: V2
debugMode: false

- template: ./credscan.yml
- template: ./win-dependencies.yml

- powershell: npm run build-and-pack
- powershell: |
$(Agent.WorkFolder)\.venv\batchexplorer\Scripts\Activate.ps1
npm run build-and-pack
displayName: Build and package

- powershell: |
. .vsts/win/exec.ps1
$ErrorActionPreference = "Stop"
$env:SPECTRON_AAD_USER_EMAIL = "$(uiTestingAccountEmail)"
$env:SPECTRON_AAD_USER_PASSWORD = "$(uiTestingAccountPassword)"
npm run spectron
displayName: Running spectron

- task: securedevelopmentteam.vss-secure-development-tools.build-task-antimalware.AntiMalware@3
displayName: 'AntiMalware Scanner'
inputs:
EnableServices: true

- task: securedevelopmentteam.vss-secure-development-tools.build-task-publishsecurityanalysislogs.PublishSecurityAnalysisLogs@2
displayName: 'Publish Security Analysis Logs'

- task: securedevelopmentteam.vss-secure-development-tools.build-task-postanalysis.PostAnalysis@1
displayName: 'Post Analysis'
inputs:
CredScan: true
$env:BE_TEST_AAD_USER_EMAIL = "$(uiTestingAccountEmail)"
$env:BE_TEST_AAD_USER_PASSWORD = "$(uiTestingAccountPassword)"
npm run test-e2e
displayName: End to end tests

- template: ./security-analysis.yml

- template: ../common/publish-artifacts.yml
parameters:
Expand Down
9 changes: 9 additions & 0 deletions .vsts/win/credscan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
steps:
# Static analysis before build
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@2
displayName: "Run CredScan"
inputs:
suppressionsFile: test/cred-scan-exclude.json
toolMajorVersion: V2
debugMode: false

5 changes: 5 additions & 0 deletions .vsts/win/distribution.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
steps:
- template: ./credscan.yml
- template: ./win-dependencies.yml
- powershell: ./scripts/azpipelines/update-build-name.ps1
displayName: Resolve version
- powershell: |
. .vsts/win/exec.ps1
$ErrorActionPreference = "Stop"
$(Agent.WorkFolder)\.venv\batchexplorer\Scripts\Activate.ps1
exec { npm run build:prod }
exec { npm run build-python }
exec { npm run package win-exe }
displayName: Build executable

- template: ./security-analysis.yml

- template: ./sign.yml
parameters:
name: "Sign executable and dll"
Expand All @@ -27,6 +31,7 @@ steps:
**/BatchExplorer*Setup*.exe
- powershell: npm run package win-manifest
displayName: Create manifest
- template: ../common/generate-sbom.yml
- template: ../common/publish-artifacts.yml
parameters:
folder: windows
13 changes: 13 additions & 0 deletions .vsts/win/security-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
steps:
- task: securedevelopmentteam.vss-secure-development-tools.build-task-antimalware.AntiMalware@3
displayName: "AntiMalware Scanner"
inputs:
EnableServices: true

- task: securedevelopmentteam.vss-secure-development-tools.build-task-publishsecurityanalysislogs.PublishSecurityAnalysisLogs@2
displayName: "Publish Security Analysis Logs"

- task: securedevelopmentteam.vss-secure-development-tools.build-task-postanalysis.PostAnalysis@1
displayName: "Post Analysis"
inputs:
CredScan: true
8 changes: 0 additions & 8 deletions .vsts/win/win-dependencies.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
steps:
- template: ../dependencies.yml

- task: UsePythonVersion@0
inputs:
versionSpec: '3.8.x'
displayName: Install python 3.8 for BatchExplorer

# KLUDGE: Use `npm i` instead of `npm ci` due to this issue:
# https://github.com/npm/cli/issues/558#issuecomment-580392554
- powershell: |
. .vsts/win/exec.ps1
$ErrorActionPreference = "Stop"
exec { python -m pip install --upgrade pip }
exec { python --version }
exec { pip install -r python/requirements.txt }
exec { Write-Host "Node.js version" $(node --version) }
exec { Write-Host "NPM version" $(npm --version) }
exec { npm install --loglevel=error }
Expand Down
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# 2.13.0

[All items](https://github.com/Azure/BatchExplorer/milestone/47?closed=1)

### Features

* Restore SKU API support for displaying VM information in Pools [\#2462](https://github.com/Azure/BatchExplorer/issues/2462)

### Bugs

* Accessibility fixes and improvements [\#2471](https://github.com/Azure/BatchExplorer/issues/2471)
* Heatmaps did not display task slot information correctly [\#2461](https://github.com/Azure/BatchExplorer/issues/2461)

### Other

* Cyber Executive Order Compliance [\#2457](https://github.com/Azure/BatchExplorer/issues/2457)

# 2.12.1

### Hot Fixes
Expand Down
Loading