Skip to content

chore: Run go generate to pick up mock changes#6277

Open
lukemassa wants to merge 4 commits intorunatlantis:mainfrom
lukemassa:run_generate
Open

chore: Run go generate to pick up mock changes#6277
lukemassa wants to merge 4 commits intorunatlantis:mainfrom
lukemassa:run_generate

Conversation

@lukemassa
Copy link
Contributor

what

Run make go-generate to pick up mock changes

why

#6056 was added without running make go-generate.

Note that initially pegomock did not respect the change from interface{} to any, but this was fixed in petergtz/pegomock#117, so users may need to install the latest version of pegomock to verify.

tests

None, CI should find any mock issues.

references

Finishing work started in: #6056

Signed-off-by: Luke Massa <lukefrederickmassa@gmail.com>
Copilot AI review requested due to automatic review settings March 1, 2026 17:32
@dosubot dosubot bot added the go Pull requests that update Go code label Mar 1, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Regenerates Pegomock-generated mocks to align with recent interface signature updates (notably interface{}any, plus the updated WorkingDirLocker.TryLock parameters) in the Atlantis server codebase.

Changes:

  • Regenerated SimpleLogging, TemplateWriter, and GitlabRequestParserValidator mocks to use any in method signatures and captured-argument helpers.
  • Regenerated WorkingDirLocker mock to include the projectName string parameter in verifier/captured-argument helpers (matching the interface).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
server/logging/mocks/mock_simple_logging.go Updates generated mock signatures and captured-argument helpers to use ...any.
server/events/mocks/mock_working_dir_locker.go Updates generated mock/verifier argument handling to include projectName in TryLock.
server/controllers/web_templates/mocks/mock_template_writer.go Updates generated mock signatures and captured-argument helpers to use any.
server/controllers/events/mocks/mock_gitlab_request_parser_validator.go Updates generated mock return/capture typing to use any consistently.

Signed-off-by: Luke Massa <lukefrederickmassa@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go Pull requests that update Go code provider/gitlab

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants