PR Checks:
Process Time - the time from a line change in the code to the deployment of the artefact created by this change to the production environment.
Full Documentation: https://github.com/data-driven-value-stream/.github/wiki/Process-Time
Tutorial
Here is an example https://worldpwn.visualstudio.com/process-time/_build?definitionId=4
Azure Devops repository Access
To access repository in Azure DevOps with pipline access token you need either run pipeline.yml file from the repository itself or reference needed repository in reosource.
resources:
repositories:
- repository: process-time
type: git
name: process-time
ref: main
steps:
- checkout: process-time
- checkout: self
- script: |
# do something
displayName: 'Can access both repositories'
env:
System.AccessToken: $(System.AccessToken)
Example Trunk Based Development
resources:
repositories:
- repository: process-time
type: git
name: process-time
ref: main
steps:
- checkout: process-time
- checkout: self
- script: |
# Set Variables
orgname="Azure DevOps Organization Name"
echo "orgname=$orgname"
token=$(System.AccessToken)
project="Azure DevOps Project Name"
echo "project=$project"
pipeline_id=1
echo "pipeline_id=$pipeline_id"
current_run_id=23
echo "current_run_id=$pipeline_id"
# Install Dependencies
python -m pip install --upgrade pip
pip install process-time-azure-devops==0.1.0
pip install azure-devops=7.1.0b4
# Run Process Time Package
python src/process_time_azure_devops/__main__.py --org "$orgname" --token "$token" --project "$project" --pipeline-id "$pipeline_id" --current-run-id $current_run_id
displayName: 'Can access both repositories'
env:
System.AccessToken: $(System.AccessToken)
# To publish result use run id in file name
- publish: $(System.DefaultWorkingDirectory)/process_time_result_23.json
artifact: process_time_result_23
Example Git-Flow
resources:
repositories:
- repository: process-time
type: git
name: process-time
ref: main
steps:
- checkout: process-time
- checkout: self
- script: |
# Set Variables
orgname="Azure DevOps Organization Name"
echo "orgname=$orgname"
token=$(System.AccessToken)
project="Azure DevOps Project Name"
echo "project=$project"
pipeline_id=1
echo "pipeline_id=$pipeline_id"
current_run_id=23
echo "current_run_id=$pipeline_id"
# Install Dependencies
python -m pip install --upgrade pip
pip install process-time-azure-devops==0.1.0
pip install azure-devops=7.1.0b4
# Run Process Time Package
# Add argument for development and production branch names without 'refs/heads/'
python src/process_time_azure_devops/__main__.py --org "$orgname" --token "$token" --project "$project" --pipeline-id "$pipeline_id" --current-run-id $current_run_id --production-branch-name "production" --development-branch-name "development"
displayName: 'Can access both repositories'
env:
System.AccessToken: $(System.AccessToken)
# To publish result use run id in file name
- publish: $(System.DefaultWorkingDirectory)/process_time_result_23.json
artifact: process_time_result_23
Metadata
Release files for process-time-azure-devops 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| process_time_azure_devops-0.3.0.tar.gz | 15.0 kB | Without provenance | Details for process_time_azure_devops-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| process_time_azure_devops-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for process_time_azure_devops-0.3.0-py3-none-any.whl |
Total release size: 31.3 kB
Release files / process_time_azure_devops-0.3.0.tar.gz
| Download URL | process_time_azure_devops-0.3.0.tar.gz |
|---|---|
| Size | 15.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8a06c827b10b790552aa5b488de176a547a27495f2c3a97b22912761498f5680
|
|
BLAKE2b-256 checksum How to use checksums |
32ee99d5ca3a45632f92516d70deffbf634e9e098a06d140d0149a516713b25b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.5
|
Release files / process_time_azure_devops-0.3.0-py3-none-any.whl
| Download URL | process_time_azure_devops-0.3.0-py3-none-any.whl |
|---|---|
| Size | 16.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
52f8f81692277b3b145abb9c9749ab99af33b353b17ceae28d94b93e07449eb8
|
|
BLAKE2b-256 checksum How to use checksums |
cd44d310aa7c42b9270ef6661607d4c3083f4e8e4588337c3735f08af716a1d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.5
|
Security for process-time-azure-devops 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.