Skip to content

fix(api, worker): auto build info#6264

Merged
fsamin merged 18 commits into
masterfrom
fix_auto_build_info
Sep 2, 2022
Merged

fix(api, worker): auto build info#6264
fsamin merged 18 commits into
masterfrom
fix_auto_build_info

Conversation

@fsamin

@fsamin fsamin commented Sep 1, 2022

Copy link
Copy Markdown
Member

No description provided.

fsamin added 16 commits August 26, 2022 16:42
Signed-off-by: francois  samin <francois.samin@corp.ovh.com>
Signed-off-by: francois  samin <francois.samin@corp.ovh.com>
Signed-off-by: francois  samin <francois.samin@corp.ovh.com>
Signed-off-by: francois  samin <francois.samin@corp.ovh.com>
Signed-off-by: francois  samin <francois.samin@corp.ovh.com>
Signed-off-by: francois  samin <francois.samin@corp.ovh.com>
Signed-off-by: francois  samin <francois.samin@corp.ovh.com>
Signed-off-by: francois  samin <francois.samin@corp.ovh.com>
Signed-off-by: francois  samin <francois.samin@corp.ovh.com>
Signed-off-by: francois  samin <francois.samin@corp.ovh.com>
Signed-off-by: francois  samin <francois.samin@corp.ovh.com>
Signed-off-by: francois  samin <francois.samin@corp.ovh.com>
Signed-off-by: francois  samin <francois.samin@corp.ovh.com>
Signed-off-by: francois  samin <francois.samin@corp.ovh.com>
Signed-off-by: francois  samin <francois.samin@corp.ovh.com>
Signed-off-by: francois  samin <francois.samin@corp.ovh.com>
@ovh-cds

ovh-cds commented Sep 1, 2022

Copy link
Copy Markdown
Collaborator

CDS Report build-all-cds#17834.0 ✘

  • Build
    • Build and Package All ✔
    • Build Debpacker ✔
    • Build OS-Ansible-Inventory ✔
    • Build SMTPMock ✔
    • Lint UI Translate ✔
    • Test CLI ✔
    • Test Engine ✔
    • Test SDK ✔
    • Test UI ✔
  • Package
    • Docker ✘

Comment thread engine/api/workflow_queue.go Outdated
return err
}

var releaseRequest sdk.WorkflowRunResultPromotionRequest

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

releaseRequest -> promotionRequest

Comment thread engine/api/workflow_queue.go Outdated
for _, id := range releaseRequest.IDs {
if id == r.ID {
log.Debug(ctx, "adding promotion data: %+v", releaseRequest)
r.DataSync.Promotions = append(r.DataSync.Promotions, releaseRequest.WorkflowRunResultPromotion)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe test if promotion maturity is already in the slice

for _, id := range releaseRequest.IDs {
if id == r.ID {
log.Debug(ctx, "adding release data: %+v", releaseRequest)
r.DataSync.Releases = append(r.DataSync.Releases, releaseRequest.WorkflowRunResultPromotion)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

return sdk.Result{Status: sdk.StatusFail}, err
}

log.Info(ctx, "RunRelease> preparing run result %+v for release", promotedRunResultIDs)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
log.Info(ctx, "RunRelease> preparing run result %+v for release", promotedRunResultIDs)
log.Info(ctx, "RunPromote> preparing run result %+v for promotion", promotedRunResultIDs)

Signed-off-by: francois  samin <francois.samin@corp.ovh.com>
version: r.Version,
projectKey: r.ProjectKey,
}
log.Info(ctx, "compute build infos for %+v", execContext)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Debug ?

Signed-off-by: francois  samin <francois.samin@corp.ovh.com>
@ovh-cds

ovh-cds commented Sep 2, 2022

Copy link
Copy Markdown
Collaborator

CDS Report build-all-cds#17837.0 ✘

  • Build
    • Build and Package All ✔
    • Build Debpacker ✔
    • Build OS-Ansible-Inventory ✔
    • Build SMTPMock ✔
    • Lint UI Translate ✔
    • Test CLI ✔
    • Test Engine ✔
    • Test SDK ✔
    • Test UI ✔
  • Package
    • Docker ✘

@ovh-cds

ovh-cds commented Sep 2, 2022

Copy link
Copy Markdown
Collaborator

CDS Report build-all-cds#17837.1 ✘

  • Build
    • Build and Package All ✔
    • Build Debpacker ✔
    • Build OS-Ansible-Inventory ✔
    • Build SMTPMock ✔
    • Lint UI Translate ✔
    • Test CLI ✔
    • Test Engine ✔
    • Test SDK ✔
    • Test UI ✔
  • Package
    • Docker ✔
  • Integration
    • Docker Compose Tests ✔
    • Standalone Tests ✘

@ovh-cds

ovh-cds commented Sep 2, 2022

Copy link
Copy Markdown
Collaborator

CDS Report build-all-cds#17837.2 ✘

  • Build
    • Build and Package All ✔
    • Build Debpacker ✔
    • Build OS-Ansible-Inventory ✔
    • Build SMTPMock ✔
    • Lint UI Translate ✔
    • Test CLI ✔
    • Test Engine ✔
    • Test SDK ✔
    • Test UI ✔
  • Package
    • Docker ✔
  • Integration
    • Docker Compose Tests ✔
    • Standalone Tests ✘

@ovh-cds

ovh-cds commented Sep 2, 2022

Copy link
Copy Markdown
Collaborator

CDS Report build-all-cds#17837.3 ✘

  • Build
    • Build and Package All ✔
    • Build Debpacker ✔
    • Build OS-Ansible-Inventory ✔
    • Build SMTPMock ✔
    • Lint UI Translate ✔
    • Test CLI ✔
    • Test Engine ✔
    • Test SDK ✔
    • Test UI ✔
  • Package
    • Docker ✔
  • Integration
    • Docker Compose Tests ✔
    • Standalone Tests ✘

@sonarqubecloud

sonarqubecloud Bot commented Sep 2, 2022

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@fsamin fsamin merged commit 88919ef into master Sep 2, 2022
@fsamin fsamin deleted the fix_auto_build_info branch September 19, 2022 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants