Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@agrrr3
Copy link
Contributor

@agrrr3 agrrr3 commented Mar 14, 2025

intended to expose #5158

@agrrr3 agrrr3 mentioned this pull request Mar 14, 2025
@geoffthemedio
Copy link
Member

Why > 1 not >= 1 ?

@agrrr3 agrrr3 force-pushed the 20250314_SmokeTestGameAtLeastTwoNeighbors branch from 5ca40f2 to 3793147 Compare March 14, 2025 08:02
@agrrr3
Copy link
Contributor Author

agrrr3 commented Mar 14, 2025

Why > 1 not >= 1 ?

cause i was confused; fixed

@agrrr3 agrrr3 changed the title Check the capital has at least two neighbouring systems (SmokeTestGame) Check the capital has neighbouring systems (SmokeTestGame) Mar 14, 2025
@agrrr3 agrrr3 changed the title Check the capital has neighbouring systems (SmokeTestGame) Check the capital has neighbouring system (SmokeTestGame) Mar 14, 2025
@agrrr3
Copy link
Contributor Author

agrrr3 commented Mar 14, 2025

build fails as test works

/home/runner/work/freeorion/freeorion/test/system/SmokeTestGame.cpp:175: error: fatal error: in "SmokeTestGame/host_server": critical check neighbours.size() > 1 has failed [0 <= 1]

@o01eg
Copy link
Contributor

o01eg commented Mar 14, 2025

It's quite unusual that Windows build didn't fail test.

@agrrr3
Copy link
Contributor Author

agrrr3 commented Mar 14, 2025

It's quite unusual that Windows build didn't fail test.

seems the signals do not get used or propagated correctly; as also the windows CI has the test fail

  The following tests FAILED:
  	  5 - SmokeTestGame (Failed)
  Errors while running CTest

there is the (succesful) parse test afterwards

@o01eg o01eg added this to the v0.5.2 Release milestone Mar 15, 2025
@o01eg o01eg added component:internal The Issue/PR deals with any project component that has no explicit `component` label. category:tweak The PR contains insignificant code changes, like code style grooming or value tweaking. labels Mar 15, 2025
Copy link
Contributor

@Cjkjvfnby Cjkjvfnby left a comment

Choose a reason for hiding this comment

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

Usually, for such changes, I "break" the code under the tests first and check how it fails.

It helps to be sure that it actually fails there I am expecting it, and allow to see if error message is human friendly.

shell: pwsh
working-directory: build
run: |
$env:FO_CHECKSUM_SPECIES_NAME = "SP_CELESTEPHYTE"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we create a custom file species that will not be a part of the game and modify it?
For the sake of the parser testing, we could add all possible effects and conditions there. (not in this review)

Copy link
Contributor

Choose a reason for hiding this comment

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

As I remember I tried to test crash on parsing and outputting dump.

@o01eg o01eg requested a review from Cjkjvfnby March 15, 2025 10:15
@agrrr3
Copy link
Contributor Author

agrrr3 commented Mar 18, 2025

both macos are also succeeding

@o01eg
Copy link
Contributor

o01eg commented Mar 19, 2025

@agrrr3 MacOS skips Smoke* system tests because it cann't launch server binary.

@agrrr3
Copy link
Contributor Author

agrrr3 commented Mar 19, 2025

So we can merge, cant we?

agrrr3 added a commit to agrrr3/freeorion that referenced this pull request Mar 19, 2025
… a system

Test  freeorion#5163   (master should fail with the test but without the fix)
Issue freeorion#5158
QA Status: quickfix completely untested

the underlying issue why this surfaces is not fixed with this.

the underlying issue is that the empire graphs do get cleaned when the generic graph gets cleaned
and not rebuild before the AI uses the empire graphs

waiting for some comments on what the intended design is
agrrr3 added a commit to agrrr3/freeorion that referenced this pull request Mar 19, 2025
… a system

Test  freeorion#5163   (master should fail with the test but without the fix)
Issue freeorion#5158
QA Status: quickfix completely untested

the underlying issue why this surfaces is not fixed with this.

the underlying issue is that the empire graphs do get cleaned when the generic graph gets cleaned
and not rebuild before the AI uses the empire graphs

waiting for some comments on what the intended design is
@o01eg
Copy link
Contributor

o01eg commented Mar 19, 2025

Shouldn't we merge fix first?

@agrrr3
Copy link
Contributor Author

agrrr3 commented Mar 20, 2025 via email

agrrr3 added a commit to agrrr3/freeorion that referenced this pull request Mar 20, 2025
… a system

Test  freeorion#5163   (master should fail with the test but without the fix)
Issue freeorion#5158
QA Status: quickfix completely untested

the underlying issue why this surfaces is not fixed with this.

the underlying issue is that the empire graphs do get cleaned when the generic graph gets cleaned
and not rebuild before the AI uses the empire graphs

waiting for some comments on what the intended design is
@agrrr3
Copy link
Contributor Author

agrrr3 commented Mar 20, 2025

actually the working quickfix does not make the test complete. and i am not sure how to modify the test in a meaningful way as this is currently a timing issue.
so i guess i suggest let's merge the quickfix first so the AI at least explores and expands. and then make a build-on-demand implementation which makes the test meaningful

@o01eg
Copy link
Contributor

o01eg commented Mar 20, 2025

@agrrr3 OK, at least we'll get fix for AI.

agrrr3 added a commit that referenced this pull request Mar 20, 2025
… a system

Test  #5163   (master should fail with the test but without the fix)
Issue #5158
QA Status: quickfix completely untested

the underlying issue why this surfaces is not fixed with this.

the underlying issue is that the empire graphs do get cleaned when the generic graph gets cleaned
and not rebuild before the AI uses the empire graphs

waiting for some comments on what the intended design is
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:tweak The PR contains insignificant code changes, like code style grooming or value tweaking. component:internal The Issue/PR deals with any project component that has no explicit `component` label.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants