Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consolidate artifact functionality in internal package #2985

Merged
merged 3 commits into from
Sep 10, 2024
Merged

Conversation

DrJosh9000
Copy link
Contributor

@DrJosh9000 DrJosh9000 commented Sep 10, 2024

Description

#2204 lives!

Artifact-related library functionality isn't intended to be imported and used outside the agent. This moves all the artifact stuff out of agent into its own internal package.

Since there are some common AWS things needed from the new artifact package, these are also factored into their own internal package.

Context

Preparing to work on more artifact things, maybe.

Changes

  • Move artifact code into internal/artifact
  • Move AWS library code into internal/awslib
  • Rename artifact package identifiers (generally dropping Artifact)
  • Fix tests...
    • ...by moving their fixtures, eliminating the need to os.Chdir, making the tests parallelizable.

Testing

  • Tests have run locally (with go test ./...). Buildkite employees may check this if the pipeline has run automatically.
  • Code is formatted (with go fmt ./...)

@DrJosh9000 DrJosh9000 force-pushed the artifact-tidy branch 2 times, most recently from b724c8f to 3ec5580 Compare September 10, 2024 05:09
@DrJosh9000 DrJosh9000 force-pushed the artifact-tidy branch 2 times, most recently from cfaa006 to ae9e153 Compare September 10, 2024 05:16
@DrJosh9000 DrJosh9000 requested a review from a team September 10, 2024 05:22
Copy link
Contributor

@CerealBoy CerealBoy left a comment

Choose a reason for hiding this comment

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

Nice one!

@DrJosh9000 DrJosh9000 merged commit 47ff753 into main Sep 10, 2024
1 check passed
@DrJosh9000 DrJosh9000 deleted the artifact-tidy branch September 10, 2024 06:06
@wolfeidau
Copy link
Contributor

@DrJosh9000 great work!

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.

3 participants