-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CI: Remove powershell scripts (Azure) #30431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
e8d3fdf
9f77392
2c3c87f
0b34bda
ee6ec13
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,33 +23,34 @@ jobs: | |
Write-Host "##vso[task.prependpath]$env:CONDA\Scripts" | ||
Write-Host "##vso[task.prependpath]$HOME/miniconda3/bin" | ||
displayName: 'Add conda to PATH' | ||
|
||
- script: conda update -q -n base conda | ||
displayName: 'Update conda' | ||
|
||
- bash: | | ||
conda env create -q --file ci\\deps\\azure-windows-$(CONDA_PY).yaml | ||
displayName: 'Create anaconda environment' | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Making newline between each step consistent with |
||
- bash: | | ||
source activate pandas-dev | ||
conda list | ||
python setup.py build_ext -q -i | ||
python -m pip install --no-build-isolation -e . | ||
displayName: 'Build' | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. #30393 should have gotten rid of the build.cmd on L37. this isnt going to re-introduce it by accident? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Apologies just merged master |
||
- bash: | | ||
source activate pandas-dev | ||
ci/run_tests.sh | ||
displayName: 'Test' | ||
|
||
- task: PublishTestResults@2 | ||
condition: succeededOrFailed() | ||
inputs: | ||
failTaskOnFailedTests: true | ||
testResultsFiles: 'test-data.xml' | ||
testRunTitle: 'Windows-$(CONDA_PY)' | ||
- powershell: | | ||
$(Get-Content "test-data.xml" | Out-String) -match 'failures="(.*?)"' | ||
if ($matches[1] -eq 0) { | ||
Write-Host "No test failures in test-data" | ||
} else { | ||
Write-Error "$($matches[1]) tests failed" # will produce $LASTEXITCODE=1 | ||
} | ||
displayName: 'Check for test failures' | ||
testRunTitle: ${{ format('{0}-$(CONDA_PY)', parameters.name) }} | ||
displayName: 'Publish test results' | ||
|
||
- bash: | | ||
source activate pandas-dev | ||
python ci/print_skipped.py | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a particular reason to specify this instead of keeping as always?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My understand was that
suceeded()
is the default condition on Azure as per docs:By default, steps, jobs, and stages run if all previous steps/jobs have succeeded. It's as if you specified "condition: succeeded()" (see Job status functions).
And I thought we want to publish test results regardless of whether failures are produced? Or am I missing something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My mistake. I guess ultimately my question is this versus
always
if it mattersThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking a look! Apparently
always()
will run even if the pipeline is cancelled -> that's the difference