Commit Graph

84 Commits

Author SHA1 Message Date
a8d873b4fd Run all 33 safe courses; fix what that broke
Some checks are pending
md-naming / markdown naming convention (push) Waiting to run
pre-commit / pre-commit (push) Waiting to run
runnability / runnability (push) Waiting to run
Running one directory (EADS) had already produced four bugs, so all of them
were run. 11 failed. Every one was real -- either in the coursework or in the
harness I had just written -- and the split was roughly even.

Coursework bugs:
  - 15 .tex files use Polish ogonek characters with no fontenc, so pdflatex
    dies with "Command \k unavailable in encoding OT1". Fixed where it was
    actually needed, not blanket-applied.
  - BSS had \documentclass{article}[12pt] -- options after the class name,
    where they are not options at all.
  - SDM's beamer deck had a stray } on an \item, which took out the frame.
  - EOOP/Various/currency included "currency2.hpp"; the file is currency.hpp.
  - ECRYPT_PROJECT had the SAME stdlib-shadowing bug as ECOTE: a package named
    code/. Renamed to sieve/, and its 99 tests now run. With ECOTE's 26 that
    is 125 tests that could not execute at all before today.

Harness bugs, which the run is what exposed:
  - COURSE_ENTRY pointed at directories for PORR and ECRYPT_PROJECT, so python
    looked for __main__.py and reported the wrong problem.
  - main.py was auto-picked via find's first result. EARIN has six labs and
    six main.py files, so that ran an arbitrary lab and called it the course.
    Now only auto-picked when exactly one exists.
  - Only the first requirements.txt was installed, which is why EARIN still
    died on gymnasium after a venv was created for it. All of them now.
  - The notebook probe accepted jupyter being on PATH. This machine's jupyter
    is a pipx shim whose interpreter is gone, so "runnable" was a lie; it now
    invokes jupyter --version and PBAD/twm_4 report blocked, honestly.
  - Nothing ran a course's tests. Where a suite exists it is now the check,
    which matters most for ECRYPT_PROJECT, whose program prompts on stdin and
    cannot be run headlessly at all.
  - Which directory pytest runs from is course-specific and unguessable, so
    stubs pass --test-dir: ECOTE needs program/ for imports, ECRYPT_PROJECT
    needs sieve/ because its fixtures open a CSV by relative path.

gates/known-incomplete.txt records the one file that genuinely cannot build:
EOOP/Various/set/set.cpp includes set.hpp, which `git log --all` shows has
never existed here. The course supplied it and only the .cpp was submitted.
That is a factual record with a stated check, not a lint allowlist -- and
fabricating the header would be inventing coursework.

Status is now 36 runnable / 5 no-code / 3 blocked.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172dj34FDpao6wsix8ZuCzE
2026-08-28 18:52:31 +02:00
f7763bb1cd Add a run.sh to every course, and fix the code that would not build
All 44 directories now probe: 38 runnable, 5 no-code, 1 blocked (ENUME needs
MATLAB or Octave, neither of which is on this machine).

The runners are stubs over one shared scripts/course_lib.sh rather than 44
copies of the logic, for the same reason the gates live in ~/utils. A stub
passes its kind as ARGUMENTS -- course_main --kind python --entry ... -- "$@"
-- rather than setting globals, because globals a linter cannot see being read
mean SC2034 on every one of them, and the only cure would be 44 disables.

Fixed along the way:
  - Generating the stubs overwrote Programming/PSD/run.sh, the original
    coursework runner. Restored, and given a --probe early exit instead so it
    is otherwise untouched: it installs packages with sudo and starts Kafka,
    which is exactly what a probe must not trigger.
  - The probe guard only recognised runners containing the literal --probe, so
    the new stubs (which delegate to the library) all read unprobed. It now
    also accepts delegation to course_lib.sh.
  - Blocked probes reported "unknown" because _require_any prints the tool it
    found, so probes redirected its stdout -- swallowing the failure reason
    too. Split into _probe_any, and ENUME now says exactly what it needs.
  - shellcheck runs with -x so it follows the sourced library; without it every
    stub reports SC1091 and the only alternative is a per-file disable. The
    library itself carries `# shellcheck shell=bash` because it has no shebang
    on purpose -- it is sourced, never executed.

Then EADS was actually run, and three of its six C++ files did not compile:
  - lab3.cpp: copyDictionary was declared taking Dictionary* but its body used
    Node members, and the copy constructor called copyTree(), which does not
    exist. The copy also dropped key and balanceFactor. Now compiles AND runs,
    printing its AVL tests.
  - MidTerm/task2.cpp: a const mismatch between declaration and definition, a
    stray semicolon before a function body, findNode calling a Tree method on
    a treeNode*, and a while loop that never advanced. sumNodeSub also had no
    base case -- unreachable before, because the const mismatch meant its body
    was never compiled.
These compiled years ago because older GCC did not diagnose uninstantiated
template bodies. Fragments with no main() are now type-checked with -c rather
than linked, since two of these files are exam answers, not programs.

Binaries go to a gitignored build/ -- an extensionless executable dropped next
to its source is not something .gitignore catches by name.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172dj34FDpao6wsix8ZuCzE
2026-08-28 18:37:55 +02:00
d407527863 Untrack 189 regenerable artifacts and close the silent-ignore trap
Untracked (--cached, so they stay on disk): 76 LaTeX artifacts, 7 .xdv XeTeX
intermediates, 18 -eps-converted-to.pdf from epstopdf, 32 files of .NET
obj/Debug/net6.0 output including three copies of lab2.dll, 16 .class/.o, the
9 MB Nx cache with its native .node, and an entire committed Python
virtualenv at ECOTE/program/ecote (python 3.10.10, 18 files).

The existing 407-line LaTeX .gitignore was NOT unused as I first assumed --
it already covered *.aux and *.class, and the artifacts simply predate it. So
this appends the categories it missed (*.o, obj/, .venv/, .nx/, target/)
rather than rewriting something that was working.

The second half is the more interesting bug. Auditing with

    git ls-files | git check-ignore --stdin --no-index

found 130 files that were tracked AND ignored. That combination fails
silently: `git add` on such a file is not an error, the edit just never
lands. Causes were dist/ swallowing the vendored jQuery/Bootstrap bundle,
.vscode/ and .idea/, and -- the good one -- the LaTeX template's man-page
patterns *.[1-9] and *.[1-9][0-9] matching EPFU's date-named report
directories, so doc/21.11/ read as a man page section and took report.pdf
and seven screenshots with it.

32 of those 130 turned out to be more build output and were untracked too;
the rest got targeted ! overrides. The first attempt used a blanket
!NotProgramming/EMISY/** which re-enabled that course's own LaTeX artifacts,
so it is narrowed to the *.1 schematic exports that actually needed it.
TRAK's nested .gitignore excluded the .vscode DIRECTORY, which stops git
descending, so no root-level ! can reach inside -- that one had to be fixed
at its source.

Both invariants now verified: 0 tracked files ignored, and 0 of the 189
untracked artifacts leaked back into view.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172dj34FDpao6wsix8ZuCzE
2026-08-28 17:35:38 +02:00
053f56439f Restore original local content into merged PSD, TRAK, STUP directories 2026-02-06 22:15:53 +01:00
ece68bad7b Add 'NotProgramming/STUP/' from commit '98b45ae01af10b8db6aaea6fb3b0c24d024d3e57'
git-subtree-dir: NotProgramming/STUP
git-subtree-mainline: 056d3aeab6
git-subtree-split: 98b45ae01a
2026-02-06 22:15:41 +01:00
635e287095 Add 'NotProgramming/EDABA-LAB/' from commit 'cc8d63c7344b827d9c12d71ece2c61f5921683fa'
git-subtree-dir: NotProgramming/EDABA-LAB
git-subtree-mainline: b88865222b
git-subtree-split: cc8d63c734
2026-02-06 22:15:19 +01:00
38501bf024 temp: move existing PSD, TRAK, STUP directories for subtree merge preparation 2026-02-06 22:14:20 +01:00
cf7a5f8cd6 Merge branch 'main' of https://github.com/kuhyx/WUT_Computer_Science 2025-04-21 17:21:13 +02:00
17f13fb587 feat: add wdwr project 2025-04-20 15:57:04 +02:00
4ffe520735 wip: wdwr report 2025-04-12 23:18:45 +02:00
0fbb57cca2 feat: added spd and sdm2 2025-01-26 20:05:03 +01:00
ba1173e3a1 feat: spd data and images lab1 2024-12-01 14:37:24 +01:00
Krzysztof Rudnicki
fc933376b7 feat: added exemplary program for psd zin2 2024-04-11 13:50:03 +02:00
Krzysztof Rudnicki
748dcc96be feat: added exemplary program for psd zin2 2024-04-11 13:50:03 +02:00
9cf89176ca feat: added fail safe pdf 2024-04-11 00:44:02 +02:00
1d789bd03a feat: added fail safe pdf 2024-04-11 00:44:02 +02:00
9b8fcd4e62 feat: finished kombucha presentation 2024-04-11 00:41:48 +02:00
1b08d87a1d feat: finished kombucha presentation 2024-04-11 00:41:48 +02:00
3aac283bcc feat: kombucha presentation before domowa produkcja 2024-04-11 00:20:00 +02:00
65394f8801 feat: kombucha presentation before domowa produkcja 2024-04-11 00:20:00 +02:00
Krzysztof Rudnicki
6d1961c040 feat: started work on kombucha presentation 2024-04-10 22:46:40 +02:00
Krzysztof Rudnicki
bad100cc61 feat: started work on kombucha presentation 2024-04-10 22:46:40 +02:00
0115ef0c91 feat: added stup report 2024-03-26 06:13:56 +01:00
fcc4ae5e50 feat: added stup report 2024-03-26 06:13:56 +01:00
2e1d70eeef feat: added images sources 2024-03-07 06:39:40 +01:00
02d2b39a86 feat: added images sources 2024-03-07 06:39:40 +01:00
c59553563f feat: final presentation 2024-03-07 06:36:20 +01:00
bad47271fa feat: final presentation 2024-03-07 06:36:20 +01:00
043ae38af3 feat: added sdm folder 2024-03-06 20:03:30 +01:00
b457390283 feat: added sdm folder 2024-03-06 20:03:30 +01:00
50077290d0 feat: finished mom 3 2024-01-24 22:53:14 +01:00
0d4b8cbcb0 feat: finished mom 3 2024-01-24 22:53:14 +01:00
58c5159bce feat: mom 3 project full not-working code 2024-01-23 22:37:41 +01:00
a0d47d0bac feat: mom 3 project full not-working code 2024-01-23 22:37:41 +01:00
a28f9f642f feat: working on implementation3 mom 2024-01-23 22:19:11 +01:00
8806e6adf8 feat: working on implementation3 mom 2024-01-23 22:19:11 +01:00
bbbe723f7b feat: added erpm hw pdf 2024-01-15 18:48:06 +01:00
003c013ef0 feat: added erpm hw pdf 2024-01-15 18:48:06 +01:00
d174d709b9 feat: added erpm hw 2024-01-15 18:47:36 +01:00
363dafb6fd feat: added erpm hw 2024-01-15 18:47:36 +01:00
37ad620e6b feat: added erpm project 2024-01-15 18:46:40 +01:00
de77023dc2 feat: added erpm project 2024-01-15 18:46:40 +01:00
e1b04ce51d feat: added gitgnore, removed bin folder 2023-11-19 14:01:44 +01:00
ae21498f44 feat: added gitgnore, removed bin folder 2023-11-19 14:01:44 +01:00
4b8962a38e Finished mom project 1 2023-11-19 13:54:14 +01:00
a953d1407d Finished mom project 1 2023-11-19 13:54:14 +01:00
dfc7714201 feat: work in progress mom 2023-11-17 21:14:01 +01:00
b0ed01e095 feat: work in progress mom 2023-11-17 21:14:01 +01:00
kuhyx
c77e3038cc
Create report_one.tex 2023-11-17 17:36:23 +01:00
kuhyx
fd87ea4ad2 Create report_one.tex 2023-11-17 17:36:23 +01:00