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

Moving to rsync #938

Merged
merged 16 commits into from
Oct 15, 2024
Merged

Moving to rsync #938

merged 16 commits into from
Oct 15, 2024

Conversation

tolzhabayev
Copy link
Collaborator

@tolzhabayev tolzhabayev commented Oct 15, 2024

Following up on: grafana/plugin-tools#1214 and https://github.com/grafana/grafana-developer-portal/pull/22

Switching to using rsync with delete option - to ensure that the GCS content equals the content of the build, up until now we just added new files but never deleted the old ones. Since it is a static site - it can lead to some weird old built pages still being available even when deleted from the source code. This PR cleans it up.

Starting as dry run -n and will remove it before merge.

Additional yak shaving changes:

  • Bump docusaurus to the v3
  • Fix bump-related issues in mdx file in advance variables doc
  • Adjust turborepo build to be able to pass arguments required for dev stage build
  • Move towards cleaner config - with shared underlying base file

Example runs:

Copy link
Member

@dprokop dprokop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine!

@tolzhabayev tolzhabayev requested a review from jackw October 15, 2024 09:21
docusaurus/website/docusaurus.config.base.js Show resolved Hide resolved
};

const presetsTheme = {
customCss: require.resolve('./src/css/custom.css'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The css files might need an update too.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated c736f89

@tolzhabayev tolzhabayev requested a review from jackw October 15, 2024 10:04
@tolzhabayev
Copy link
Collaborator Author

tolzhabayev commented Oct 15, 2024

@dprokop I managed to fix the build issues related to cache by removing the single github actions caches manually

gh cache list

but I think the cache logic you are using in this workflow should be re-evaluated https://github.com/grafana/scenes/blob/main/.github/actions/yarn-nm-install/action.yml as it will most likely happen to other PRs.

It also takes quite a while to store - e.g. https://github.com/grafana/scenes/actions/runs/11344746920/job/31550341163#step:12:1

SCR-20241015-mzdq

@tolzhabayev tolzhabayev merged commit ca524fc into main Oct 15, 2024
5 checks passed
@tolzhabayev tolzhabayev deleted the chore/switch-to-rsync branch October 15, 2024 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

3 participants