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

Fix dbt docs deployment for new Ubuntu 24.04 runners #683

Merged
merged 3 commits into from
Dec 17, 2024

Conversation

jeancochrane
Copy link
Contributor

@jeancochrane jeancochrane commented Dec 16, 2024

Now that our GitHub runners are on Ubuntu 24.04, the Mermaid diagram generation in our dbt docs deployment pipeline is breaking due to an obscure AppArmor rule change that affects Puppeteer sandboxes. This PR implements the recommended solution from that issue by using aa-exec to confine the Mermaid process to a dedicated profile.

Full disclosure: I don't totally understand what's going on with this AppArmor rule change, but I think the stakes are pretty low, since we're only using Puppeteer via mermaid to load diagrams and save them to SVG, meaning we shouldn't be browsing the public internet or running untrusted code anyway. This also seems to be the recommended solution according to a Mermaid maintainer, per the link above.

See this workflow run for evidence that this change resolves the problem.

@jeancochrane jeancochrane marked this pull request as ready for review December 16, 2024 23:36
@jeancochrane jeancochrane requested a review from a team as a code owner December 16, 2024 23:36
@jeancochrane jeancochrane requested a review from dfsnow December 16, 2024 23:36
Copy link
Member

@dfsnow dfsnow left a comment

Choose a reason for hiding this comment

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

Sheesh, how many things can break from one distro upgrade.

.github/workflows/deploy_dbt_docs.yaml Outdated Show resolved Hide resolved
@jeancochrane jeancochrane merged commit 1d59a18 into master Dec 17, 2024
7 checks passed
@jeancochrane jeancochrane deleted the jeancochrane/fix-dbt-docs-deploy branch December 17, 2024 16:46
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