Skip to content

test/behave: run the gpinitsystem scenarios the gpdemo fix unblocked - #2211

Merged
tuhaihe merged 1 commit into
apache:mainfrom
MisterRaindrop:test/behave-untag-gpdemo-trusted-shell
Nov 1, 2026
Merged

tuhaihe merged 1 commit into
apache:mainfrom
MisterRaindrop:test/behave-untag-gpdemo-trusted-shell

Conversation

@MisterRaindrop

Copy link
Copy Markdown
Contributor

#2170 tagged 20 gpinitsystem scenarios @needs_fix because demo_cluster.sh wrote a relative TRUSTED_SHELL=./lalshell into the cluster config, so gpinitsystem could not find lalshell from the directory the Behave scenarios run in. #2177 made it absolute and is merged, so this removes those 20 tags. The CI job for gpinitsystem now runs them.

The mirror port scenario ("gpinitsystem should create consistent port entry on segments postgresql.conf file") also waits for the gpinitsystem fixes in #2178, so it keeps its tag here; #2178 removes it together with the six other tags pointing at its fixes.

Verification

Ran gpinitsystem.feature as the CI job does (--tags ~@extended, with the workflow's ~@needs_fix) on a Rocky 8 demo cluster:

#2178 and this PR change neighbouring lines of gpinitsystem.feature, so whichever is merged second needs a rebase.

@tuhaihe
tuhaihe enabled auto-merge (rebase) October 29, 2026 09:15
@tuhaihe tuhaihe added this to the Behave tests milestone Oct 29, 2026
@MisterRaindrop
MisterRaindrop force-pushed the test/behave-untag-gpdemo-trusted-shell branch from 5b21011 to 9ad8d67 Compare October 29, 2026 12:02

@Alena0704 Alena0704 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

No further issues found. LGTM, with a couple of minor suggestions to clarify the comments.

@MisterRaindrop
MisterRaindrop force-pushed the test/behave-untag-gpdemo-trusted-shell branch from 9ad8d67 to 8c3cfbe Compare October 29, 2026 12:38
@MisterRaindrop

Copy link
Copy Markdown
Contributor Author

Thanks, applied both comment suggestions in 8c3cfbe: the shorter wording in environment.py, and the port scenario's needs_fix note now names only the #2178 fix, since this PR settles the TRUSTED_SHELL part.

@leborchuk leborchuk 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.

LGTM

@MisterRaindrop
MisterRaindrop force-pushed the test/behave-untag-gpdemo-trusted-shell branch from 8c3cfbe to 4a1b956 Compare October 30, 2026 10:45
cluster config held a relative TRUSTED_SHELL, so gpinitsystem could not
find lalshell from the directory the scenarios run in. apache#2177 made it
absolute, so remove those tags.

Two of them, the banner scenarios, are tagged @backup_restore_bashrc
because they append to ~/.bashrc. before_scenario() returns early for
the gpinitsystem feature before it backs ~/.bashrc up, while
after_scenario() still restores it, and with no backup to restore it
deletes ~/.bashrc. Back it up before that early return. Alena Rybakina
found this in review.

The mirror port scenario also waits for the gpinitsystem fixes in apache#2178
and keeps its tag until that is merged.
@tuhaihe
tuhaihe force-pushed the test/behave-untag-gpdemo-trusted-shell branch from 4a1b956 to c8938e5 Compare October 31, 2026 23:45
@tuhaihe
tuhaihe merged commit 85a7f61 into apache:main Nov 1, 2026
143 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants