New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/buildpulse/test-reporter

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/buildpulse/test-reporter

  • v0.29.1
  • Source
  • Go
  • Socket score

Version published
Created
Source

BuildPulse Test Reporter MIT license

The BuildPulse test reporter is a binary that connects your continuous integration (CI) to buildpulse.io to help you detect, track, and eliminate flaky tests.

Get started at buildpulse.io.

Setup

Install goreleaser to build

brew install goreleaser/tap/goreleaser upx

Build

The following will build the binary.

./script/build-snapshot

The binary can be found in ./dist. The following platforms + architectures are supported:

  • Darwin / Mac OS (amd64, arm64)
  • Windows (amd64)
  • Linux (amd64, arm64)
    • Ubuntu
    • Debian
    • Fedora
    • CentOS
    • RedHat
    • Alpine

Natively Supported CI Providers

We are able to infer the required environment variables from the following CI providers:

  • Github Actions
  • BuildKit
  • CircleCI
  • Github Actions
  • Jenkins
  • Semaphore
  • Travis CI
  • Webapp.io
  • AWS CodeBuild
  • BitBucket Pipelines
  • Azure DevOps Pipelines

Other CI Providers / Standalone Usage

To use test-reporter with another CI provider, the following environment variables must be set:

Environment VariableDescription
GIT_COMMITGit commit SHA
GIT_BRANCHGit branch of the build, or PR number
BUILD_URLURL of the build. If running locally, set as https://example.com
ORGANIZATION_NAMEName of the Github organization
REPOSITORY_NAMEName of the repository

The following are flags that can be set. Make sure to set flags after CLI args.

FlagRequiredDescription
account-idBuildPulse account ID (see dashboard)
repository-idBuildPulse repository ID (see dashboard)
repository-dirOnly if tree not setPath to repository directory
treeOnly if repository-dir not setGit tree SHA
coverage-filesOnly if using BuildPulse CoverageSpace-separated paths to coverage files.
tagsSpace-separated tags to apply to the build.
quota-idID of the quota to apply upload to. Quotas can be set from the BuildPulse Dashboard.

Example:

BUILDPULSE_ACCESS_KEY_ID=$INPUT_KEY \
BUILDPULSE_SECRET_ACCESS_KEY=$INPUT_SECRET \
GIT_COMMIT=$GIT_COMMIT \
GIT_BRANCH=$GIT_BRANCH \
BUILD_URL=$BUILD_URL \
ORGANIZATION_NAME=$ORGANIZATION_NAME \
REPOSITORY_NAME=$REPOSITORY_NAME \
./buildpulse-test-reporter submit $REPORT_PATH --account-id $ACCOUNT_ID --repository-id $REPOSITORY_ID --repository-dir $REPOSITORY_PATH

FAQs

Package last updated on 06 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc