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

Add Sentry instrumentation #15

Closed
wants to merge 89 commits into from
Closed

Add Sentry instrumentation #15

wants to merge 89 commits into from

Conversation

zmc
Copy link
Owner

@zmc zmc commented Oct 9, 2023

No description provided.

Devansh3712 and others added 30 commits June 8, 2023 10:54
The original pulpito used routes like /:run/:job_id. While we prefer the
more explicit routes, it'll be helpful if URLs are mostly backwards
compatible.

Signed-off-by: Zack Cerza <[email protected]>
Signed-off-by: Med16-11 <[email protected]>
Problem: CI doesn't trigger on pull requests

Solution: rename deploy.yml to ci.yml and trigger CI on every PR.

Also Added a Linter to CI.

Signed-off-by: Kamoltat Sirivadhna <[email protected]>
Instead of using `formatDistanceToNow`, we came up with `timeSince` which basically utilizes Date.now() and used simple arithmetics to compute `started time`
Signed-off-by: Med16-11 <[email protected]>
pages/Job/index.js: fix job started time
Reviewed-by: Kamoltat Sirivadhna <[email protected]>
Implement kill-run button
Reviewed-by: Kamoltat Sirivadhna <[email protected]>
Revert "Implement kill-run button"
Reviewed-by Kamoltat Sirivadhna <[email protected]>
Reviewed-by Devansh Singh <[email protected]>
pages/Runs/index.tsx: fixed date filter box alignment
Reviewed-by: Kamoltat Sirivadhna <[email protected]>
This required updating several other dependencies, and removing
@mui/styles

Signed-off-by: Zack Cerza <[email protected]>
npx @mui/codemod v5.0.0/jss-to-styled src

Signed-off-by: Zack Cerza <[email protected]>
It's deprecated.

Signed-off-by: Zack Cerza <[email protected]>
npm install --save-dev @typescript-eslint/parser \
  @typescript-eslint/eslint-plugin eslint typescript

Signed-off-by: Zack Cerza <[email protected]>
Fixes errors mentioning "cannot be used as a JSX component."

Signed-off-by: Zack Cerza <[email protected]>
npm install @tanstack/react-query @tanstack/react-query-devtools
npm uninstall react-query

Signed-off-by: Zack Cerza <[email protected]>
Fixes "require is not defined"

Signed-off-by: Zack Cerza <[email protected]>
The auto-reloads aren't great.

Signed-off-by: Zack Cerza <[email protected]>
This turned into a pretty major change. The breaking changes in the new
DataGrid API necessitated a change in how we were storing and updating
state. The reducers were dropped in favor of the use-query-params
library. As a bonus, filtering, pagination, and deep links all work
better than they did before.

Signed-off-by: Zack Cerza <[email protected]>
VallariAg and others added 29 commits August 22, 2023 21:10
Signed-off-by: Vallari <[email protected]>
Other minor additions:
1. In nodes table, add links in 'name' column
2. Add 'hideFooter' prop in DataGrid component

Signed-off-by: Vallari <[email protected]>
other minor fixes:
- DataGrid: show boolean true/false symbols in black color
- Drawer: "Nodes" route to /nodes?machine_type=smithi by default
- NodeList: sort by name + thin machine_type col + length desc
- StatsNodesJob: sort by name + display node's shortname
- StatsNodesLock: sort by owner

Signed-off-by: Vallari Agrawal <[email protected]>
- Node Page: use NodeList (instead of DataGrid)
- useNodes(): remove params because machine_type filters should
		be on handled on client side
- useNode(): return Node[] (instead of Node) so NodeList can be used

Signed-off-by: Vallari Agrawal <[email protected]>
Done by adding 'pagingMode' prop to JobList component
because Run page uses client side paging and Node Page
needs server side paging

Signed-off-by: Vallari Agrawal <[email protected]>
Dockerfile: Run in production mode
Reviewed-by: Kamoltat Sirivadhna <[email protected]>
This truncates the longer strings to 200 chars.

Signed-off-by: Zack Cerza <[email protected]>
JobList: Hover on status col shows failure reason
Reviewed-by: Kamoltat Sirivadhna <[email protected]>
We could add path-browserify as a dependency and have access to Node.js'
path module, but that's 15kb and this is four lines.

Signed-off-by: Zack Cerza <[email protected]>
This is more helpful than linking directly to teuthology.log, which may
not even exist yet.

Signed-off-by: Zack Cerza <[email protected]>
And change the text to "Log Archive"

Signed-off-by: Zack Cerza <[email protected]>
Job{,List}: Link to job archive directories
Reviewed-by: Kamoltat Sirivadhna <[email protected]>
Github Authentication
Reviewed-by: Kamoltat Sirivadhna <[email protected]>
Other minor changes:
1. set retry=1 for teuthologyAPI useSession query
2. disable login button when teuthology-api cannot be pinged

Signed-off-by: Vallari Agrawal <[email protected]>
fix: default url for TEUTHOLOGY_API_SERVER
Reviewed-by: Kamoltat Sirivadhna <[email protected]>
We were rendering a blank page on all routes if the teuthology-api
endpoint wasn't configured.

Signed-off-by: Zack Cerza <[email protected]>
They're not implemented as React hooks, so let's not name them as if
they are.

Signed-off-by: Zack Cerza <[email protected]>
Signed-off-by: Zack Cerza <[email protected]>
@zmc zmc closed this Oct 9, 2023
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.

5 participants