Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WFCORE-5917] Use variable expansion replacement instead of pattern r… #5840

Closed
wants to merge 2 commits into from

Conversation

yersan
Copy link
Collaborator

@yersan yersan commented Jan 18, 2024

…emoving to avoid duplicate jboss.server.base.dir options

Jira issue: https://issues.redhat.com/browse/WFCORE-5917

@yersan yersan requested review from jamezp and lvydra January 18, 2024 17:24
@github-actions github-actions bot added the deps-ok Dependencies have been checked, and there are no significant changes label Jan 18, 2024
Copy link
Member

@jamezp jamezp left a comment

Choose a reason for hiding this comment

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

I'm not sure this is correct. This will remove the -Djboss.server.base.dir from the SERVER_OPTS. While the original way this was done doesn't seem correct either, I don't think this is.

Really having it defined twice isn't a huge issue. However, we need to be able to override it from the command line.

@yersan
Copy link
Collaborator Author

yersan commented Jan 18, 2024

@jamezp

This will remove the -Djboss.server.base.dir from the SERVER_OPTS.

This variable is not exported so is not visible to the server process. After removing the option, which is duplicated later in the server command launch (see that it explicitly uses -Djboss.server.base.dir=\""$JBOSS_BASE_DIR"\" \, the server needs to be stopped and started again to use it, which will initialize it back to the original value. I mean, it is unused after removing the duplicated option on this line.

The domain.sh has the same issue.

Really having it defined twice isn't a huge issue.

Yes, I agree, it is just the point of having it twice for the same server launch command line.

However, we need to be able to override it from the command line.

This change does not affect this calculation. This is done when the options are consolidated above this change, L140.

@wildfly-ci
Copy link

Core -> WildFly Preview Integration Build 13244 outcome was FAILURE using a merge of 143dfa3
Summary: Execution timeout (new); tests passed: 2024, ignored: 18 Build time: 10:00:32

Copy link
Contributor

@lvydra lvydra left a comment

Choose a reason for hiding this comment

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

Thanks @yersan, now it's working as it was formerly intended. @jamezp At the point of removing -Djboss.server.base.dir from the SERVER_OPTS, that one should be already processed as part of opts consolidation.

Copy link
Member

@jamezp jamezp left a comment

Choose a reason for hiding this comment

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

Sorry, I must have been looking at something wrong in my testing. This does seem work, my apologies.

@yersan yersan marked this pull request as draft January 19, 2024 17:00
@yersan
Copy link
Collaborator Author

yersan commented Jan 19, 2024

converting to draft, since although the approach is approved, we found we need to apply the same to domain.sh and potentially, look at batch ps1 scripts too, and or check if we can add a validation test to it.

@wildfly-ci
Copy link

Core -> WildFly Preview Integration Build 13263 outcome was UNKNOWN using a merge of 7c5135d
Summary: Canceled (Exit code 143 (Step: Build & test full (Maven))) Build time: 00:07:03

@wildfly-ci
Copy link

Core -> Full Integration Build 13200 outcome was UNKNOWN using a merge of 7c5135d
Summary: Canceled (Exit code 143 (Step: Build & test full (Maven)) (new)) Build time: 00:07:03

@wildfly-ci
Copy link

Core -> Full Integration Build 13439 outcome was UNKNOWN using a merge of 7c5135d
Summary: Canceled (Tests passed: 1281, ignored: 6; exit code 143 (Step: Build & test full (Maven)) (new)) Build time: 00:07:09

Copy link

There has been no activity on this PR for 45 days. It will be auto-closed after 90 days.

@github-actions github-actions bot added the Stale label Mar 11, 2024
Copy link

github-actions bot commented Jun 9, 2024

There has been no activity on this PR for 90 days and it has been closed automatically.

@github-actions github-actions bot closed this Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deps-ok Dependencies have been checked, and there are no significant changes Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants