这是indexloc提供的服务,不要输入任何密码
Skip to content

[turborepo] Additional artifact metadata #2802

@ThibautMarechal

Description

@ThibautMarechal

Which project is this feature idea for?

Turborepo

Describe the feature you'd like to request

While building my custum turborepo remote cache server, I wanted to know a bit more information about where an artifact come from.
Example here:
image
I'm using the "team" field to identify wich repository is used.
On the screen, 1 line correspond to 1 artifact.
An artifact is (correct me if I'm wrong) the outputs of a pipeline in a package.
Could it be possible to have the information about the pipeline name and the package name that produce the artifact ?
Could be also nice to have that information at the analyticsEvents level so we can make a difference between turbo build or turbo test

Describe the solution you'd like

Add HTTP headers to the HTTP request that PUT an artifacts
x-package-name
x-pipeline-name

Add the informations in the AnalyticsEvent level

{
  duration: number;
  event: EventType;
  hash: string;
  sessionId: string;
  source: SourceType;
  package: string; // new field
  pipeline: string; // new field
}

Describe alternatives you've considered

Turborepo could also provide some kind of plugin, or hook to modify the analytics / artifacts HTTP requests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions