Skip to content

couchbaselabs/jenkins-sdk

Repository files navigation

A Jenkins shared library, for use by SDK team.

(Well, that was the intent, but Jenkins won't allow untrusted libraries to use third-party libs.)

SDK Performance

See https://github.com/couchbaselabs/transactions-fit-performer/blob/master/perf-driver/README.md for instructions.

CLI tools

Tags

A pre-processor conditionally comments-out bits of code depending on a target SDK version. The pre-processor directives are referred to as "tags". See the Tag Syntax Guide.

To run TagProcessor from the command line using Gradle:

./gradlew tags --args="-d <some_path> -v 3.0.0"

To restore the code to its "pre-preprocessed" state, use the -r flag:

./gradlew tags --args="-d <some_path> -v 3.0.0 -r"

Building performer Docker images

See the comments on BuilderPerformer for more.

./gradlew buildPerformer --args="-d <some_path> -s kotlin -v 1.0.0 -i performer"

Outputting SDK versions

./gradlew listVersions --args="-s scala"

Setting up performance database

Creates all required tables.

./gradlew setupPerfDatabase

or with args:

./gradlew setupPerfDatabase --args="--host timescaledb"

Run FIT/PERF

This runs com.couchbase.perf.shared.main.Execute, which is the main FIT/PERF 'engine'.

./gradlew fitPerf

Performance run analysis

Produces an HTML file showing what performance workloads are being generated by a config file.

./gradlew countRuns -Pconfig=/path/to/fit-as-a-service/config/fit-perf-scheduled.yaml

Listing Docker container metadata

Lists all available metadata for every container version of a GHCR package, given its github.com package URL.

Requires a GITHUB_TOKEN environment variable holding a token with the read:packages scope.

export GITHUB_TOKEN=<your-pat>
./gradlew listDockerContainers -Purl=https://github.com/couchbaselabs/transactions-fit-performer/pkgs/container/java-fit-performer

Optional: -Pjson emits raw API JSON instead of human-readable text; -Plimit=N stops after N versions.

About

A shared Jenkins library for use by SDK team

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages