Discover Packages
github.com/pachyderm/pachyderm/v2
src
testing
cmds
go-test-results
package
Version:
v2.7.7
Opens a new window with list of versions in this module.
Published: Mar 13, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
Testing the collector locally with minikube
Setup minikube like you would for normal setup
adjust variables in etc/testing/circle/workloads/ci-results/collector/test-collect.sh
as needed
create the repos and pipeline images: eval $(minikube -p minikube docker-env) && echo $(cd etc/testing/circle/workloads/ci-results && ./build-docker.sh)
ensure the results you want to test with are in the /tmp/test-results
folder
Apply the schema etc/testing/circle/workloads/go-test-results/schema.sql
to the DB if the tables do not exist.
run the collector with `etc/testing/circle/workloads/ci-results/collector/test-collect.sh
If you want to test with local grafana check this page out: https://grafana.com/docs/grafana/latest/setup-grafana/installation/kubernetes/
Making changes
To make a change the production docker image needs to be updated then pulled by pachyderm@pachops.com . To do this:
login as a docker user with push permissions to the pachyderm repo
Run ./build-docker.sh in this folder with the updated <version number>
Run docker push pachyderm/go-test-results:<version number>
To update the pipeline you can run the command
pachctl update pipeline --jsonnet src/testing/cmds/go-test-results/egress/pipeline.jsonnet --arg version=<version> --arg pghost=cloudsql-auth-proxy.pachyderm.svc.cluster.local. --arg pguser=postgres --project ci-metrics
Expand ▾
Collapse ▴
Documentation
¶
type JobInfo struct {
Id string `json:"id,omitempty"`
WorkflowId string `json:"workflow_id"`
JobId string `json:"job_id"`
JobName string `json:"job_name"`
JobTimestamp time .Time `json:"job_timestamp"`
JobNumExecutors int `json:"job_num_executors"`
JobExecutor int `json:"job_executor"`
Commit string `json:"commit"`
Branch string `json:"branch"`
Username string `json:"username"`
Tag string `json:"tag"`
PullRequests string `json:"pull_requests"`
}
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.