dataset

package
v0.0.0-...-187e736 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DATASET_DIR      = "dataset"
	DA_JSON          = "da.json"
	TRACKING_JSON    = "tracking.json"
	INFO_JSON        = "info.json"
	ADDITIONAL_REPOS = "additional-repos.json"

	BUILD_MVN = "MVN"
	BUILD_NPM = "NPM"
)

Variables

This section is empty.

Functions

func Run

func Run(pncBaseUrl, indyBaseUrl, buildId string, isGroupBuild bool)

*

  • For each group build or normal build, generate folder structure as below. *
  • dataset
  • # for group build
  • |--2836 => group build id
  • |-- info.json => info about this test dataset, e.g, pnc base url, which is useful to orchestrator
  • |-- group-build.json => Get by "/pnc-rest/v2/group-builds/2836"
  • |-- dependency-graph.json => Get by "/pnc-rest/v2/group-builds/2836/dependency-graph"
  • |-- builds
  • |-- ...
  • |-- AMJMVSDA5EAAE
  • |-- da.json => metadata list, parsed from alignment log "/pnc-rest/v2/builds/AMJMVSDA5EAAE/logs/align"
  • |-- tracking.json => indy tracking record, get by "http://<indy>/api/folo/admin/build-AMJMVSDA5EAAE/report" *
  • # for normal build, we download similar files but ignore the dependencies
  • |-- AMJMVSDA5EAAA => build id
  • |-- info.json => same as above
  • |-- build.json => Get by "/pnc-rest/v2/builds/AMJMVSDA5EAAA"
  • |-- da.json => same as above
  • |-- tracking.json => same as above

Types

type Build

type Build struct {
	Id    string
	Items []string `yaml:"build"`
}

type BuildQueue

type BuildQueue struct {
	Builds []Build
}

type DepGraph

type DepGraph struct {
	Vertices map[string]interface{} `json:"vertices"`
	Edges    []Edge                 `json:"edges"`
}

type Edge

type Edge struct {
	Source string
	Target string
}

type Info

type Info struct {
	PncBaseUrl     string `json:"pncBaseUrl"`
	BuildId        string `json:"buildId"`
	BuildType      string `json:"buildType"`
	TemporaryBuild bool   `json:"temporaryBuild"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL