Skip to content

Conversation

@MuneebUllahKhan222
Copy link
Contributor

Description:

This pull request introduces the following changes:

  1. Dependency Update
  • Updated the gitlab.com/gitlab-org/api/client-go dependency from v0.129.0 to v1.12.0 in go.mod.
  1. Test Adjustments
  • Fixed the test crashing in filesystem_integration_test.go and gitlab_integration_test.go due to missing import of defaults package.
  • Updated the expected metrics in gitlab_integration_test.go to make sure that the test passes.
  • Updated the basic auth, scoped repo test to use creds of non-2fa account as gitlab no longer allows repo to be cloned with password of a 2fa enabled account.

Checklist:

  • Tests passing (make test-community)?
  • Lint passing (make lint this requires golangci-lint)?

@MuneebUllahKhan222 MuneebUllahKhan222 requested a review from a team January 12, 2026 09:35
@MuneebUllahKhan222 MuneebUllahKhan222 requested review from a team as code owners January 12, 2026 09:35
@kashifkhan0771
Copy link
Contributor

Please do not merge this before this one: #4608

I want these changes to go to Enterprise first.

go.mod Outdated
replace github.com/coinbase/waas-client-library-go => github.com/trufflesecurity/waas-client-library-go v1.0.9

// TODO: v1.134.0 is available but deprecates existing Auth methods, should be updated separately
replace gitlab.com/gitlab-org/api/client-go => gitlab.com/gitlab-org/api/client-go v0.129.0
Copy link
Contributor

Choose a reason for hiding this comment

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

To update the version, this pinned entry must be removed as well. Otherwise, the build will continue to use v0.129.0 no matter what version is listed below.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Contributor

@kashifkhan0771 kashifkhan0771 left a comment

Choose a reason for hiding this comment

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

Need to resolve the conflicts.

@kashifkhan0771
Copy link
Contributor

Please do not merge this before this one: #4608

Thank you for waiting. The PR is merged, you can resolve the conflicts and we can review this PR.

gitlab.WithCustomRetryWaitMinMax(time.Second, 5*time.Second),
gitlab.WithCustomRetryMax(3),
)
apiClient, err := gitlab.NewAuthSourceClient(&gitlab.PasswordCredentialsAuthSource{Username: s.user, Password: s.password}, gitlab.WithBaseURL(s.url))
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's split this line like before to make it cleaner

Copy link
Contributor

Choose a reason for hiding this comment

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

issue: Agree w/ Shahzad; I was born in the 1980s and I can only read so far to the right; probably like:

apiClient, err := gitlab.NewAuthSourceClient(
  &gitlab.PasswordCredentialsAuthSource{
    Username: s.user,
    Password: s.password,
  },
  gitlab.WithBaseURL(s.url),
)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Contributor

@camgunz camgunz left a comment

Choose a reason for hiding this comment

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

LG! Just want that line split up then merge away 👍🏻

gitlab.WithCustomRetryWaitMinMax(time.Second, 5*time.Second),
gitlab.WithCustomRetryMax(3),
)
apiClient, err := gitlab.NewAuthSourceClient(&gitlab.PasswordCredentialsAuthSource{Username: s.user, Password: s.password}, gitlab.WithBaseURL(s.url))
Copy link
Contributor

Choose a reason for hiding this comment

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

issue: Agree w/ Shahzad; I was born in the 1980s and I can only read so far to the right; probably like:

apiClient, err := gitlab.NewAuthSourceClient(
  &gitlab.PasswordCredentialsAuthSource{
    Username: s.user,
    Password: s.password,
  },
  gitlab.WithBaseURL(s.url),
)

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