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

Testing of chromium distributed by grafana-image-renderer #227

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

mahendrapaipuri
Copy link
Owner

  • We need to do some basic test using chromium shipped by Grafana image renderer before using it. We were testing it using --help flag which does not exist on the application. If it works, it hangs which is not what we want.

  • This commit fixes this test by using a command that returns upon successful execution. We also use a timeout just in case to avoid the command hanging in there forever.

  • We also setup a special home directory for chromium and inject XDG_CONFIG_HOME and XDG_CONFIG_HOME env vars in chromium process. This avoids chromium attempting to create directories in read-only folders.

* We need to do some basic test using chromium shipped by Grafana image renderer before using it. We were testing it using `--help` flag which does not exist on the application. If it works, it hangs which is not what we want.

* This commit fixes this test by using a command that returns upon successful execution. We also use a timeout just in case to avoid the command hanging in there forever.

* We also setup a special home directory for chromium and inject `XDG_CONFIG_HOME` and `XDG_CONFIG_HOME` env vars in chromium process. This avoids chromium attempting to create directories in read-only folders.

Signed-off-by: Mahendra Paipuri <[email protected]>
@mahendrapaipuri mahendrapaipuri merged commit 0aadedb into main Jan 7, 2025
13 checks passed
@mahendrapaipuri mahendrapaipuri deleted the fix_chrome_discovery branch January 7, 2025 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant