Closed tommaso-borgato closed 7 months ago
I notice you added a configuration for the
maven-surefire-plugin
to each module. Why is that? The TS was configured already for executing such plugin, so what is the reason for adding more?That being said, I don't see the need for an additional profile. I think we can simply modify the
wildfly-jar-maven-plugin
execution in thets.botable
profile, for it to use channels and that's all. WDYT?
@fabiobrz I went for distinct profiles in CI, e.g.
if [[ "x${CHANNEL_MANIFEST_GAV}" != "x" ]]; then
echo "[INFO] Using Channel Manifest GAV: ${CHANNEL_MANIFEST_GAV}"
generate_channel_manifest_gav_mvn_params
ACTIVATION_PROPERTY_NAME=ts.bootable.channels
else
ACTIVATION_PROPERTY_NAME=ts.bootable
fi
that's the reason for the duplication.... You had a smart idea, If you prefer, I can change it and activate two profiles: one for bootable jar + one for using a channel fo rbootable jar
I went for distinct profiles in CI, e.g.
if [[ "x${CHANNEL_MANIFEST_GAV}" != "x" ]]; then echo "[INFO] Using Channel Manifest GAV: ${CHANNEL_MANIFEST_GAV}" generate_channel_manifest_gav_mvn_params ACTIVATION_PROPERTY_NAME=ts.bootable.channels else ACTIVATION_PROPERTY_NAME=ts.bootable fi
that's the reason for the duplication.
Ok thanks. Your snippet is valid from the automation PoV. It would be good to add a few lines to the documentation, where we mention the same difference from a user's PoV, e.g.:
you might want to use ts.bootable
with WildFly since it doesn't have a channel manifest, while using ts.bootable.channels
allows to configure a channel manifest, which is the supported EAP (and EAP XP) way
or something like that. But anyway, the ts.bootable
option isn't documented at all yet, so IMO just logging an issue would be fine ATM.
If you prefer, I can change it and activate two profiles: one for bootable jar + one for using a channel fo rbootable jar
I think it is now clear what you've done here and why. Let's just file an issue documenting the Bootable JAR related profiles.
I went for distinct profiles in CI, e.g.
if [[ "x${CHANNEL_MANIFEST_GAV}" != "x" ]]; then echo "[INFO] Using Channel Manifest GAV: ${CHANNEL_MANIFEST_GAV}" generate_channel_manifest_gav_mvn_params ACTIVATION_PROPERTY_NAME=ts.bootable.channels else ACTIVATION_PROPERTY_NAME=ts.bootable fi
that's the reason for the duplication.
Ok thanks. Your snippet is valid from the automation PoV. It would be good to add a few lines to the documentation, where we mention the same difference from a user's PoV, e.g.:
you might want to use
ts.bootable
with WildFly since it doesn't have a channel manifest, while usingts.bootable.channels
allows to configure a channel manifest, which is the supported EAP (and EAP XP) wayor something like that. But anyway, the
ts.bootable
option isn't documented at all yet, so IMO just logging an issue would be fine ATM.If you prefer, I can change it and activate two profiles: one for bootable jar + one for using a channel fo rbootable jar
I think it is now clear what you've done here and why. Let's just file an issue documenting the Bootable JAR related profiles.
@fabiobrz thank you for the suggestion: I added a few lines to the README to document testing with bootable jar and bootable jar + channel
CI Job run eap-8.x-microprofile-testing-pipeline-tborgato#9
@fabiobrz , @honza-kasik can we merge this one?
@fabiobrz , @honza-kasik can we merge this one?
Thanks @tommaso-borgato - changes LGTM, and the CI run shows just unrelated failures. Merging.
This MR adds the
bootablejar.profile.channels
profile which add the option to run bootable jar test using a channel for assembling the botable jar applocationPlease make sure your PR meets the following requirements: