Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

EVG-12870: Add trend charts to Spruce task page #451

Merged
merged 2 commits into from
Oct 21, 2020

Conversation

zamj
Copy link
Collaborator

@zamj zamj commented Oct 6, 2020

There's still some work to be done before Trend Charts are complete so we're still going to leave it off for now. When the final feature PR is in, we'll have to add the prod url to the settings

@zamj zamj requested review from khelif96 and ancostas October 6, 2020 13:50
README.md Outdated Show resolved Hide resolved
config/.cmdrc_sample.json Outdated Show resolved Hide resolved
@zamj
Copy link
Collaborator Author

zamj commented Oct 9, 2020

@khelif96 Material ui has been removed from the trend-charts in favor of antd

@@ -40,14 +40,12 @@ import { TestsTable } from "pages/task/TestsTable";
import { ExecutionAsDisplay, ExecutionAsData } from "pages/task/util/execution";
import { TaskTab, RequiredQueryParams } from "types/task";
import { parseQueryString } from "utils";
import { TrendCharts } from "./task/TrendCharts";
import { TrendChartsPlugin } from "../components/PerfPlugin";
Copy link
Contributor

Choose a reason for hiding this comment

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

We prefer to just use absolute imports you can just do import { TrendChartsPlugin } from "components/PerfPlugin";

@SupaJoon SupaJoon self-requested a review October 13, 2020 14:33
package.json Outdated
@@ -24,6 +24,7 @@
"@leafygreen-ui/text-input": "1.1.1",
"@leafygreen-ui/toggle": "3.0.1",
"@leafygreen-ui/typography": "1.0.1",
"@mongodb-dev-prod/trend-charts-ui": "^0.2.3",
Copy link
Contributor

Choose a reason for hiding this comment

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

we should remove the ^ so we can load a previous version of trend-charts-ui and redeploy if needed by only making changes to spruce instead of spruce and trend-charts-ui

Copy link
Contributor

Choose a reason for hiding this comment

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

This will coerce lockstep releases with spruce, right? Any patch update to the trend charts ui will have us coming here to update this line. If you want to load and redeploy a previous version by only changing spruce, it seems like this would be the line to edit at that point. On our end it would be convenient to just iterate major/minor/patch versions with some care, and this UI to consume updates as appropriate, e.g. fixed major/minor version and latest patch.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@SupaJoon @khelif96 Any thoughts on this? We'd prefer to not do lockstep releases so that we're not having to do two separate pr's whenever we make a minor change on the trend charts. If this is a hard requirement, that's fine though

Copy link
Contributor

@SupaJoon SupaJoon Oct 19, 2020

Choose a reason for hiding this comment

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

It's not a hard requirement for us to exclude the caret and I am for including the caret if it can benefit your workflow.
Something to consider if we include the caret is that there isn't an easy way to tell which version of trend-charts-ui is deployed in spruce by looking at the build/dist files (you can see the output in the build folder by running npm run build in spruce). The most convenient way to understand which version of trend-charts-ui is deployed in Spruce would be to see what was available in the trend-charts-ui npm module at the time of the most recent spruce deploy (that would require you to find the most recent spruce deploy message in the evergreen-deploys slack channel). Let me know what ya'll think!

Copy link
Collaborator Author

@zamj zamj Oct 19, 2020

Choose a reason for hiding this comment

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

That should be fine. We can do ~ instead if that makes you more comfortable so that we're only automatically updating on patch updates. That way we don't have to bother yall with bug fixes or small changes but are marking the times when we're making larger changes. Does that sound good?

Copy link
Contributor

Choose a reason for hiding this comment

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

@zamj sounds good to me!

@khelif96
Copy link
Contributor

The compile and e2e test tasks are OOMing.

@zamj
Copy link
Collaborator Author

zamj commented Oct 19, 2020

The compile and e2e test tasks are OOMing.

Fixed now

@@ -127,6 +125,16 @@ const TaskCore: React.FC = () => {
taskStatus: task?.status,
});

if (isPerfPluginEnabled) {
Copy link
Contributor

Choose a reason for hiding this comment

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

when both plugins are enabled, the tabToIndexMap contains non-integer numbers and values repeat across the keys: {"logs":0,"tests":1,"files":2,"trend-charts":3.5,"build-baron":3.5}. I

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Whoops, nice catch! Should be fixed now and handle any combination of them being enabled

package.json Outdated Show resolved Hide resolved
@zamj zamj force-pushed the EVG-12870 branch 2 times, most recently from 524a810 to ec344a4 Compare October 20, 2020 15:20
@khelif96 khelif96 self-requested a review October 20, 2020 15:32
@SupaJoon SupaJoon self-requested a review October 20, 2020 20:44
@khelif96
Copy link
Contributor

Good to go after we sort out the tabs not rendering properly

@zamj
Copy link
Collaborator Author

zamj commented Oct 21, 2020

Good to go after we sort out the tabs not rendering properly

Should be good to try now

@khelif96
Copy link
Contributor

Thanks for all of this!

@khelif96
Copy link
Contributor

The compile task is still OOMing I think you accidently removed the flag to allocate it more memory

@zamj
Copy link
Collaborator Author

zamj commented Oct 21, 2020

The compile task is still OOMing I think you accidently removed the flag to allocate it more memory

Whoops, good catch!

@zamj zamj merged commit b2ed417 into evergreen-ci:master Oct 21, 2020
@zamj zamj deleted the EVG-12870 branch October 21, 2020 21:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants