Skip to main content

await-ccb

Given a git SHA, waits for a corresponding Google Cloud Container Builder build to complete successfully.

  • If a successful build exists, exits 0.
  • If a running or queued build exists, polls until no running builds are found or the --poll-limit is reached. Exits 0 if any are successful, 1 on failure.
  • If no running/queued build is found in the initial search, repeats the search up to --search-limit times to see if a running build appears.

Install

pip install await-ccb

Usage

Usage:
    await-ccb -c credentials.json -r repo-name -s git-sha
        [-t -p my-project --poll-interval 5 --poll-limit 360 --search-limit 5]
    await-ccb --help
    await-ccb --version

Options:
    -c CREDENTIALS_JSON, --credentials CREDENTIALS_JSON
        Path to service account credentials in Google JSON format

    -p PROJECT, --project PROJECT
        Google Code Project ID, defaults to project from credentials

    -r REPO, --repo REPO
        Repo name, as known to CCB (e.g. github-thedyrt-await-ccb)

    -s SHA, --sha SHA
        Git SHA to observer builds for

    -t, --trigger
        Trigger a build if none are found. Requires an existing build trigger
        to be configured for the repo in the Google Cloud Console.

    --search-limit LIMIT
        Number of attempts to make in the initial search for running builds
        [Default: 3]

    --poll-limit LIMIT
        Number of poll requests to make before giving waiting on running builds
        to complete. Total polling time is --poll-limit * --poll-interval.
        [Default: 360]

    --poll-interval SECONDS
        Number of seconds to wait between requests
        [Default: 5]

    -h, --help
        Show this help

    --version
        Show version info

Metadata

Release files for await-ccb 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for await-ccb 0.1.3
File Size Uploaded Provenance
await_ccb-0.1.3.tar.gz 3.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for await-ccb 0.1.3
File Interpreter ABI Platform
await_ccb-0.1.3-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 9.7 kB

Release files / await_ccb-0.1.3.tar.gz

Download URL await_ccb-0.1.3.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
21e80decab9b1e41ff36e527d3b9b480d45e6ed660aa8be1f2aaaf51fc98a158
BLAKE2b-256 checksum
How to use checksums
9602d9668c4adad7223e2f1083243d56bd3d904a805376c460d9869ebba84e02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / await_ccb-0.1.3-py2.py3-none-any.whl

Download URL await_ccb-0.1.3-py2.py3-none-any.whl
Size 5.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
02fca54cc84aa594c0d05c93b863887fcad63c8343df4eacb6b4c5a2698a51bb
BLAKE2b-256 checksum
How to use checksums
6fac61f07b078215a83b92cd45ebcab4e2d8f84157ff4a61c1310135173e8bcd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for await-ccb 0.1.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page