Skip to content

Fixed non-hardware-executed tests for WSE-3#63

Open
jonathan-pepino-schaefer wants to merge 6 commits into
spcl:mainfrom
hlrs-fcg:main
Open

Fixed non-hardware-executed tests for WSE-3#63
jonathan-pepino-schaefer wants to merge 6 commits into
spcl:mainfrom
hlrs-fcg:main

Conversation

@jonathan-pepino-schaefer
Copy link
Copy Markdown

I mentioned in #61 some tests that fail when setting WSE_ARCH=wse3. These tests are task-recycling related. This PR introduces a fix for the testcases such that the test setting is correct both in the wse2 and wse3 scenario.

(The many small style changes come from applying black to the respective files, as this seems not to have happened before my PR in this file, or a different configuration was somehow used?)

jonathan-pepino-schaefer and others added 3 commits June 3, 2026 15:34
This commit introduces several changes:
- Renamed the task_recycling_*.sptl files to a wse2 specific version
- Created new corresponding task_recycling_*_wse3.sptl files that represent correct test cases for wse3
- Added conditional test case execution depending on environment variable WSE_ARCH
This commit introduces several changes:
- Renamed the task_recycling_*.sptl files to a wse2 specific version
- Created new corresponding task_recycling_*_wse3.sptl files that represent correct test cases for wse3
- Added conditional test case execution depending on environment variable WSE_ARCH
Copy link
Copy Markdown
Collaborator

@tbennun tbennun left a comment

Choose a reason for hiding this comment

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

The change makes sense, thank you! The formatter you use creates a larger diff which is harder to review, please undo that and use our existing yapf style file instead.

Comment thread tests/spatial_ir/test_task_recycling.py Outdated

def _load_sample_kernel():
sample = os.path.join(os.path.dirname(__file__), '..', 'csl_runtime', 'samples', 'task_recycling_merge.sptl')
kernel = f'task_recycling_merge_{os.getenv("WSE_ARCH", "wse2")}.sptl'
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.

Why not use spada.syntax.csl.constants.ARCH instead?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I forgot that this constant exists, I will change it to constants.ARCH



def test_plan_is_deterministic():
tasks = _create_linear_local_tasks(len(constants.LOCAL_TASK_IDS) + 5)
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.

Looks like some formatter was used that is different from what we use (yapf): https://github.com/spcl/spada/blob/main/.style.yapf

This creates a larger diff than it should be here.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

In the README the required style formatter for contributing is black (which is also installed as part of the dev environment). I did not know that yapf schould be used, I will correct that!

@tbennun tbennun linked an issue Jun 4, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Collaborator

@tbennun tbennun left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

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.

Failed tests for WSE-3

2 participants