You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "Ma77Ball (via GitHub)" <gi...@apache.org> on 2026/05/07 06:18:52 UTC

[PR] throw IllegalStateException with context in getPortId before setPortId [texera]

Ma77Ball opened a new pull request, #4978:
URL: https://github.com/apache/texera/pull/4978

   ### What changes were proposed in this PR?
     AmberFIFOChannel.getPortId called this.portId.get on an Option[PortIdentity] that defaults to None. Calling getPortId before setPortId threw a bare NoSuchElementException with no message, giving callers no indication of which channel was misconfigured or what setup step was missed.
                                                                                                                                                                                                                                       
     Replaced .get with .getOrElse(throw new IllegalStateException(...)) so the exception identifies the channel and points the caller at the missing setPortId call.    
   
   ### Any related issues, documentation, discussions?
   Closes: #4818
   
   
   ### How was this PR tested?
    Updated the existing AmberFIFOChannelSpec test that covered this path — it previously asserted NoSuchElementException and now asserts IllegalStateException with message content checks ("portId has not been set" and the channel ID string). All 13 specs pass.
                                       
   
   ### Was this PR authored or co-authored using generative AI tooling?
   Co-Authored with Claude Opus 4.7 in compliance with ASF


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: replace bare Option.get in getPortId with descriptive IllegalStateException [texera]

Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan merged PR #4978:
URL: https://github.com/apache/texera/pull/4978


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: replace bare Option.get in getPortId with descriptive IllegalStateException [texera]

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #4978:
URL: https://github.com/apache/texera/pull/4978#issuecomment-4395391491

   ## [Codecov](https://app.codecov.io/gh/apache/texera/pull/4978?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   :white_check_mark: All modified and coverable lines are covered by tests.
   :white_check_mark: Project coverage is 42.68%. Comparing base ([`16d3c6a`](https://app.codecov.io/gh/apache/texera/commit/16d3c6a169341d1c44f98de0bb84caf89df16f07?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`fbefa1a`](https://app.codecov.io/gh/apache/texera/commit/fbefa1adec99c977344e71fe4716b72fa1c68642?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
   :warning: Report is 1 commits behind head on main.
   
   <details><summary>Additional details and impacted files</summary>
   
   
   
   ```diff
   @@             Coverage Diff              @@
   ##               main    #4978      +/-   ##
   ============================================
   - Coverage     42.69%   42.68%   -0.01%     
     Complexity     2186     2186              
   ============================================
     Files          1031     1031              
     Lines         38111    38112       +1     
     Branches       4004     4004              
   ============================================
     Hits          16270    16270              
     Misses        20825    20825              
   - Partials       1016     1017       +1     
   ```
   
   | [Flag](https://app.codecov.io/gh/apache/texera/pull/4978/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | | *Carryforward flag |
   |---|---|---|---|
   | [access-control-service](https://app.codecov.io/gh/apache/texera/pull/4978/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `39.53% <ø> (ø)` | | Carriedforward from [16d3c6a](https://app.codecov.io/gh/apache/texera/commit/16d3c6a169341d1c44f98de0bb84caf89df16f07?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [agent-service](https://app.codecov.io/gh/apache/texera/pull/4978/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `33.72% <ø> (ø)` | | Carriedforward from [16d3c6a](https://app.codecov.io/gh/apache/texera/commit/16d3c6a169341d1c44f98de0bb84caf89df16f07?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [amber](https://app.codecov.io/gh/apache/texera/pull/4978/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `43.16% <100.00%> (-0.01%)` | :arrow_down: | |
   | [computing-unit-managing-service](https://app.codecov.io/gh/apache/texera/pull/4978/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `0.00% <ø> (ø)` | | Carriedforward from [16d3c6a](https://app.codecov.io/gh/apache/texera/commit/16d3c6a169341d1c44f98de0bb84caf89df16f07?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [config-service](https://app.codecov.io/gh/apache/texera/pull/4978/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `0.00% <ø> (ø)` | | Carriedforward from [16d3c6a](https://app.codecov.io/gh/apache/texera/commit/16d3c6a169341d1c44f98de0bb84caf89df16f07?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [file-service](https://app.codecov.io/gh/apache/texera/pull/4978/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `33.24% <ø> (ø)` | | Carriedforward from [16d3c6a](https://app.codecov.io/gh/apache/texera/commit/16d3c6a169341d1c44f98de0bb84caf89df16f07?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [frontend](https://app.codecov.io/gh/apache/texera/pull/4978/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `33.00% <ø> (ø)` | | Carriedforward from [16d3c6a](https://app.codecov.io/gh/apache/texera/commit/16d3c6a169341d1c44f98de0bb84caf89df16f07?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [python](https://app.codecov.io/gh/apache/texera/pull/4978/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `88.87% <ø> (ø)` | | Carriedforward from [16d3c6a](https://app.codecov.io/gh/apache/texera/commit/16d3c6a169341d1c44f98de0bb84caf89df16f07?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [workflow-compiling-service](https://app.codecov.io/gh/apache/texera/pull/4978/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `47.72% <ø> (ø)` | | Carriedforward from [16d3c6a](https://app.codecov.io/gh/apache/texera/commit/16d3c6a169341d1c44f98de0bb84caf89df16f07?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   
   *This pull request uses carry forward flags. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to find out more.
   </details>
   
   [:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/texera/pull/4978?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   <details><summary> :rocket: New features to boost your workflow: </summary>
   
   - :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
   - :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org