Proposal: a SIG to improve production stability and incident management

I did not read all these posts, it is as much as if I had written it :stuck_out_tongue: So I hope my post is not already obsoleted:

first of all, I would not too much focus on the one incident. Second, it was already pointed out to not overlap with or separate from QA. Whatever happens in this field should be aligned with them. That said, I was thinking some time ago about a SIG that is tailored to support QA, as I see two issues in which users could organize themselves to support QA while it might be still useful to have a type of organization not bound to that of QA (something like the sub-SIGs we have at the security SIG).

  1. make a list of packages that are used by many or that are very impactful, and that therefore go along with stability needs from many: packages from the big WGs can be taken for granted imho, but many packages not installed by default on major Fedora variants might be useful to add to the list.

  2. contribution 1 (stage from Fedora testing to Fedora stable): do testing in bodhi on these packages → people can organize themselves here in Discourse, which raises further awareness from other average users. Many users can test, but not provide sufficiently valuable feedback due to lack of experience, as bug reporting is a skill that should not be underestimated. A SIG with 50 people of whom 5 have experience in bug reports can do a lot, and the 50 can make a difference as the majority of packages are likely to be fine anyway. If something comes up, they can work in a ticket here and sum up what is useful feedback, supported by those 5 experienced in this.

→ Also, a group gives people, especially those with low experience in such things, self-confidence (don’t underestimate psychology as entry barrier to such contributions), as a lot who could do something are insecure what/how to report. And those who report despite low experience might get deterred due to some maintainer responses (I do not want to open this topic here in depth but there is also a reason why maintainers can be sometimes feel hostile or blunt to normal users → it is not necessarily intended that way but can still deter normal users). A group can help to give them useful feedback and the confidence, but also to help to understand some feedbacks and avoid that this ends for average users in stopping to contribute after their first maintainer response, but also mitigate that maintainers get tickets, mails or bodhi-posts that effectively do not add value (I exaggerate obviously to make the point; I think many here know what I mean). Also, those with more experience might mitigate the deterring or “desctructive” cases or at least translate between cultures.

  1. contribution 2 (stage from the source to Fedora environment): due to a shortage of maintainers, a few have to maintain a lot, and thus much is automated and can break in the maintainer’s pipelines → packages that do not get updated over months or even years occur more often than we want it → here, again, we cannot just test packages in bodhi but also verify upstream if updates are available at the source that are not deployed to the Fedora environment for, e.g., 6 months or so, and inform maintainers to check it. Again, those more experienced might mitigate unnecessary or inappropriate reports, as in some cases it is intended that something is not updated. But rationalizing can help, and sometimes its not intended :classic_smiley:

→ This might also help that average users get a feeling of what is going on in maintenance and create some understanding for their situation, and contribute a little to deescalating the sometimes “not so nice” relationship between the two through reciprocal understanding, but also foster maintainers/developers to more value normal users / their contributions.

→ Once the SIG’s activity on a package has proven useful, such as it could reliably ensure that a package has been pushed to stable due to +1 user karma rather than “time passed without negative karma” in all updates over 6 months or so, the package can be marked in the list as “reliably tested” or so. Also, as Kamil already noted, they could also develop over time informally test cases for some packages, and then forward them to QA to get standardized/formalized, if they have proven useful for some time.

Such a SIG can involve users with limited experience, and make useful use of them, and mitigate and optimize communication.

That said, I had this idea about a year ago in another incident, and had not the time to make something out of it, and I cannot make promises about contributions at the moment, so I would not have put this forward myself (while I would be happy to subscribe to a Discourse tag created for this and help as far as I can allocate time). Therefore, I also did not really a feasibility check about it. So it is likely there are considerations I did not incorporate yet. There are also many implications I did not yet add here, potentially positive ones but also potentially negative ones. But maybe its useful as another perspective for potential approaches :classic_smiley:

1 Like

Jack, I’m not a native speaker, but I find your wording passive-aggressive. Please don’t. This is a community distribution, where collaboration takes place. If you want services, guarantees, etc, buy a RHEL license. Fedora has a bigger scope than RHEL and has much less paid people available. It’s very simple, without volunteers, there would be no Fedora. We try very hard that there is no “us vs them” - we try to make all our processes transparent, all our trackers and tickets, all our projects, all documentation, all meetings, everything. The amount of internal stuff is almost a clean zero in our team. The same applies to the rest of CLE as well (infra, releng, etc). Anyone is welcome to join, we try to have decent documentation and howtos for contribution. Our chat channels are public, we’re here discussing with you. Community people vote on blocker bugs in the same way we do. Even though the regular testing is mostly done by paid QA folks (because it’s boring, we know), most of the bugs are reported by the community. We wouldn’t be able to report even a fraction of it. And this goes across the whole distro, community people get elected even to the highest organs like FESCo.

So if you believe that paid employees should do everything in Fedora and volunteers shouldn’t be necessary, you need to look elsewhere, because this is impossible in Fedora. There’s much more work needed in Fedora than available manpower. (Unless of course Fedora drops all packages and editions/spins that RHEL doesn’t have, and stays purely as an in-development version or RHEL - but that project already exists).

Speaking at least for Quality, the paid employees are 100% utilized (over 100% recently, unfortunately, so we had to even cut stuff). If we want to raise the quality, community can help us get there (and I believe that is what this proposal is about). If we fail to attract volunteers, we’ll stay where we are.

Yes, the developer should at least run it before submitting the update. Often, the bugs only occur in certain circumstances. I tested the broken mesa update myself and found no problem. That’s why you need lots of testers with lots of different use cases. Anyone running with updates-testing permanently enabled greatly helps us.

That referenced build had no warning signs (no negative karma). In general, yes, every time there is a negative karma somewhere, having additional people look at it and try to reproduce the problem is a big help, and can prevent breakages getting to stable updates. I try to watch out for it myself, but currently we have no good notification system for it, and it would need more people participating.

Even without the negative karma notification system, just updating your system from updates-testing regularly and submitting karma (through fedora-easy-karma perhaps) is extremely helpful. I do that at least three times per week. If we gather some people willing to help us with “stability testing”, I’m happy to write a document with recommendations, howtos and tips specific to this area (on top of our existing What can I do? document).

4 Likes

I am sorry, I am not a native speaker as well.

But it doesn’t invalidate my points.

I believe that Red Hat development practices and processes can be improved to respect time and efforts of unpaid volunteers.

Improving predictability and reducing noise in “updates-testing” seems reasonable to me.

If we consider “updates-testing” of released Fedora versions to be “staging”, it is bad to put patches there without any prior testing and review/approval.

Sorry, Jack, I fail to understand your point. Individual mistakes were made, yes. There will always be individual mistakes, whatever process you have. But we can mitigate some of them with well-designed processes. Of course. I suggested a number of ways these processes can be improved, and how people can join in and help. You criticize that because it involves volunteers (ignoring the fact that this whole proposal is a call for volunteers). I don’t understand what you’re trying to achieve. Let’s be constructive and present clear changes to the workflows, or new activities, that can improve stable release quality. On a global level, not particular to one broken mesa update.

1 Like

It is a good question. There is nothing Red Hat-specific in it. And it should be discussed with the maintainers of the component and the wider Fedora community.

Red Hat does not have any specific guidelines for Fedora contributions. Red Hat has RHEL development guidelines which say “try to do upstream first as much as possible”. But any upstream contribution should and does happen according to the processes, practices and rules of that upstream project, Fedora included.

By trying to frame this conversation as Red Hat vs community you are undermining the work done by actual members of the community. You will be more successful talking to the people doing the work than trying to appeal to the Red Hat hive mind.

1 Like

I don’t criticize these suggestions because they involve volunteers. I think that your suggestions are very good.

This is a good idea.

Lets say there is a proposition to introduce “updates-unstable” repository, so that any update has to travel from “updates-unstable” to “updates-testing” to “stable”. Something like Debian does already.

This way single accidental button press on Friday evening can’t cause as much troubles, and “updates-unstable” can be used more freely for internal development and volunteer testers, as well as other projects who wants to sync their updates with fedora updates, can focus their time on “updates-testing” repository, as builds from there are more likely to get into stable.

This obviously requires significant changed of infrastructure. In your opinion, should the required changed be implemented by volunteers only?

Please correct me if I am wrong, but FEDORA-2025-2f4ba7cd17 makes me to believe that Mesa is effectively maintained by Red Hat hive mind :slight_smile:

It is maintained by people, who are Fedora contributors and members of the Fedora community. They are present here in this discussions too, and you can talk to them.

–

Also I am not going to continue this conversation here in this thread. Moderators might split it out, if there will be need to continue it.

There is really no need to have a conversation about that at all. @airlied , who is Red Hat employee, already clarified that, I quote “We will push fixes to mesa for things that aren’t fully upstream, but we rely on the bodhi karma to avoid regressions”.

I have nothing against Red Hat or Red Hat employees being Fedora contributors and members of Fedora community, but lets keep things real.

1 Like

Please keep focused on the proposal everyone. Recent posts develop off-topic, so please re-focus on-topic again :classic_smiley:

2 Likes

Looks like we have consensus that a new SIG is not necessary, but that doesn’t mean we should ignore this problem. Here’s what I’d like to see:

  • I think we mostly agree the karma and autopush status quo is problematic and leads to updates spending not enough time in updates-testing. How exactly to change things probably merits a separate discussion.
  • We need an emergency button to revert an update back to previous build as soon as problems are detected, skipping any required time in testing. Not having this basic capability seriously slows down our incident response time.
  • I’d like to see incident tracking, which is not the same as Common Bugs. We’ve had too many incidents recently. Trying to figure out how to reduce incidents in worthwhile, but I would start with a small achievable goal and just try to document them someplace, in a manner similar to but separate from Common Bugs. Then once we have some documentation of several incidents, we should be in a better position to debate whether we need additional changes.
7 Likes

Is it reasonable to compare “updates-testing” to “staging” in generic software development?

Well…sort of. Although there’s no such thing as “generic software development”; there are hundreds of different ideas about how software development should happen, ‘staging’ is a concept in several of them (with different meanings) but certainly not all of them. In general I’d say it’s sort of a trap to be too strict about treating the process of building and updating a Linux distribution as exactly analogous to upstream software development. They’re sometimes similar in some ways, but they’re also definitely different.

Is it expected to have any form of quality control (done by dedicated team or developers themselves) before the new build is submitted into “updates-testing” for a stable Fedora release?

Effectively, at present, no. updates-testing is the place where the quality control is meant to happen; that’s what it’s for, that’s why updates-testing is in the name. It is not enabled by default. You have to explicitly choose to use it, and all the documentation about it clearly explains that the purpose of this is to aid in testing candidate updates.

I would actually like if we didn’t even push things to -testing if they fail automated gating tests, but that requires yet more Bodhi development work, and neither I nor anyone else has had any time to do that since I filed it.

The big thing with the Mesa issue is that it was very hard to pinpoint from the perspective of end-user. There was no errors, warnings in any kind of log files etc. Things just stopped without any movement and indication of issues.

My honest read of the mesa issue is that the testing side of things worked fine. To my mind, at the time the update was pushed stable, there was sufficient information available to indicate that it should not have been pushed stable. Three testers had reported serious breakage and had confirmed that it was not present with a previous mesa build. With that information, it was wrong to push the update stable. We don’t need the kind of “pinpointing” you describe to justify not pushing an update. We need it to figure out what the problem was so we can fix the update later, but that can be done at leisure with the help of the developers.

Is it reasonable have some form of sanity/smoke tests being mandatory before build is submitted into “updates-tesing” (as I already asked @airlied without any response so far).

Is it reasonable? Sure. Though, again, updates-testing is already where the testing is meant to happen - I’d probably rephrase this as something like “should all critical path packages have package-specific smoke tests that are gating?”

Is it something we can, practically speaking, require? Not really. The issue here is sheer scale. That’s the big trap you fall into when analogizing distribution development to upstream development. Fedora has tens of thousands of packages. Even the “critical path” we use as a way to cut that down to something vaguely manageable contains nearly 2000 packages. There are thousands of things people do with those packages. I’m not downplaying the seriousness of this bug, but: for every one Fedora user who plays a lot of games and for whom this was an absolute showstopper, there are probably 10 or more who never play any games (maybe they don’t even have a desktop) and didn’t notice it at all. For them, a showstopper would be an update that broke podman. Or httpd. Or the rust compiler. Or their audio mixing software. Or their math library…

Red Hat actually had an initiative somewhere near a decade ago to get RH-employed maintainers of an even smaller subset of ‘really important’ packages (I forget how it was defined) to have automated tests for them (which already existed for RHEL) upstreamed into Fedora. That took up a huge amount of effort within RH and was still never entirely ‘completed’; not all packages got tests, not all the tests really worked, and not all of them have been maintained since. And that was with RH devoting additional resources to it, and with RH able to make this an official “job requirement” for the maintainers who work for RH. Purely within the space of folks who focus long-term on Fedora (RH employees or otherwise, it doesn’t matter), we don’t have that level of ‘carrot’ or ‘stick’.

So, we can ask maintainers to smoke test things. We can say we think it’s a really good idea. We can point to really good examples, like the Cockpit and Podman folks. When there’s a pattern like updates for a particular package frequently turning out broken, we can focus on that pattern and try to suggest improvements. But trying to enforce any kind of generic requirement at a scale of 50,000 or even 2,000 packages is…it’s really hard. I’m not going to say impossible, it is possible. But it requires a lot of work and you have to convince enough people to do that work.

We do actually have (nearly) mandatory requirements for critical path packages - the openQA integration tests. Critical path packages are gated on the subset of those tests that’s relevant to the particular critical path group they’re in. If any of those tests fails, the update is ‘gated’, it cannot go stable. Implementing this took our team months of work and requires significant ongoing oversight - I spend probably 30% of my time investigating failed tests and working with maintainers to resolve them. And that’s just a relatively small set of generic integration tests on a subset of packages in the distro.

In this specific case, yeah, we can absolutely stuff a vkcube --validate check in the process somewhere. This is not beyond our capabilities. But again, it’s a scale thing. To do this consistently we need to find at least 2,000 vkcube --validates for 2,000 entirely different packages, and we need a framework for running them all that keeps up with the load and does it reliably. Or we tell maintainers it’s their problem to figure out how to run it, but then you have 2,000 maintainers implementing 2,000 different systems. This hasn’t proved to be trivial, over the years we’ve been working on it.

And of course you actually need way more than 2000 vkcube --validates, because that just catches one kind of problem. It would’ve caught this bug, but it wouldn’t necessarily catch the next mesa bug. Just doing ‘smoke’ testing for something like mesa, if you wanted to be systematic about it, is a pretty large effort. And then multiply that by 2000…

I really don’t want to convey the message that everything is hopeless, or everything is as good as it can possibly be and we can’t make it better. I’m just trying to get across the point that dealing with the sheer scales involved in a distro is tough and means you have to be strategic, accept that making changes takes time and a lot of work, and you will never be able to drink the whole ocean.

5 Likes

For Ask Fedora:
Could we look at doing something like:
If there are more than X reports of an issue that appears to be resolved by downgrading a package or booting from an older kernel in X timeframe.
Create a pinned post noting the issue and the instructions to downgrade or boot to the older kernel with links to the current posts and the appropriate bugzilla report if it exists.

Maybe try and develop some tags and workflows based on that?

I’m not sure this would be an improvement worth the overhead.

I’m not sure exactly what you mean by “internal development”, but I don’t think it’s what happened in any of the cases you cite. The change in the mesa update was a bugfix for specific hardware configurations (multi-GPU laptops), intended to make Fedora work better on them. It wasn’t speculative upstream development work happening wholesale in Fedora, it was a targeted bugfix that was being fast tracked a bit to try and improve hardware support. It wasn’t a throwaway test build.

It’s already explicitly the case that Fedora updates aren’t the place to do upstream development. This is covered in the update policy. Outside of very isolated cases I don’t think there’s any ongoing problem with maintainers not following this approach.

SImply put, updates-testing is already supposed to be what you describe above. Anything in it is supposed to be an appropriate improvement to a stable Fedora release, under the updates policy. Nobody is supposed to be putting speculative or throwaway builds in there.

1 Like

I think it’s a great idea. Personally, I think the logical place to do the communication is, well, right here. It already exists, the Common Issues process proves we can run a somewhat-organized process using it, and a lot of the users are here already. I don’t think we need to spin up yet another “thing” to put incident reports in.

I think the work you did to write up several of the issues linked in the first post was great and that would be an excellent template to follow going forward.

Off the top of my head I could see a couple of ways of doing it. We could just keep everything here, using discourse features strategically, as we do for common issues. (There is obviously quite a bit of overlap with common issues here…we’d have to figure that out. Maybe things could go from being “incidents” to “common issues” if they weren’t clearly on track to be resolved within days?)

Or we could do a bit of light process through the quality team issue tracker (which is currently on Pagure but will likely move to forgejo fairly soon). We could have a tag there for incident reports, and the process could be something like ‘open a ticket to suggest something as an incident and draft up a report to be posted to discourse’, or something.

But however we figure out the details, I think yeah, having a somewhat organized incident report process so interested folks could co-ordinate on writing up and updating a report is a great idea.

Technically we do have a yet another layer of gating before the update gets into updates-testing tag. It is the Merge Request CI, which happens on the MR creation at src.fedoraproject.org

It is already implemented, enabled and can be used by a maintainer if they want it.

The issue with it is that it is not widely used, so there are not many people caring and participating in MR review, hence there are not many maintainers willing to do the extra step of creating the MR for no real benefit, therefore it is not widely used.

We hope that eventually situation will be improved with the Forgejo migration, which will give us the updated interface to that workflow.

But I think the core issue is that, people usually don’t want to create Merge Requests for a repo where they are the one and only contributor. They see it as an unnecessary overhead. They are more likely to use the MR workflow if there is a group of collaborators willing to participate in reviews, testing and maintaining the CI infrastructure for this.

Yeah, that’s a good point, I should’ve mentioned it. It is not currently really useful for large multi-package updates like the Qt and KDE version updates which were the cause of several of the issues cited in the first post, but could potentially be useful for things like the mesa bug.

We don’t currently really have any way to make it visible to users, though, and a very limited set of generic tests to run on it. We can’t reliably run the integration tests because of the interdependent package problem.

Thank you. To clarify what I mean by “internal development”:

If a fix is accepted to upstream then it has been (hopefully) reviewed and checked according to upstream rules. Maybe someone has built and manually tested software with the fix applied. “updates-testing” goes on top of that.

If a fix is fast tracked without being accepted by upstream then “updates-testing” essentially replaces upstream and its quality control.

This is true, but I’d argue it’s still often the right call to backport a fix quickly. It’s very much a judgement call. If the bug is bad and you’re relatively confident in the fix, it can be the right decision. I have certainly done this many times myself, often to fix a bug that was causing users a lot of strife. As Dave did, when doing this I would usually disable autopush or set very high thresholds, and review the update feedback carefully.

The speed with which upstreams move, and the quality of any review they do, can vary a lot. Sometimes patches sit around for months without anyone looking at them. Sometimes they get waved through on an eyeball review. Sometimes there are fantastically comprehensive and efficient CI systems, in which case I’d never backport a patch without waiting for the results. It just varies.

Does it make sense to clearly mark such fast-track-no-upstream-yet builds in “updates-testing”, so people immediately know they have be extra careful?

Based on the input from various parties in the related discussions, it appears that it may make life of some related to Fedora projects easier and help with avoiding accidental issues.