-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
TestHistoryMetrics.testEvents graph changes structure in updates-testing #21237
Comments
Confirmed in #21241 this seems to be real. |
Relevant package updates:
Previous version:
Changelog: https://github.com/performancecopilot/pcp/blob/main/CHANGELOG Test assertion failure:
The metrics are historical so from a known dump so the values should not really change. |
That version changes the interpretation of existing data somewhat, and thus events slightly move around. Make the assertions flexible enough to work with old and new versions. There was not much science in the original assertions anyway -- I simply recorded some stuff and then pinned down the status quo. We can make this stricter again once all supported OSes have PCP ≥ 6.3.2 (but that'll be a few years). Addresses the non-pixel parts of cockpit-project#21237
#21295 should fix the textual bits. Making the pixel tests accomodate both versions is just too awful. https://bodhi.fedoraproject.org/updates/FEDORA-2024-22b21606d8 should hit updates in one or two days, then let's refresh the image and accept the new pixel refs. We can suffer through two more nightly failures. (There's also the Python crash, though) |
I could reproduce the differences with With pcp-6.3.1-1.fc40.x86_64:
With pcp-6.3.2-2.el10.x86_64:
Note how the values jump up one minute later in the newer version. Both versions show the same raw data in the archives, of course:
In fact, there isn't any interpolation of values going on. The sample time is rounded differently. In the old version 05:03:46.594 gets the raw data for 05:02:46.630, while in the new version, it gets the raw data for 05:03:46.620. The new version seems "more correct", the old version seems to round down, while the new version might round to nearest. Anyway, no bug to report. We have to survive with both. |
That version changes the interpretation of existing data somewhat, and thus events slightly move around. Make the assertions flexible enough to work with old and new versions. There was not much science in the original assertions anyway -- I simply recorded some stuff and then pinned down the status quo. We can make this stricter again once all supported OSes have PCP ≥ 6.3.2 (but that'll be a few years). Addresses the non-pixel parts of #21237
What about not doing pixel tests for updates-testing? We don't have a mechanism to cope with pixel alternatives and any failure in updates-testing will just be pain. If we write code like
then the machinery will yet at us that one of "dialog" or "dialog-testing" is unused... but we could invent something if we want to. |
That crossed my mind, but I feel that would diminish their value too much. They did help us to find this difference (which could have been a regression). I wouldn't mind skipping this specific pixel test on updates-testing if you prefer. But honestly I currently lean towards dragging our feet a bit and then forgetting about it. |
cockpit-project/bots#7126 refreshes the image, but that fails on a handful of other issues. We'll update the pixel tests as part of that. |
The job
fedora-40/updates-testing
failed on commit f474f0d.Log: https://cockpit-logs.us-east-1.linodeobjects.com/pull-0-f474f0da-20241109-013334-fedora-40-updates-testing/log.html
The text was updated successfully, but these errors were encountered: