Skip to content

fix(ci): correct artifact paths for monorepo structure#54

Open
jbdevprimary wants to merge 1 commit into
mainfrom
jules-ci-fix-from-session
Open

fix(ci): correct artifact paths for monorepo structure#54
jbdevprimary wants to merge 1 commit into
mainfrom
jules-ci-fix-from-session

Conversation

@jbdevprimary
Copy link
Copy Markdown
Contributor

Summary

Fix CI failure by correcting artifact upload/download paths for the monorepo structure.

Changes

  • Upload path: distpackages/**/dist (capture all package builds)
  • Download path: distpackages (restore correct directory structure)

Source

This fix was identified by Jules AI (session 13997878939372578345) but the session completed without creating a PR. The patch was manually extracted and applied.

Related


🤖 Changes identified by Jules AI, PR created by control-center

The CI build was failing because the `build` job was not producing a `dist` directory at the root of the repository. Instead, each package in the monorepo was creating its own `dist` directory within the `packages` directory.

This commit fixes the CI workflow by:
- Changing the artifact upload path in the `build` job to `packages/**/dist` to correctly capture all build outputs.
- Updating the artifact download path in the `test` and `release` jobs to `packages` to ensure the correct file structure is recreated for dependent jobs.
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

@jbdevprimary
Copy link
Copy Markdown
Contributor Author

🤖 AI Code Review

Summary

Changes artifact paths from monolithic dist to monorepo packages/**/dist for upload, and download destination to packages for downstream jobs.

Issues

🔴 Critical: Download artifact path mismatch. Upload uses packages/**/dist but download expects a single artifact named build-output. This will likely fail or create unexpected directory structures.

🟠 High: Download action downloads to packages directory, but tests may expect dist structure. This breaks test environment assumptions.

Suggestions

Low: Consider using merge-multiple: true in download action if you intend to upload multiple directories as separate artifacts.

Low: Add comments explaining the monorepo structure change for future maintainers.


Reviewed by Ecosystem Reviewer using glm-4.6:cloud

@jbdevprimary
Copy link
Copy Markdown
Contributor Author

🤖 AI Code Review

Summary

Review completed

✅ No Issues Found

Additional Comments

{
  "summary": "Changed artifact paths from 'dist' to 'packages/**/dist' and adjusted download path to 'packages', but artifact upload and download names and paths are mismatched.",
  "issues": [
    {
      "severity": "critical",
      "category": "bug",
      "message": "Artifact upload path 'packages/**/dist' doesn't match the expected test job's structure which expects artifacts at root 'dist'",
      "suggestion": "Ensure consistency between upload and download paths. Either change upload to 'packages/**/dist' and download to same structure, or revert to flat 'dist'"
    },
    {
      "severity": "high",
      "category": "bug",
      "message": "Test job downloads to 'packages' but original workflow expected 'dist', breaking the test step's path assumptions",
      "suggestion": "Update test steps to handle artifacts from 'packages' directory or maintain download path as 'dist'"
    }
  ],
  "approval": "request_changes",
  "comments": "The path changes appear inconsistent and could break artifact handling. The upload path includes nested packages but download expects flat artifacts. Please verify the intended artifact structure."
}

Reviewed by Control Center using Ollama GLM 4.6

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jan 1, 2026

@jbdevprimary jbdevprimary added auto-merge jules-pr Created by Jules AI bug-fix Bug fix ci-fix CI/CD fix labels Jan 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge bug-fix Bug fix ci-fix CI/CD fix jules-pr Created by Jules AI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants