Skip to content

AoU cleanup - #1099

Merged
crimson11 merged 4 commits into
eclipse-score:mainfrom
sahithi-nukala:sn/aou_cleanup
Oct 12, 2026
Merged

crimson11 merged 4 commits into
eclipse-score:mainfrom
sahithi-nukala:sn/aou_cleanup

Conversation

@sahithi-nukala

@sahithi-nukala sahithi-nukala commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Issue: SWP-276866

@LittleHuba LittleHuba left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks wrong. At least some of those AoUs are still relevant to my knowledge.
@crimson11 @bemerybmw please say so if this knowledge is outdated.

I think the correct action is to extend the FTAs and FMEAs respectively to be more thorough.

mitigates = "TooFewMemoryAllocated, TooMuchMemoryAllocated, SendingEventSendsToWrongConsumer"
}

/* broken_link_c/issue/5835324 */

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What was your intention to delete this AoU? I guess - as of now it is needed/referenced by an FMEA ("Too few memory allocated"). If we would delete this AoU (see details below), then we would also need to delete the AoU above "OneProducerOnlyOneAllocateePtr", because they are both strongly related.

TBH: I'm also not really happy with this AoU. For several reasons:

  1. Why shouldn't we allow this? The user is responsible for configuring the slot-count to his needs! If he configures it sufficient, there is no reason, why he can't hold more than one SampleAllocateePtr in parallel
  2. We even at some point had a config-value (removed now) to explicitly allow the user to configure the number of SampleAllocateePtr, he wants to hold in parallel (to support him with some supervision).
  3. We can discuss, whether this "supervision" in (2) makes sense or not ... but having this AoU, while we in code NOT checking this "restriction" (if we really want it) in code ALTHOUGH we easily could, makes no sense to me!

Summary

There are imho two options:
A. We keep this AoU and the AoU above "OneProducerOnlyOneAllocateePtr" and also the FTA referencing this AoU as an "preventive measure". This is the "lazy" approach - keeps everything as it is now and it is "consistent".
B. We clean this up: We remove both AoUs and adapt the FMEA/FTA: Getting an error-result in SkeletonEvent::Allocate() or Send(SampleType&) is NOT an error in the case the user himself is "exhausting" the slots on provider side. Then I would rather re-phrase the existing "CorrectlyConfiguredMaximumNumberOfMaximumElementsPerSubscriber" AoU into "CorrectlyConfigurednumberOfSampleSlots", which simply states, that "numberOfSampleSlots" needs to be dimensioned correctly according to consumers AND producer need!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

My intention was to remove this as a superfluous AoU during the cleanup, but I missed that it is referenced by the FMEA and is closely related to OneProducerOnlyOneAllocateePtr.
I agree that removing it in isolation would leave the safety analysis inconsistent. I’ll restore it for this PR. The broader cleanup option—removing both AoUs and updating the FMEA/FTA and slot-count assumption—should be handled as a coordinated follow-up.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should be adapted imho! The Allocate() call nowadays returns a Result -> should be checked for an error instead!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated.

}

/* broken_link_c/issue/7091801 */
ScoreReq.AoU UsageOfConfigurationOversubscription {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why you deleted this? What was your intention?

}

/* broken_link_c/issue/21209491 */
ScoreReq.AoU EventOrFieldReceptionViaGenericProxyNeedsSpecificCare {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why you removed this? I guess it is still valid ... only the API GetSampleSize is deprecated and is now superseeded by GetDataTypeSizeInfo

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

You’re right, the requirement is still valid. I’ve restored it and added a note that {{GetSampleSize()}} is deprecated in favor of {{GetDataTypeSizeInfo()}}, while keeping the original safety requirement intact.

}

/* broken_link_c/issue/79416086 */
ScoreReq.AoU NoGuaranteeOnSubscriptionStateCorrectness {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why deleted? It has been explicitly newly introduced! If it is currently not used/referenced ... we rather have to update our FTAs and reference it ;)

@sahithi-nukala
sahithi-nukala marked this pull request as draft September 22, 2026 11:11
@sahithi-nukala
sahithi-nukala force-pushed the sn/aou_cleanup branch 3 times, most recently from 75635aa to 8027902 Compare October 5, 2026 06:55
@sahithi-nukala
sahithi-nukala marked this pull request as ready for review October 5, 2026 09:18
crimson11
crimson11 previously approved these changes Oct 12, 2026
@crimson11
crimson11 enabled auto-merge October 12, 2026 09:24
@bemerybmw
bemerybmw dismissed LittleHuba’s stale review October 12, 2026 11:17

Requested changes were made and verified by @crimson11

@crimson11
crimson11 added this pull request to the merge queue Oct 12, 2026
Merged via the queue into eclipse-score:main with commit 22316db Oct 12, 2026
20 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in COM - Communication FT Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants