Skip to content

ci: stop hiding the preview base marker from its own artifact - #212

Merged
Atharva0506 merged 1 commit into
StabilityNexus:mainfrom
Atharva0506:ci/preview-base-marker
Sep 4, 2026
Merged

ci: stop hiding the preview base marker from its own artifact#212
Atharva0506 merged 1 commit into
StabilityNexus:mainfrom
Atharva0506:ci/preview-base-marker

Conversation

@Atharva0506

Copy link
Copy Markdown
Member

Addressed Issues:

Follow-up to #211 — one line that PR needed and did not have when it merged. Previews cannot publish without it.

Description of Changes:

actions/upload-artifact leaves hidden files out of the artifact unless include-hidden-files says otherwise, so dist/.preview-base never reached the publish job. Proof from #211's own build, artifact 9947008574:

entries: 231
entries with a dot-prefixed component: NONE

The publish job reads that file to check the build was made for the path this site actually serves. With the file gone it reads nothing, reports built '<unset>', and refuses to publish — so on current main every preview fails the guard.

Renamed to dist/preview-base rather than switching on include-hidden-files, so it does not depend on that input existing at the pinned action version. The publish job still deletes it before committing, so it is never served.

Verification

Guard exercised locally against a scratch bare repo in all three states:

  • built for /Chainvoice/... against a / site → rejected, naming the value to set
  • built for /pr-preview/pr-209/ against a / site → passes, marker consumed before publishing
  • marker absent → rejected as <unset>, which is what main does today

AI Usage Disclosure:

  • This PR contains AI-generated code. I have read the AI Usage Policy and this PR complies with this policy. I have tested the code locally and I am responsible for it.

I used Claude Code to find this by inspecting the artifact zip produced by #211's build, and to verify the fix.

Checklist

  • My PR addresses a single issue, fixes a single bug or makes a single improvement.
  • My code follows the project's code style and conventions
  • My changes generate no new warnings or errors
  • I have read the Contribution Guidelines

actions/upload-artifact leaves hidden files out of the artifact unless told
otherwise, so dist/.preview-base never reached the publish job: the artifact
built for StabilityNexus#211 has 231 entries and not one dot-prefixed among them. The base
check would then have read nothing, called it '<unset>', and refused every
preview.

Renamed rather than switched on include-hidden-files, so it does not depend on
that input existing at the pinned action version.
@coderabbitai

coderabbitai Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 49 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Team

Run ID: 0411d060-43c5-4ab7-b375-aaeacf079880

📥 Commits

Reviewing files that changed from the base of the PR and between 4aaa020 and e53cbf7.

📒 Files selected for processing (2)
  • .github/workflows/pr-build.yml
  • .github/workflows/pr-deploy.yml

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Atharva0506
Atharva0506 merged commit c37f102 into StabilityNexus:main Sep 4, 2026
4 checks passed
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.

1 participant