-
Notifications
You must be signed in to change notification settings - Fork 148
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 condition to get commits within 30 days of the latest commit #1921
add condition to get commits within 30 days of the latest commit #1921
Conversation
This is a bit hacky, yeah 😅 And it won't work for locally benchmarked commits, since these are not master commits. Ideally, we should move the hardcoded condition that I realize now that it's quite difficult to make this work both locally and on the live server, because there we have very different requirements. On perf.RLO, we want to show only master commits, with a default range of I'm not really sure what to do with that. We could display also try/local commits e.g. in debug mode, but that's quite unintuitive. We could add some parameter to the website, or check if the URL e.g. starts with localhost, but even then I wouldn't want to check this condition in Maybe we could modify |
I was thinking it would be useful to have a list of available benchmark runs to choose from when comparing on localhost. What do you think about adding ENV="production" and that page? As you mentioned, the desired behavior is quite different in production compared to local. |
I'd ike to keep it simple-ish and the same on production and locally. What about doing this:
Or as an alternative to 2), add a select box. But we'd need to have both a select box and the input field, because we want to allow looking up any artifact, not just these in the last N artifacts. |
Option 1 looks better to me. However, to keep it simple and avoid showing alerts from the local environment, maybe we could mark the local benchmark artifact as 'master'? |
I did not mean it as two options, but rather as a single solution that consists of two steps 😅 Yes, marking local artifacts as Could you try this? master...Kobzol:rustc-perf:bench-local-commit-type |
Ah, I see. I thought step 2 was a bit difficult and not the best approach. Since it's hard to display enough information in the suggestion box due to its limited area, so we need to consider the layout carefully if we do that. Thanks! I'll give it a try. |
Looks almost perfect! Now we don't get annoying alert. rustc-perf/collector/src/bin/collector.rs Line 734 in 025f64b
|
Yes, that should also be modified :) Can you update the compile/runtime artifacts to master in this PR? It's really the simplest solution. I looked at the |
Okay. Would it be okay to close this PR and create a new one later so that the context will be easier to understand? |
Ok, let's do that :) |
closes #1920
I'm not sure if this is a good implementation.