Existing failures:
On the same terminal that you would invoke test-proxy on, please run:
| # This script REQUIRES the presence of environment variable DEVOPS_TOKEN with the necessary READ permissions. | |
| import os | |
| import sys | |
| import base64 | |
| import json | |
| import csv | |
| from typing import List, Set, Any, Dict | |
| from dataclasses import dataclass, asdict |
| # example usage: | |
| # | |
| # ./parse_template_calls.ps1 -InputFile C:\repo\sdk-for-python\eng\pipelines\templates\stages\archetype-sdk-client.yml -RepoRoot C:\repo\sdk-for-python | |
| # We could make the thing ascend to repo root for us, but I didn't want to fit that in this script | |
| param( | |
| $InputFile, | |
| $RepoRoot = "C:/repo/sdk-for-python/" | |
| ) |
private boolean proxyIsManual() {
return Configuration.getGlobalConfiguration().get("PROXY_MANUAL_START") != null
}debugger statement in the appropriate place within your typescript code. Say, generate_report.tschrome://inspect/ using it.Open dedicated DevTools for Node
--inspect to the node invocation of your actual code. EG: node --inspect ./dist/generate_report.js| # After writing this code, I realized that these inputs do not need to be sorted to meet my purposes for `scripts/analyze_deps.py`. | |
| # As a result, I have removed this code from the code base, but am emplacing it here so that I can retrieve it later. | |
| # pip install packaging | |
| from typing import List | |
| import re | |
| from packaging.version import Version, parse | |
| class SortableSpecifierSet: | |
| def trim_spec(self, spec): |
Currently works, but has organically grown into two separate stacks that I believe best be merged.
We have some repeated code, mostly present around:
| $inputFile = "your-qr-image.PNG" | |
| $file = "re-rewritten.txt"; | |
| $test_out = "re-out.png" | |
| # to base64 | |
| [System.Convert]::ToBase64String((Get-Content $inputFile -AsByteStream)) | Set-Content $file | |
| # back to bytes | |
| [Convert]::FromBase64String((Get-Content $file)) | Set-Content $test_out -AsByteStream |