decrease parallel workers to 2 for CI (#522)

jobatzil/rename
Vistaar Juneja 2023-09-18 13:36:07 +00:00 committed by Harness
parent dfe539c67d
commit 094c14049a
3 changed files with 3 additions and 6 deletions

View File

@ -200,6 +200,7 @@ func convertToDroneBuild(execution *types.Execution) *drone.Build {
func convertToDroneRepo(repo *types.Repository) *drone.Repo {
return &drone.Repo{
ID: repo.ID,
Trusted: true, // as builds are running on user machines, the repo is marked trusted.
UID: repo.UID,
UserID: repo.CreatedBy,
Name: repo.UID,

View File

@ -149,8 +149,6 @@ func (t *triggerer) Trigger(
return t.createExecutionWithError(ctx, pipeline, base, err.Error())
}
verified := true
var matched []*yaml.Pipeline
var dag = dag.New()
for _, document := range manifest.Resources {
@ -237,9 +235,7 @@ func (t *triggerer) Trigger(
if stage.Name == "" {
stage.Name = "default"
}
if verified == false {
stage.Status = enum.CIStatusBlocked
} else if len(stage.DependsOn) == 0 {
if len(stage.DependsOn) == 0 {
stage.Status = enum.CIStatusPending
}
stages = append(stages, stage)

View File

@ -88,7 +88,7 @@ type Config struct {
// CI defines configuration related to build executions.
CI struct {
ParallelWorkers int `envconfig:"GITNESS_CI_PARALLEL_WORKERS" default:"5"`
ParallelWorkers int `envconfig:"GITNESS_CI_PARALLEL_WORKERS" default:"2"`
}
// Database defines the database configuration parameters.