-
-
Notifications
You must be signed in to change notification settings - Fork 277
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 chartjs warnings #5964
Fix chartjs warnings #5964
Conversation
1ef07da
to
c58569c
Compare
That is funny. It wasn't giving me that warning when I was working on it. And it is also erroring out for me too. Which makes me think I forgot to run Anyway, I'll see if I can fix this today. |
c58569c
to
da471b8
Compare
It should be fixed now. When I was working on this, chartjs was sending the tick value instead of the tick label to the calllback, and something changed somewhere so that the tick label was sent instead of the tick value. So instead of something like |
Getting the following error now: ./node_modules/chart.js/dist/chart.js 559:18
Module parse failed: Unexpected token (559:18)
File was processed with these loaders:
* ./node_modules/react-scripts/node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
| };
| class DatasetController {
> static defaults = {};
| static datasetElementType = null;
| static dataElementType = null; |
It looks like I had some stuff from #5908. Its probably the chartjs update that did that. I'll back that out and check and see if it works properly. |
da471b8
to
d77c69c
Compare
It should be fine now (tested with |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for fixing those warnings. I like how the tooltip format has been modified; it provides a more user-friendly touch. Although I personally preferred the display of months instead of YYYY-MM-DD, I appreciate the changes nonetheless.
I can see it going either way. With that said, the test project I was using had 3 tasks mapped on different days in one month, and then a task mapped in that same month the next year. So the labels were |
CircleCI is consistently failing (9 times) because of a failing test case with |
FML. It worked both in the IDE and on the command line for me. I'll try multiple runs and see if it appears so I can debug it. :( EDIT: It took 16 runs on the command line until it reproduced, "FAIL src/views/tests/taskSelection.test.js (34.597 s) \r\n ● Task Selection Page › should change the button text to map selected task when user selects a task" I bet this is a timing issue or something stupid like that. :( |
I completely understand your frustration. This is the same test case issue we've been battling for a while now. In the past, CircleCI builds would typically pass, but unfortunately, this time, it didn't. Debugging this issue has been a headache for me as well. I think I'll take a shot at fixing warnings in |
I had no intention of repairing those. I was aware that you had handled it on the larger PR, so I was looking for other warnings in 930545c . My attempt was futile; I split off from this PR and incorporated #5979 in another branch, but the failing test still didn't pass. |
@HelNershingThapa @ramyaragupathy When I commented out this line, the time spent running the test decreased from 599 to 119ms. So Maybe it could be a good solution, as you're testing if the user can see the project or not. |
Indeed @willemarcel, commenting out that particular line does improve the test execution time significantly and allows the test case to pass. It makes sense since the line checks the visibility of a comment in the "questions and comments" section. After implementing this workaround, CircleCI encountered another similar issue. Another test case is now failing due to the same "timeout exceeded" problem (more info here) 🤯. |
@willemarcel looks like so; it's using |
SonarCloud Quality Gate failed. 0 Bugs No Coverage information Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
d1b9b1d
to
1c6b8d9
Compare
SonarCloud Quality Gate failed. 0 Bugs No Coverage information Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
I just ran a bunch of tests on the develop branch and this branch. The The most common tests to "fail" were in src/views/tests/taskSelection.test.js (~66%), but I suspect that the failing tests are generally flaky. I'm going to run a while loop overnight, but I suspect that all of the tests that failed in the |
Logs from running for several days (linux) |
I've looked for failing test files from the logs in the previous comment. Both of the linux runs were on the same box, run at the same time. I'll note that there are some cancellations counted in all environments (ctrl+c) due to OOM issues. Failing test files
The absolute flakiest test file is src/views/tests/taskSelection.test.js. |
81025b3
to
fabd78a
Compare
b8d042e
to
11d2735
Compare
d9a2d98
to
90f5cbf
Compare
OK. It has taken me awhile, but I've figured out what is causing the test failures.
In order to understand why In other words,
So, how can we work around this import timing problem?
Of the two problems, (1) is probably better, since it should be more reliable (AKA: we don't have to keep mocks in sync with code). |
0ef6620
to
13a51c4
Compare
Signed-off-by: Taylor Smock <[email protected]>
Signed-off-by: Taylor Smock <[email protected]>
…calls Signed-off-by: Taylor Smock <[email protected]>
13a51c4
to
71b431a
Compare
Quality Gate passedIssues Measures |
The graph on manage statistics page has differ from previous. The graphs previously shows adjacent individual pillars for tasks mapped and validated. However, the new one shows both mapped and validated tasks on single pillar. |
It looks like this was a bug; the original definitions (see #4103) for the graphs were scales: {
yAxes: [
{
stacked: true,
ticks: {
beginAtZero: true,
},
},
],
xAxes: [
{
stacked: true,
},
],
}, If we want to keep the second style (side-by-side), we need to drop |
See #5721 (comment) for additional context.
Big things: