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

Set up typegraphs dir as a symlink on CI #395

Closed
wants to merge 3 commits into from
Closed

Conversation

dontlaugh
Copy link
Collaborator

Our goal is to create a persistent cache of svg files between builds.

When a CI agent is first created, the cache will populate the svg
files in the build agent's home directory. Subsequent builds should
be faster. Refs #393

dontlaugh added 2 commits June 1, 2024 11:00
Our goal is to create a persistent cache of svg files between builds.

When a CI agent is first created, the cache will populate the svg
files in the build agent's home directory. Subsequent builds should
be faster. Refs #393
@dontlaugh dontlaugh force-pushed the symlink-cache-dir branch 3 times, most recently from 8da0580 to d275dec Compare June 1, 2024 18:45
@dontlaugh dontlaugh force-pushed the symlink-cache-dir branch from d275dec to 67d2e7a Compare June 1, 2024 19:07
@dontlaugh
Copy link
Collaborator Author

@finanalyst So I'm a little confused why I'm not seeing a speedup here. I've logged into the build environments and I am reasonably certain that the typegraphs directory is symlinked to the right place.

builder@raku-doc-ci-108:~/builds/raku-doc-ci-108/raku/doc-website/Website/plugins/typegraph$ stat typegraphs
  File: typegraphs -> /home/builder/cache/typegraphs
  Size: 30        	Blocks: 8          IO Block: 4096   symbolic link
Device: a4h/164d	Inode: 279475      Links: 1
Access: (0777/lrwxrwxrwx)  Uid: ( 2000/ builder)   Gid: ( 2000/ builder)
Access: 2024-06-01 18:52:39.455148285 +0000
Modify: 2024-06-01 18:47:40.597219005 +0000
Change: 2024-06-01 18:47:40.597219005 +0000
 Birth: 2024-06-01 18:47:40.597219005 +0000
builder@raku-doc-ci-108:~/builds/raku-doc-ci-108/raku/doc-website/Website/plugins/typegraph$ ls /home/builder/cache/typegraphs | head
Allomorph.svg
Any.svg
Array.svg
Associative.svg
AST.svg
Attribute.svg
BacktraceFrame.svg
Backtrace.svg
Baggy.svg
BagHash.svg

Any additional things I should try?

@finanalyst
Copy link
Collaborator

@dontlaugh Sorry I seem to be catching up and you've tried things.
Have you tried running build-website without --no-status?
So as not to build all the sources, just run
bin_files/build-website --with-only='types.rakudoc Block.rakudoc' -/no-status
This will only render the 'types' page and the 'type/Block.rakudoc` source. But it will run all the plugins including typegraph.
If no-status is False, then typegraph will generate output if it is re-generating the typegraphs.

@dontlaugh
Copy link
Collaborator Author

I'm going to close this and figure out a more resilient approach

@dontlaugh dontlaugh closed this Oct 21, 2024
@dontlaugh dontlaugh deleted the symlink-cache-dir branch October 21, 2024 21:35
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