Test-infra: mkpj needs to support split job config

Created on 5 Jun 2018  路  10Comments  路  Source: kubernetes/test-infra

/kind bug
/area prow
/assign @krzyzacy

areprow kinbug

All 10 comments

what does this mean?

prow/cmd/mkpj needs to work with multiple job config files, right now it only has a --config-path= file to specify monolithic config.yaml

IMO you pass in one config file for one job, unless we want a batch mode for mkpj

@krzyzacy I suspect right now it would fail to load it :-)

func main() {
    o := gatherOptions()
    if err := o.Validate(); err != nil {
        logrus.Fatalf("Invalid options: %v", err)
    }

    conf, err := config.Load(o.configPath, "")
    if err != nil {
        logrus.WithError(err).Fatal("Error loading config.")
    }

why? it should not.

@krzyzacy if the job is in another file we won't load it... we only load the main prowConfig file right now. It won't parse ...?

In any case it should also support reading in all of the files so you don't have to hunt down the right file to retrigger a job with the new config :-)

sure, I'll add another flag, basically for all the controllers.

/joke

@krzyzacy: I wish I could clean mirrors for a living. It's just something I can see myself doing.

In response to this:

/joke

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lavalamp picture lavalamp  路  3Comments

stevekuznetsov picture stevekuznetsov  路  3Comments

spiffxp picture spiffxp  路  3Comments

BenTheElder picture BenTheElder  路  4Comments

xiangpengzhao picture xiangpengzhao  路  3Comments