Skip to content

feat: add tests for nudging gitlab repos#1419

Merged
tisutisu merged 1 commit into
konflux-ci:mainfrom
tnevrlka:gitlab-nudging-tests
Oct 17, 2024
Merged

feat: add tests for nudging gitlab repos#1419
tisutisu merged 1 commit into
konflux-ci:mainfrom
tnevrlka:gitlab-nudging-tests

Conversation

@tnevrlka

@tnevrlka tnevrlka commented Oct 9, 2024

Copy link
Copy Markdown
Contributor

It is currently not possible to merge a PR with multiple commits without squashing them. Created #1418 that should be merged before this, so we can avoid squashing

Description

  • Nudging functionality is currently only
    being tested for GitHub repositories
  • Switch to Git provider-agnostic functions
    and test GitLab repositories too

Issue ticket number and link

STONEBLD-2389

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Added Focus to the changed tests and ran e2e-tests.

Checklist:

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added meaningful description with JIRA/GitHub issue key(if applicable), for example HASSuiteDescribe("STONE-123456789 devfile source")
  • I have updated labels (if needed)

@openshift-ci

openshift-ci Bot commented Oct 9, 2024

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@tnevrlka tnevrlka force-pushed the gitlab-nudging-tests branch 2 times, most recently from 5b17f07 to 08476b1 Compare October 9, 2024 15:20
@tnevrlka tnevrlka marked this pull request as ready for review October 9, 2024 15:31
@openshift-ci openshift-ci Bot requested review from jinqi7 and joejstuart October 9, 2024 15:31
Comment thread tests/build/build.go Outdated
import (
"encoding/json"
"fmt"
"github.com/konflux-ci/e2e-tests/pkg/clients/git"

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.

Please separate standard and other dependencies

Comment thread tests/build/build.go
ChildComponentDef.gitRepo = fmt.Sprintf(githubUrlFormat, githubOrg, ChildComponentDef.repoName)
ParentComponentDef.componentName = fmt.Sprintf("multi-component-parent-%s", branchString)
ChildComponentDef.componentName = fmt.Sprintf("multi-component-child-%s", branchString)
switch gitProvider {

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.

This should be at least a separate function, imo

Comment thread tests/build/build.go Outdated
// get the build pipeline bundle annotation
buildPipelineAnnotation = build.GetDockerBuildPipelineBundle()

if gitProvider == "gitlab" {

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.

We can have github with token too

- Nudging functionality is currently only
being tested for GitHub repositories
- Switch to Git provider-agnostic functions
and test GitLab repositories too
@tnevrlka tnevrlka force-pushed the gitlab-nudging-tests branch from 698726d to 18caa46 Compare October 17, 2024 09:00
@tisutisu

Copy link
Copy Markdown
Contributor

/lgtm
/approve

@openshift-ci

openshift-ci Bot commented Oct 17, 2024

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tisutisu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants