Skip to content

Commit

Permalink
Merge pull request #2492 from Azure/prepare-2.13.0
Browse files Browse the repository at this point in the history
Release 2.13.0
  • Loading branch information
gingi authored Mar 31, 2022
2 parents 260a74a + 6afc860 commit c27f474
Show file tree
Hide file tree
Showing 96 changed files with 5,191 additions and 5,941 deletions.
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

0 comments on commit c27f474

Please sign in to comment.