Skip to content

remove import of ProfilesLibrary. - #43

Open
stiesssh wants to merge 1 commit into
bug-fix-scaling-in-transformationfrom
remove-profiles-library-dependency
Open

remove import of ProfilesLibrary.#43
stiesssh wants to merge 1 commit into
bug-fix-scaling-in-transformationfrom
remove-profiles-library-dependency

Conversation

@stiesssh

@stiesssh stiesssh commented Jul 17, 2025

Copy link
Copy Markdown
Contributor

Preamble

sorry for the short notice PR, i only noticed this problem, when i attempted to run the headless slingshot with the bug-fix-scaling-in-transformation branch.
once upon a time, i apparently fixed this locally an the forgot about it.

Problem

When running slingshot headless in the context of the MENTOR project, i end up with an compilation error for the transformation files:

	at org.palladiosimulator.analyzer.slingshot.behavior.spd.adjustment.qvto.AbstractQVToExecutor.handleExecutionResult(AbstractQVToExecutor.java:187)
	ERROR 2025-07-17 08:52:31,162 [main] - Compilation errors found in unit 'platform:/plugin/org.palladiosimulator.spd.semantic.transformations/transformations/spd/MainTransformation.qvto'; Line 2: Imported unit 'pcm::helpers::Constructors' has compilation errors,Line 3: Imported unit 'pcm::helpers::Wiring' has compilation errors,Line 4: Imported unit 'spd::bottomup::BottomUpTransformation' has compilation errors,Line 5: Imported unit 'spd::topdown::TopDownTransformation' has compilation errors

I could not recreate the error when running slingshot normally, i.e. with UI.
Also i did not manage to run slingshot outside the MENTOR context in headless mode (due to fucked up UI dependencies in experiment automation), i.e. i could not ascertain, that this error is a general problem when running headless.

Solution

remove the line import org.palladiosimulator.architecturaltemplates.catalog.black.ProfilesLibrary; and delete the unused transformation Loadbalancing.qvto, which actually used the profiles library.

Misc

My assumption is, that this error appears in headless mode, because i'm running headless with the bare minimum of dependencies, especially removing all UI related dependencies. Thus, when running with UI, the dependency to the profiles library is fullfilled, while it is missing in headless-mode, resulting in that compilation error.
This is only my personal assumption though, i got no proof.

@klinakuf if you accept this PR, please merge it on your own, i probably wont be able to do it.

@stiesssh
stiesssh requested a review from klinakuf July 17, 2025 07:56
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.

1 participant