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

[Question/Idea] Is it possible to use gh-page data.js content as cached value? #199

Open
RaulTrombin opened this issue Oct 25, 2023 · 2 comments

Comments

@RaulTrombin
Copy link

RaulTrombin commented Oct 25, 2023

I would like to compare the PR's benchmark with the master one,

My ideia is: instead use a cache, to try something with:

      - name: Get previous benchmark data
        run: |
          echo "Fetching gh-pages branch"
          git fetch origin gh-pages

          echo "Checking out gh-pages branch"
          git checkout gh-pages

          if [ ! -d "./cache" ]; then
            echo "Cache folder does not exist, creating it"
            mkdir ./cache
          fi

          echo "Copying data file from gh-pages to cache"
          cp ./dev/bench/data.js ./cache/data.js || { echo "Failed to copy data file" ; exit 1; }

          echo "Checking out main branch"
          git checkout -

an then run the benchmark action with minimal setup, using this content as the json external file.

@RaulTrombin RaulTrombin changed the title [Question/Ide [Question/Idea] Is it possible to use gh-page data.js content as cached value? Oct 25, 2023
@ktrz
Copy link
Member

ktrz commented Mar 28, 2024

Hi @RaulTrombin

I'm sorry for taking so long to get back to you.

I don't quite understand what you want to achieve. Could you please elaborate a bit more on what is your goal?

@RaulTrombin
Copy link
Author

@ktrz Hey,
I can't remember exatcly what was the issue,
But I think it was the cache, it could be erased with long times without using the actions,
then I've used the gh-page to store my previous results.
So the idea proposed was to use gh-page to store cache.

This is how I'm using the actions for a Rust library running some drivers methods that read magnetometers/accelerometers/sensors...things.
https://github.com/bluerobotics/navigator-rs/blob/4425d95be16c786f3a562dbc2ed6043727804917/.github/workflows/action.yml#L60

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

No branches or pull requests

2 participants