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

Fetch logs of particular steps #57

Open
nineinchnick opened this issue Jun 9, 2021 · 2 comments
Open

Fetch logs of particular steps #57

nineinchnick opened this issue Jun 9, 2021 · 2 comments

Comments

@nineinchnick
Copy link
Owner

There's a log table already, but it fetches logs of all steps in a job. This is often too much to handle in a single page.

Instead, it would be useful to try to fetch logs for particular steps in a job, after identifying failing steps. This is not documented, but the URL is: {owner}/{repo}/commit/{sha}/checks/{jobId}/logs/{stepNumber}. This could map to a table called step_logs and would have to support predicate pushdown for all params in that URL.

@nineinchnick
Copy link
Owner Author

Note this will most likely require #40 to be useful, since steps will usually be joined with the jobs table.

@nineinchnick
Copy link
Owner Author

There's no API for this. We'd have to split logs based on the block comments.

I guess I'll just try to finish fetching job logs, that is add splitting them into parts to avoid reaching the internal Trino page limit.

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

1 participant