Skip to content

Conversation

@prakash-218
Copy link
Contributor

Why?

Bazel cache restoration was failing because symbolic links were being converted to regular files during cache save/restore operations.
Added enableCrossOsArchive: false to all Bazel cache steps to preserve symlinks correctly.

@prakash-218 prakash-218 changed the title Chore(CI): Fix cache with symlinks chore(CI): Fix cache with symlinks Nov 4, 2025
@chaokunyang
Copy link
Collaborator

chaokunyang commented Nov 5, 2025

image it seems those pipeline still not work

Removed caching steps for Bazel binaries, repository, and build outputs.
Removed caching steps for Bazel binary, repository, and build outputs.
Removed caching steps for Bazel binaries, repository, and build outputs.
@chaokunyang
Copy link
Collaborator

@prakash-218 maybe you could try setup-bazel cache later:

- uses: bazel-contrib/setup-bazel@0.15.0
  with:
    # Avoid downloading Bazel every time.
    bazelisk-cache: true
    # Store build cache per workflow.
    disk-cache: ${{ github.workflow }}
    # Share repository cache between workflows.
    repository-cache: true

now let me remove build cache to fix ci

@chaokunyang chaokunyang merged commit 08d97a3 into apache:main Nov 5, 2025
59 checks passed
chaokunyang added a commit to chaokunyang/fory that referenced this pull request Nov 30, 2025
<!--
**Thanks for contributing to Apache Fory™.**

**If this is your first time opening a PR on fory, you can refer to
[CONTRIBUTING.md](https://github.com/apache/fory/blob/main/CONTRIBUTING.md).**

Contribution Checklist

- The **Apache Fory™** community has requirements on the naming of pr
titles. You can also find instructions in
[CONTRIBUTING.md](https://github.com/apache/fory/blob/main/CONTRIBUTING.md).

- Apache Fory™ has a strong focus on performance. If the PR you submit
will have an impact on performance, please benchmark it first and
provide the benchmark result here.
-->

## Why?

Bazel cache restoration was failing because symbolic links were being
converted to regular files during cache save/restore operations.
Added `enableCrossOsArchive: false` to all Bazel cache steps to preserve
symlinks correctly.

---------

Co-authored-by: Shawn Yang <chaokunyang@apache.org>
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.

2 participants