Skip to content

Commit

Permalink
Revert "add a new weekly pipeline to update the glass binaries from m…
Browse files Browse the repository at this point in the history
…ain bran…" (#8106)

This reverts commit db8faec.
  • Loading branch information
bschnurr authored Dec 10, 2024
1 parent db8faec commit 08e9704
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 69 deletions.
41 changes: 0 additions & 41 deletions Build/glass/cache_glass.yml

This file was deleted.

71 changes: 45 additions & 26 deletions Build/templates/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,31 +55,50 @@ steps:
configuration: $(BuildConfiguration)
msbuildArguments: '/p:VSTarget=$(VSTarget) /bl:$(Build.SourcesDirectory)\logs\BuildProduct.binlog'

# Restore the glass binaries from cache
# - task: CacheBeta@2
# displayName: 'Restore glass binaries from cache'
# inputs:
# key: 'glass'
# path: '$(Build.BinariesDirectory)\raw\binaries'
# cacheHitVar: 'CACHE_RESTORED'
- task: AzureCLI@2
displayName: 'Acquire an AAD token from a User-Assigned Managed Identity and save it as secret variable DropToken'
inputs:
azureSubscription: 'PylanceSecureVsIdePublishWithManagedIdentity'
scriptType: 'pscore'
scriptLocation: 'inlineScript'
inlineScript: |
# if this fails, check out this bash script that includes diagnostics:
# https://gist.github.com/johnterickson/19f80a3e969e39f1000d118739176e62
# Note that the resoruce is specified to limit the token to Azure DevOps
$token = az account get-access-token --query accessToken --resource 499b84ac-1321-427f-aa17-267ca6975798 -o tsv
Write-Host "##vso[task.setvariable variable=DropToken;issecret=true]$token"
# # Run the glass tests
# - task: PythonScript@0
# displayName: 'Run Glass tests'
# inputs:
# scriptSource: 'filePath' # 'filePath' | 'inline'. Required. Script source. Default: filePath.
# scriptPath: $(Build.SourcesDirectory)/Build/run_glass.py
# arguments: '--buildOutput $(Build.BinariesDirectory)\raw\binaries'
# workingDirectory: $(Build.SourcesDirectory)
# failOnStderr: true
# pythonInterpreter: $(PYTHON_INTERPRETER)
# Setup the glass test folder
- task: PythonScript@0
displayName: 'Setup glass test folder'
env:
SYSTEM_ACCESSTOKEN: $(DropToken)
inputs:
scriptSource: 'filePath' # 'filePath' | 'inline'. Required. Script source. Default: filePath.
scriptPath: $(Build.SourcesDirectory)/Build/setup_glass.py
arguments: '--authTokenVariable SYSTEM_ACCESSTOKEN --buildOutput $(Build.BinariesDirectory)\raw\binaries'
workingDirectory: $(Build.SourcesDirectory)
failOnStderr: true
pythonInterpreter: $(PYTHON_INTERPRETER)

# # Upload the trx file as a test result
# - task: PublishTestResults@2
# condition: always() # Always run this step, even if the previous step fails
# displayName: 'Publish Glass test results'
# inputs:
# testResultsFiles: '$(Build.SourcesDirectory)/TestResults/*.trx'
# testRunTitle: 'Glass Tests'
# testResultsFormat: 'VSTest'
# failTaskOnFailedTests: true
# Run the glass tests
- task: PythonScript@0
displayName: 'Run Glass tests'
inputs:
scriptSource: 'filePath' # 'filePath' | 'inline'. Required. Script source. Default: filePath.
scriptPath: $(Build.SourcesDirectory)/Build/run_glass.py
arguments: '--buildOutput $(Build.BinariesDirectory)\raw\binaries'
workingDirectory: $(Build.SourcesDirectory)
failOnStderr: true
pythonInterpreter: $(PYTHON_INTERPRETER)

# Upload the trx file as a test result
- task: PublishTestResults@2
condition: always() # Always run this step, even if the previous step fails
displayName: 'Publish Glass test results'
inputs:
testResultsFiles: '$(Build.SourcesDirectory)/TestResults/*.trx'
testRunTitle: 'Glass Tests'
testResultsFormat: 'VSTest'
failTaskOnFailedTests: true
2 changes: 0 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,6 @@ extends:

# check out code clean from source control
- checkout: self
fetchDepth: 1
fetchTags: false
clean: true

# Non-PR steps
Expand Down

0 comments on commit 08e9704

Please sign in to comment.