Repository navigation
fix(#6216): a graph-algorithm knob is bounded by the resource it spends, not by a guessed cap - #6222
Conversation
…ds, and a walk count no longer wraps int Follow-up to #6065. The CPU-shaped config knobs of the OpenCypher algo.* package accepted any in-range int and drove a loop count directly. Rather than one guessed cap per knob, each is now bounded by the resource it actually spends. Domain: extractInt(value, name, minimum) rejects by name a restart, iteration, walk or simulation count below its minimum. Those values were absorbed in silence (restarts 0 returned community 0 with cutWeight -1.0, iterations 0 returned untrained embeddings, simulations 0 divided by zero and returned nothing) or died in the allocator without naming the parameter. Heap: node2vec's `n * walksPerNode` wrapped int (4 nodes at walksPerNode 2^30 gave totalWalks 0 and an ArrayIndexOutOfBoundsException), and randomWalk's `steps + 1` wrapped at Integer.MAX_VALUE. Both walk buffers are now estimated in saturating long arithmetic and checked before allocating against the new arcadedb.cypher.algoMaxWalkMemory budget, which auto-scales with the JVM heap; a walk count past Integer.MAX_VALUE is refused independently of it. Time: no honest ceiling exists, so a long run is made abortable instead of forbidden. The hot loops of node2vec, maxKCut and influenceMaximization call a shared WorkGuard that aborts on thread interruption and on the arcadedb.command.timeout deadline, which until now only the SQL SELECT planner honoured. Also: node2vec's `pos + window` wrapped int for a large windowSize, leaving the context window empty and training a no-op past position 0 - windowSize is clamped to walkLength; and influenceMaximization's negative k reached new int[seedCount] unnamed.
|
Tick the box to add this pull request to the merge queue (same as
|
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 18 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
ReviewSolid, well-motivated fix, closes real bugs (int-wrap on Main concern:
|
…long, not between them Review cycle 1. The WorkGuard was checked once per walk in node2vec's training loop, which bounds nothing when a single walk is the unbounded thing: windowSize is clamped to walkLength, so every position scans the whole walk as context and one walk is O(walkLength^2), while walkLength is bounded only by the walk-MEMORY budget. walksPerNode 1 with walkLength 5000000 and windowSize 5000000 fits the default budget on a small graph and then runs for hours between two checkpoints, so neither the deadline nor an interrupt fires in any useful time. WorkGuard.checkPeriodically(counter) tests every 1024 iterations - one AND and one branch per iteration - and is called from the loops whose length a knob controls: the Skip-gram context loop, the walk-generation step loop, and maxKCut's per-node scan inside a local-search pass. The per-walk and per-pass checks stay. Also: `pos + window` is computed in long. The clamp to walkLength covers the practical instance, but walkLength is bounded by a budget an operator can raise, so past ~1.1B the clamped window reaches the same wrap; long arithmetic closes the class. node2VecHonoursTheCommandTimeoutInsideOneLongWalk covers the case the existing timeout test could not: one node, one walk, a window as wide as the walk. Confirmed sensitive - with the context-loop checkpoint removed it runs to completion in 2.4s and never times out.
Review cycle 1 - the checkpoint was in the wrong loopMain concern: actioned, and it was right. A checkpoint between walks bounds nothing when a single walk is the unbounded thing. Fixed with Applied to every loop whose length a knob controls, not just the one flagged:
The per-walk and per-pass checks stay: they cost nothing and fire first on short-walk configurations. New regression test. Minor 1 - residual Minor 2 - coupling with #6214: agreed, no action here. Nits: all four read correctly, no action taken, and the Verification after the fix
|
ReviewI read through the diff in detail ( Correctness
Minor / non-blocking
Test coverageThe new Style/processNo Nice work overall - the "bound by the resource it actually spends" framing is applied consistently across all seven knobs rather than mixing ad-hoc caps. |
Review cycle 2 - the influenceMaximization checkpoint, checked and left aloneThanks for tracing the arithmetic by hand - the The It is not. final boolean[] activated = new boolean[n];
final int[] queue = new int[n];Two allocations of size Converging it on Worth recording for whoever reads this later: the per-simulation allocation is itself a real cost ( Doc duplication nit: agreed and noted. The three copies do serve different readers - the release note is the operator's account of what changed and why, the class Javadoc is what an API user sees at the call site, the PR description is the reviewer's. The one that must not drift is the Javadoc, since it states the parameter minimums a caller has to satisfy. On CI: you flagged not being able to run No code changes in this cycle. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #6222 +/- ##
==========================================
- Coverage 70.08% 70.07% -0.01%
==========================================
Files 1836 1836
Lines 158245 158300 +55
Branches 33396 33407 +11
==========================================
+ Hits 110904 110928 +24
- Misses 33483 33509 +26
- Partials 13858 13863 +5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
#6214 landed the embedding-dimension bound for #6065, which is the collision this branch was cut expecting. Three files conflicted, all of them because both changes are additive in the same place: - AbstractAlgoProcedure: both added extractors after extractInt(). Kept both, ordered so the three argument extractors sit together under the "Argument extractors" header - extractInt(min), then extractEmbeddingDimension, then extractCount - with the "Work bounds" section after them. - AlgoNode2Vec: both rewrote the config-extraction block and the javadoc parameter list. embeddingDimension now goes through extractEmbeddingDimension (theirs), the four work knobs through extractInt(min) (ours); the javadoc list carries both the 4096 cap and the per-knob minimums. - docs/release-26.9.1.md: both appended a section. Ordered by merge date, so #6216's goes last. Also converged AlgoInfluenceMaximization's k on the extractCount() helper #6065 introduced: it is exactly the saturate-then-reject-negative pair that was written inline here, so the inline form and its now-unused NumberUtils import are gone. The error message is unchanged, so the regression test binds to the shared helper without edit. Verified: Issue6216AlgoWorkKnobBoundsTest 24, Issue6065NumericParameterBoundsTest 12, CypherCallVectorNeighborsTest 10 and the eight touched procedures' own suites all green together (80 tests), and the full com.arcadedb.query.opencypher.** unit suite at 4415 tests, 0 failures.
Conflict with main resolved (#6214 landed)
One convergence taken while here
Verification on the merged tree
The PR diff is still the same 8 files; the merge leaked nothing. |
ReviewWent through the full diff ( Code quality / design
Potential bugs / correctness
Test coverage
Performance / security
Merge note
Nice work overall - the resource-based framing (domain / heap / time) is a clear, defensible policy and the test suite backs it up well. |
Codecov flagged the saturation path as uncovered, and it was: saturatingProduct's overflow branch and the "over Long.MAX_VALUE" arm of the budget message were both written and never exercised. It is reachable end to end - walksPerNode and walkLength both at Integer.MAX_VALUE over 4 nodes estimate ~7.4e19 bytes against a long ceiling of 9.2e18. Worth a test rather than a coverage number: a wrapping multiply can land on a SMALL positive value, which passes the budget check outright, so this is the one arm where getting the arithmetic wrong defeats the check instead of merely misreporting it. Confirmed sensitive by replacing multiplyExact with a plain product, which turns the run red.
ReviewOverall this is a well-reasoned, well-tested PR. The "bound each knob by the resource it actually spends" framing is applied consistently in most places, the saturating-long-arithmetic pattern for the walk-matrix estimate is correct and has a dedicated regression test for the saturate-vs-wrap distinction, and the new Two things worth a look before merge: 1.
|
…a raised budget is not an unabortable one Review cycle 3. The walk step loop was left unguarded on the argument that the walk-memory budget already bounds `steps`. It does not bound it as a matter of time, and the setting explicitly accepts "negative = no limit": with the budget raised or disabled and arcadedb.command.timeout set, a huge steps value was memory-free and abort-free. The review suggested documenting that caveat in the setting's javadoc; closing it is the better answer, and it costs one AND and one branch per step. Measured rather than assumed: algo.randomWalk(a, 500000000) with the budget disabled and a 1ms deadline runs 39.4 SECONDS to completion without the checkpoint and aborts in milliseconds with it. The regression test asserts exactly that. Also adds node2VecStillCompletesAndTrainsWithLargeButLegitimateKnobs for the gap the review named: every other test here proves something is REFUSED, and nothing proved a merely-big run still succeeds at a scale the small-graph guards do not reach. 200 walks x 50 steps x 20 epochs, asserting the output - one embedding per node, of the requested width, finite and L2 normalised - rather than the absence of an exception, since only a training loop that ran to completion produces that.
Review cycle 3 - two actioned, one answered
The reasoning I had written for leaving it out ("O(1) per iteration, bounded by the budget") was wrong in the way the review identified: a memory bound is not a time bound, and the setting accepts
The "large but legitimate at scale" test gap: actioned. Correctly identified - every other test in the class proves something is refused, and
The two regimes both come out fine, which is why the asymmetry with node2vec is deliberate rather than an oversight:
Throttling it to 1024 would degrade the first regime to 1024 x O(n + m) of abort latency, which is where the deadline matters most. The rule the PR applies is "throttle only where an iteration can be cheaper than the check", and this iteration cannot be. (The per-simulation allocation is itself a real cost worth hoisting, but it is pre-existing and belongs in its own change, not smuggled into a validation fix.) Verification
|
ReviewThis has already been through several careful review cycles (int-overflow fixes, the
|
…knob that had no bound of any kind Review cycle 4. negSamples was named in this PR's own list of seven knobs and then left with no protection at all: no heap ceiling (the walk budget prices the walk matrix, not the sampling), no maximum (its extractInt only sets a minimum of 0), and no checkpoint. One (position, context) pair costs negSamples x embeddingDimension, and the nearest checkpoint sits in the enclosing context loop, which runs BEFORE the sampling starts - the same "checkpoint outside the unbounded loop" shape already closed here for windowSize and walkLength. Missed when that fix went in. The regression test has to assert LATENCY, not just the exception: unlike the walk case the unguarded version does eventually throw, at the next context checkpoint, once the whole sampling loop has run. Bound set from measurement - the test method runs in 0.33s with the checkpoint and 24.0s without it, so 5s sits ~16x above the passing case and ~5x below the failing one. Also documents WALK_ROW_OVERHEAD_BYTES as a heuristic rather than a guarantee: the true per-row cost moves with the JVM object layout, and the estimate only has to stay in the right order of magnitude, so there is nothing to "correct" there short of measuring a specific JVM.
Review cycle 4 -
|
walkLength / walksPerNode |
windowSize |
embeddingDimension |
negSamples |
|
|---|---|---|---|---|
| heap ceiling | walk budget | - | 4096 cap (#6065) | none |
| maximum | - | clamped to walkLength |
4096 | none |
| checkpoint | step loop | context loop | - | none |
One (position, context) pair costs negSamples x dim with the nearest checkpoint in the enclosing context loop, which runs before the sampling starts. That is precisely the "checkpoint outside the unbounded loop" shape c2a62bc closed for windowSize/walkLength, and I missed this loop when making that fix. guard.checkPeriodically(ns) now sits inside it.
The test needed a different shape, which is worth flagging. For the walk case, "it throws" was a sufficient assertion because the unguarded version ran to completion and never threw. Here it is not: the unguarded version does throw, at the next context checkpoint, once the entire sampling loop has already run. So node2VecHonoursTheCommandTimeoutInsideOneNegativeSamplingLoop asserts latency.
The bound is set from measurement rather than taste. My first attempt used negSamples: 20000000 with a 3 s bound and passed with the checkpoint removed - the loop was faster than I estimated, so the test proved nothing. Re-measured at 200000000:
| test method wall clock | verdict | |
|---|---|---|
| with the checkpoint | 0.33 s | green |
| without it | 24.0 s | red, fails the bound |
5 s sits ~16x above the passing case and ~5x below the failing one - wide enough not to be a stopwatch on a slow machine, tight enough that it cannot pass while the loop is unabortable.
Nit actioned: WALK_ROW_OVERHEAD_BYTES now says in its javadoc that it is a heuristic, not a guarantee - the true per-row cost moves with the JVM object layout (compressed oops, alignment), the estimate only has to stay in the right order of magnitude, and there is nothing to "correct" there short of measuring a specific JVM. Exactly the drive-by "fix" the review was guarding against.
Verification
Issue6216AlgoWorkKnobBoundsTest- 28 green- Full
com.arcadedb.query.opencypher.**unit suite - 4419 tests, 0 failures, 0 errors, 13 skipped
Every knob in the PR's list now has a checkpoint inside the loop it drives: walk generation (step), Skip-gram context (ctx), negative sampling (ns), maxKCut's per-node scan (i), randomWalk's step loop (step), plus the coarse per-walk / per-pass / per-simulation checks.
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 18 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Note on ordering: the
|
ReviewWent through the full diff ( Correctness
Minor / non-blocking
Performance
Security
Test coverage
Overall: solid fix, no blocking issues found. |
… and the deliberate exceptions say so Review cycle 5, which found no blocking issues. Two of its three minor notes are actioned; the third is answered in the code rather than only in a PR comment. The shuffle note was under-rated. It was called "not a real gap since totalWalks is already bounded by CYPHER_ALGO_MAX_WALK_MEMORY" - which is the same argument cycle 3 rejected for algo.randomWalk's step loop, and for the same reason: the budget is tunable and a negative value means no limit, leaving totalWalks capped only by Integer.MAX_VALUE. Per-epoch that is an unabortable loop. The Fisher-Yates shuffle, the walkOrder initialisation and the Xavier initialisation now all carry checkpoints, so every O(nodeCount)/O(totalWalks) loop in the procedure has one and the rule holds without exceptions to remember. AlgoInfluenceMaximization's unthrottled check() is deliberate and now says so at the call site instead of only in review replies: simulateIC allocates and zero-fills two arrays of size n before the cascade starts, so it is never O(1), and throttling would make abort latency 1024 x O(n + m) - worst on the large graphs where the deadline matters most. Also records why the window ceiling is walkLen rather than walkLen - 1 (winStart/winEnd are clamped to [0, walkLen - 1] regardless, and the tighter bound would send windowSize to 0 at walkLength 1, under the minimum of 1 the extraction enforces), and why the latency assertion's margins are what they are, with the instruction to raise the bound rather than weaken it to "it throws" - the form that silently passed before.
Review cycle 5 - no blocking issues; two notes actioned, one answered in the codeThe shuffle note was under-rated, and I acted on it as a gap rather than an FYI. It was flagged as "not a real gap since its cost is O(totalWalks), and Rather than fix only the loop named, I swept the rest of the procedure by the same rule. The Fisher-Yates shuffle, the
On the latency assertion and CI flakiness. Worth flagging, and the margins are the answer: both figures scale together on a slower runner, so it takes a machine ~15x slower than the reference to push the passing case to 5 s (where the failing case would sit at ~360 s), or ~5x faster to bring the failing case under it. The comment now carries the instruction that matters if it ever does flake: raise the bound, do not weaken it to "it throws" - that form passes with the checkpoint removed, which is exactly how the first version of this test was wrong. VerificationFull |
ReviewWent through the full diff ( Correctness — looks solid
Minor / non-blocking
Test coverageThe new Security/perfNo dependency changes, no Nice piece of work — didn't find anything blocking. |
…unter restarts Review cycle 6, which found nothing blocking. Its one substantive note is that "every 1024 iterations" overstates the throttle for the negative-sampling loop: ns restarts at 0 for every (position, context) pair, so the check also fires on the first iteration of each pair. The behaviour is right and stays - one flag test per pair is what keeps the default negSamples of 5 responsive, because the enclosing ctx checkpoint fires only about once every 1024 POSITIONS when the window is narrow, not once per pair. What was wrong is the comment, which described a monotonically climbing counter as though it were the only case. A reader who trusted it would see the ns check as redundant with the ctx one and delete it, which is the regression this PR just spent a cycle fixing. Comments only, no functional change.
Review cycle 6 - nothing blocking; the throttle comment correctedThanks for tracing the The What was wrong is that the javadoc described a monotonically climbing counter as though that were the only shape. A reader who trusted it would conclude the Javadoc verbosity: taken as read. It is heavier than typical because most of it is recording why a bound is where it is - the alternative that was rejected, the measurement behind a constant, the reason a clamp is safe here and would not be elsewhere. That is the part that decays fastest into folklore otherwise, and this PR is on its second round of someone (me included) proposing to "simplify" something that was load-bearing. StatusSix review cycles: four found something real (checkpoint placement in the Skip-gram context loop, Full |
ReviewReviewed the full diff (7 commits) plus the current state of the touched files. This is a well-scoped, well-tested change: bound each CPU-shaped A few smaller points, none blocking: 1. 2. 3. 4. Test coverage is thorough and appropriately tagged. 5. Overall: solid engineering, clear reasoning trail in the commit history, good test discipline (assertions on latency are justified with measurements rather than arbitrary guesses), and no outstanding correctness or security concerns found. |
Closes #6216
Summary
Follow-up to #6065 (PR #6214), which bounded the allocation-shaped numeric knobs of the OpenCypher
algo.*package. This closes the second family that PR deliberately left alone: knobs that are unboundedints and multiply CPU work rather than one allocation -algo.node2vec'swalksPerNode,walkLength,windowSize,negSamples;algo.maxKCut'srestarts,maxIterations;algo.influenceMaximization'ssimulations.Why not the issue's options as written
The issue offers three: (1) a generous hard cap per knob, (2) cooperative cancellation, (3) bound only the derived allocations. It also says why it stopped short of choosing: there is no obvious ceiling, because "what is a sane maximum iteration count?" depends on the graph, the hardware and how long the caller is willing to wait.
That is an argument against option 1 as a general policy, not against bounding anything. The seven knobs are not one family - they spend three different resources - so the fix applies one principle: a knob is bounded by the resource it actually spends, not by a guess at what a user wants. That subsumes option 3, does option 2 properly, and replaces option 1 with a heap-derived budget only where the resource really is memory.
The parameter's own domain
Below its minimum a walk/restart/simulation count is not "a smaller run", it is an answer the algorithm cannot produce - and every one of those values was absorbed in silence or died in the allocator:
algo.maxKCut(2, {restarts: 0})cutWeight-1.0, reported as successalgo.maxKCut(2, {maxIterations: 0})algo.node2vec({iterations: 0})algo.influenceMaximization(2, 'X', 0)NaN, no comparison ever won, empty result set as if no node were influentialalgo.node2vec({walksPerNode: -1})new int[-4][...], a bareNegativeArraySizeExceptionnaming nothingalgo.node2vec({walkLength: 0})walk[0] = v:ArrayIndexOutOfBoundsExceptionA new
AbstractAlgoProcedure.extractInt(value, name, minimum)overload rejects all of them where the extraction already happens, naming the parameter, its minimum and the value.negSampleskeeps a minimum of 0 - plain Skip-gram without negative sampling is a legitimate configuration; the rest take 1.Heap - the clear-cut bug, and its one-dimensional twin
algo.node2veccomputedfinal int totalWalks = n * walksPerNodeand thennew int[totalWalks][walkLen]. That product wraps. 4 nodes atwalksPerNode: 1073741824is exactly 2^32, sototalWalkscame out as 0: the matrix was allocated with no rows and the generator died onwalks[wi++]. Other magnitudes wrap negative instead. Even without the wrap the matrix is sized by two knobs with no graph-derived ceiling - the allocation-DoS shape #6065 closed for the embedding dimensions, in two dimensions.algo.randomWalkhas the one-dimensional version, not mentioned in the issue but the same defect in the same walk-buffer family:new int[steps + 1]wraps toInteger.MIN_VALUEatsteps = 2147483647.Both are estimated in saturating
longarithmetic and checked before anything is allocated against a newarcadedb.cypher.algoMaxWalkMemory, which auto-scales with the JVM max heap (one eighth, floor 64MB) and is tunable (negative = no limit). This is the house pattern ofarcadedb.queryMaxHeapElementsAllowedPerOp/arcadedb.queryMaxRangeSize, not a new invention, and it is strictly better than a per-knob constant here: the ceiling is the machine's, the error names the knobs that produced the estimate and the setting to raise, and since it is a client parameter out of range it is anIllegalArgumentException- HTTP 400, not 500. A second guard, independent of the budget, refuses a walk count pastInteger.MAX_VALUE: no heap setting makes 2^32 array entries legal.Time - option 2, using the setting that already exists
For the rest there is no honest ceiling, so a large value is not forbidden, it is made abortable. The hot loops of all three procedures call a shared
WorkGuardthat aborts on thread interruption - matching whatShortestPathStepandSQLFunctionShortestPathalready do on the query path - and on thearcadedb.command.timeoutdeadline, which until now only the SQLSELECTplanner honoured. No new setting for this:arcadedb.command.timeoutis documented,DATABASE-scoped and defaults to 0, so behaviour is unchanged unless an operator has already asked for a command deadline.The guard reads the clock only when a deadline is configured, so the default costs one flag test per iteration and no syscall. The interrupt flag is consumed, not restored: the exception aborts the whole call, and leaving it set would poison the next task on a pooled query thread.
Two correctness bugs found on the way
windowSizesilently disabled training.Math.min(walkLen - 1, pos + window)wrapsintfor a largewindowSizeand comes back negative, sowinEnd < winStartand the Skip-gram loop ran at position 0 and nowhere else. A window wider than the walk already spans the whole walk, so it is now clamped towalkLength- a clamp with a genuinely correct fallback, unlike an embedding dimension. The regression test asserts a huge window now yields exactly the embeddings ofwindowSize = walkLength, same seed, same RNG consumption.algo.influenceMaximization's negativek.ksaturates upwards on purpose and is clamped byMath.min(k, n), but a negativekpasses that clamp untouched and reachesnew int[seedCount]as another namelessNegativeArraySizeException. Message wording matches PR fix(#6065): an embedding dimension is bounded, and a negative k is named instead of reaching the allocator #6214'sextractCount()so the two converge trivially once it lands.Verification
New
Issue6216AlgoWorkKnobBoundsTest, 23 tests. Confirmed sensitive: with the four procedure sources restored toHEAD(helpers and setting kept, so it still compiles), 17 of the 21 then-existing tests go red. The four that stay green are the deliberate over-reach guards - a matrix inside the budget,negSamples: 0- and the twoWorkGuardunit tests, which only exercise code the revert left in place. The two tests added afterwards (...MoreWalksThanAJavaArrayCanHold...,...MoreStepsThanAJavaArrayCanHold...) hit the same pre-fixArrayIndexOutOfBoundsException/NegativeArraySizeException.Full
com.arcadedb.query.opencypher.**unit suite: 4397 tests, 0 failures, 0 errors, 13 skipped.Test plan
mvn -o -pl engine -am -Dtest='Issue6216AlgoWorkKnobBoundsTest' test- 23 greenmvn -o -pl engine -am -Dtest='AlgoNode2VecTest,AlgoMaxKCutTest,AlgoInfluenceMaximizationTest,AlgoRandomWalkTest' test- no regression on the four touched proceduresmvn -o -pl engine -am -Dtest='com.arcadedb.query.opencypher.**.*Test' -DexcludedGroups=benchmark,vector,slow test- no regression across the packageCALL algo.node2vec({walksPerNode: 1073741824})is refused promptly by name instead of throwingArrayIndexOutOfBoundsExceptionCALL algo.maxKCut(2, {restarts: 0})returnsalgo.maxKCut(): restarts must be at least 1, got 0instead of a cut weight of-1.0Notes for review
AlgoNode2VecandAlgoMaxKCuttoo, on different lines (embeddingDimension,k), and adds its own helpers toAbstractAlgoProcedure. This branch is cut frommainand deliberately does not restate any of its fixes -embeddingDimensionandAlgoMaxKCut.kare still unbounded here and stay fix(#6065): an embedding dimension is bounded, and a negative k is named instead of reaching the allocator #6214's. Whichever lands second will need a textual merge inAbstractAlgoProcedure; nothing is semantically in conflict.arcadedb.cypher.algoMaxWalkMemoryis the only new setting.arcadedb.command.timeoutis reused as-is.WALK_ROW_OVERHEAD_BYTES = 32prices a matrix row's header, length, padding and the enclosing reference. Walk rows are short, so this is a real part of the footprint, not a rounding error.AlgoRandomWalk's step loop takes noWorkGuardcheck:stepsis already bounded by the walk-memory budget and each iteration is O(1), so the loop is bounded by the allocation it already passed.