Skip to content

Rework example task layout#786

Merged
allnes merged 12 commits into
learning-process:masterfrom
allnes:an/change-layout
Jun 3, 2026
Merged

Rework example task layout#786
allnes merged 12 commits into
learning-process:masterfrom
allnes:an/change-layout

Conversation

@allnes
Copy link
Copy Markdown
Member

@allnes allnes commented Jun 2, 2026

What changed

  • Reworked the old example directories into one tasks/example tree with threads and processes/t1, processes/t2, processes/t3 sections.
  • Removed the old physical example directories: tasks/example_threads, tasks/example_processes, tasks/example_processes_2, and tasks/example_processes_3.
  • Added unified example metadata and shared resources at tasks/example/settings.json, tasks/example/info.json, tasks/example/common, and tasks/example/data.
  • Updated CMake support for the example meta-layout and -DPPC_TASKS=example.
  • Updated example functional and performance tests for the new threads and processes/t1..t3 layout.
  • Updated nested settings handling so each example implementation can be enabled or disabled independently.
  • Updated the performance table parser and scoreboard support for the new example layout.

@allnes allnes changed the title [codex] Rework example task layout Rework example task layout Jun 3, 2026
allnes

This comment was marked as off-topic.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 3, 2026

Codecov Report

❌ Patch coverage is 73.91304% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 28.73%. Comparing base (3b1f08c) to head (674221f).

Files with missing lines Patch % Lines
modules/task/include/task.hpp 73.91% 2 Missing and 4 partials ⚠️

❌ Your patch check has failed because the patch coverage (73.91%) is below the target coverage (95.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #786      +/-   ##
==========================================
+ Coverage   27.07%   28.73%   +1.66%     
==========================================
  Files          15       15              
  Lines         495      515      +20     
  Branches      185      199      +14     
==========================================
+ Hits          134      148      +14     
- Misses        351      353       +2     
- Partials       10       14       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread tasks/example/report.md Outdated
Comment on lines +4 to +8

Child reports:

- `seq/report.md`
- `mpi/report.md`
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
Child reports:
- `seq/report.md`
- `mpi/report.md`

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@aobolensk it is part of report - only teplate next pr I'll add description

Comment on lines +4 to +11

Child reports:

- `seq/report.md`
- `omp/report.md`
- `tbb/report.md`
- `stl/report.md`
- `all/report.md`
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
Child reports:
- `seq/report.md`
- `omp/report.md`
- `tbb/report.md`
- `stl/report.md`
- `all/report.md`

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@aobolensk it is part of report - only teplate next pr I'll add description

Comment on lines +4 to +9

Child reports:

- `t1/report.md`
- `t2/report.md`
- `t3/report.md`
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
Child reports:
- `t1/report.md`
- `t2/report.md`
- `t3/report.md`

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@aobolensk it is part of report - only teplate next pr I'll add description

Comment on lines +4 to +8

Child reports:

- `seq/report.md`
- `mpi/report.md`
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
Child reports:
- `seq/report.md`
- `mpi/report.md`

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@aobolensk it is part of report - only teplate next pr I'll add description

Comment thread modules/util/include/perf_test_util.hpp
Comment thread docs/user_guide/submit_work.rst Outdated
.. code-block:: json

{ "student": { "full_name": "Фамилия Имя Отчество", "group_number": "Группа", "task_number": "1" } }
{ "student": { "last_name": "Фамилия", "first_name": "Имя", "middle_name": "Отчество", "group_number": "Группа" } }
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Are you sure you want to change it also right here right now?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fixed. The metadata format is back to full_name + group_number

Comment thread docs/common_information/introduction.rst Outdated
Comment thread modules/task/include/task.hpp Outdated
for (size_t start = 0; start < settings_task_path.size();) {
const size_t separator = settings_task_path.find('.', start);
const size_t key_size = separator == std::string_view::npos ? settings_task_path.size() - start : separator - start;
settings_node = &settings_node->at(std::string(settings_task_path.substr(start, key_size)));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please, make a proper error hanling here instead of using .at()

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fixed. Replaced direct .at() access with explicit key validation and contextual runtime errors, and added a unit test for missing nested settings paths.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please, make sure that all .po files are actually update

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Updated the translation catalogs with sphinx-intl after regenerating gettext catalogs. docs_gettext, docs_update, and docs_html pass locally.

@allnes allnes requested a review from aobolensk June 3, 2026 15:06
" updates periodically.*"
msgstr ""

#~ msgid ""
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please, remove garbage

Comment thread .editorconfig Outdated
Comment on lines +17 to +18
[*.{bat,cmd}]
end_of_line = crlf
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is it needed?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes. The repository has a tracked Windows batch script with CRLF line endings (scripts/generate_perf_results.bat), while the global EditorConfig rule sets end_of_line = lf for all files. This override resolves that conflict for .bat/.cmd files and keeps Windows scripts in their native line-ending format.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is it necessary for this patch? I'd even separate docs part at this point as well

@github-actions github-actions Bot removed the docs label Jun 3, 2026
@allnes allnes requested a review from aobolensk June 3, 2026 15:25
@allnes
Copy link
Copy Markdown
Member Author

allnes commented Jun 3, 2026

@aobolensk done

Comment thread modules/task/tests/task_tests.cpp Outdated
EXPECT_NE(std::string(e.what()).find("tasks.processes.t2"), std::string::npos);
throw;
},
std::runtime_error);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This formatting is strange. Does that really pass clang-format? If not and some clang-format related changes are required, I suggest fixing it separately later

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It's part of ci, ci was green. I think it's bug.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@aobolensk fixed

@allnes allnes requested a review from aobolensk June 3, 2026 15:37
@aobolensk
Copy link
Copy Markdown
Member

Please update description of the PR

Copy link
Copy Markdown
Member

@aobolensk aobolensk left a comment

Choose a reason for hiding this comment

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

LGTM

@allnes allnes enabled auto-merge June 3, 2026 16:01
@allnes allnes added this pull request to the merge queue Jun 3, 2026
Merged via the queue into learning-process:master with commit 8ab7b17 Jun 3, 2026
39 of 40 checks passed
@allnes allnes deleted the an/change-layout branch June 3, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants