Commit Graph
10529 Commits
Author SHA1 Message Date
Matt Godbolt facb41b10d Merge remote-tracking branch 'origin/main' into automated-duplicate-detection gh-16438 2025-10-07 15:01:55 -05:00
aneshlya efab7336b2 Add ISPC v1.28.2 (#8167)
This PR adds support of recently released ISPC 1.28.2 and updates a
default snippet for it.

Related infra change:
https://github.com/compiler-explorer/infra/pull/1857
gh-16437
2025-10-07 14:55:38 -05:00
Matt GodboltandClaude 4cb1416c2a Add gh_tool CLI for GitHub repository automation (#8170)
This PR adds a new Python CLI tool for automating GitHub repository
management tasks.

## Overview

The initial implementation provides duplicate issue detection using text
similarity analysis. This is the first step toward automating repository
triage tasks.

## Features

- **Click-based CLI** with subcommands for future extensibility
- **find-duplicates command** for detecting duplicate issues using text
similarity
- Uses **gh CLI** for GitHub API access (no token management needed)
- Text similarity using `difflib.SequenceMatcher` (ratio-based
algorithm)
- Configurable similarity threshold (default: 0.6)
- Progress bar for long-running comparisons
- Age filtering support (`--min-age` parameter)
- Standard Python src-layout with **uv** for dependency management
- **Comprehensive test suite** with pytest (integrated into CI)

## Project Structure

```
etc/scripts/gh_tool/
├── src/gh_tool/          # Main package
│   ├── cli.py            # Click-based CLI interface
│   └── duplicate_finder.py  # Core duplicate detection logic
├── tests/                # Test suite
│   └── test_duplicate_finder.py
├── docs/                 # Documentation
│   ├── TRIAGE-CRITERIA.md    # Triage guidelines from manual review
│   └── PHASE1-FINDINGS.md    # Historical analysis of 855 issues
├── pyproject.toml        # Package configuration
└── README.md             # Usage documentation
```

## Usage

```bash
cd etc/scripts/gh_tool
uv sync
uv run gh_tool find-duplicates /tmp/report.md
```

**Options:**
- `--threshold FLOAT` - Similarity threshold 0-1 (default: 0.6)
- `--state {all,open,closed}` - Issue state to check (default: open)
- `--min-age DAYS` - Only check issues older than N days (default: 0)
- `--limit INTEGER` - Maximum number of issues to fetch (default: 1000)
- `--repo TEXT` - GitHub repository in owner/repo format (default:
compiler-explorer/compiler-explorer)

**Example:**
```bash
# Find high-confidence duplicates in open issues
uv run gh_tool find-duplicates /tmp/report.md --threshold 0.85

# Check all issues older than 30 days
uv run gh_tool find-duplicates /tmp/report.md --state all --min-age 30
```

## Testing

The tool includes comprehensive test coverage:
- Unit tests for similarity calculation
- Integration tests for duplicate detection
- Edge case handling (transitive grouping, age filtering, threshold
sensitivity)
- Report generation validation

**Run tests:**
```bash
cd etc/scripts/gh_tool
uv run pytest -v
```

Tests are integrated into CI and run on every push.

## Documentation

- **`README.md`**: Complete usage guide with examples
- **`docs/TRIAGE-CRITERIA.md`**: Comprehensive triage guidelines
developed during manual review of 22+ issues
- **`docs/PHASE1-FINDINGS.md`**: Historical analysis context from
initial 855 issue review

## CI Integration

The tool is integrated into the GitHub Actions workflow:
- `uv` is installed via `astral-sh/setup-uv@v6`
- Tests run automatically on every push
- Ensures tool remains functional as codebase evolves

## Next Steps

Future enhancements planned for follow-up PRs:
- GitHub Action for automatic duplicate detection on new issues
- Additional automation tools (upstream health checker, label validator,
etc.)
- Automated triage reports

## Changes in this PR

- ✅ Core duplicate detection implementation
- ✅ Comprehensive test suite (192 lines)
- ✅ CI integration
- ✅ Complete documentation
- ✅ Example triage criteria and findings

---------

Co-authored-by: Claude <noreply@anthropic.com>
gh-16436
2025-10-07 14:50:22 -05:00
Matt GodboltandClaude 66928b7cb2 Add automated duplicate issue detection workflow
Implements automated detection of potential duplicate issues using GitHub Actions
with the wow-actions/potential-duplicates action.

Configuration:
- Triggers on issue creation and edits
- Uses 90% similarity threshold to minimize false positives from template matches
- Adds 'potential-duplicate' label and comment with links to similar issues
- Based on manual testing that showed 85% threshold produced too many template-based matches

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
gh-16431
2025-10-07 11:56:11 -05:00
Matt GodboltandClaude 02606a2acb Make pytest a first-class dependency in gh_tool
Move pytest from optional test dependencies to main dependencies.
For an internal tool, testing should be first-class and this
simplifies the CI workflow.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
gh-16429
2025-10-07 11:50:46 -05:00
Matt GodboltandClaude 8dfd299f47 Add uv installation step to CI workflow
Install uv using the official astral-sh/setup-uv@v6 action before running
pytest tests for gh_tool.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-07 11:40:02 -05:00
Matt GodboltandClaude 9516b10091 Improve gh_tool code quality and organization
- Move tests to tests/ directory and update CI to use pytest discovery
- Make repository configurable via --repo option (defaults to compiler-explorer/compiler-explorer)
- Use Click's FloatRange for threshold validation instead of manual checks
- Update README with new options and examples

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-07 11:35:28 -05:00
Matt GodboltandClaude 6e87d56844 Fix embedded iframe links not updating with code state (#8166)
## Summary
Fixes the issue where the "Edit on Compiler Explorer" link in embedded
iframes doesn't update with the current code state, staying as "/"
instead of including the serialized state.

## Changes
- Refactored `Sharing` class into a base class `SharingBase` that
handles state tracking and embedded link updates
- `Sharing` class now extends `SharingBase` and adds the full sharing UI
features
- Created `initialiseSharing()` function that instantiates the
appropriate class based on embedded mode
- Updated `main.ts` to use the new initialization function
- Updated `history.ts` to use `SharingBase.filterComponentState()`
instead of `Sharing.filterComponentState()`

## Testing
- TypeScript compilation passes (`npm run ts-check`)
- Linting passes (`npm run lint`)
- Tests pass (`npm run test-min`)
- Manual browser testing confirms embedded links now update correctly

Closes #8097

🤖 Generated with [Claude Code](https://claude.ai/code)

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-10-07 11:34:26 -05:00
Yaxun (Sam) Liu 4fb82e8ce2 add clang for rocm-7.0.1 (#8168) gh-16420 2025-10-07 11:33:39 -05:00
Matt GodboltandClaude 19073cf97a Add tests for gh_tool duplicate finder and integrate into CI
- Add pytest-based test suite for duplicate_finder.py (13 tests)
- Test coverage for calculate_similarity, find_duplicates, and generate_report
- Add pytest as optional test dependency in pyproject.toml
- Update README with test instructions
- Integrate tests into CI workflow using uv --directory

All tests passing locally.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-07 11:06:01 -05:00
Matt GodboltandClaude 406f11d991 Fix absolute paths in gh_tool README
Replace machine-specific absolute paths with relative paths for
better portability.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
gh-16414
2025-10-07 11:01:25 -05:00
Matt GodboltandClaude ebd21e9d89 Address PR feedback: improve gh_tool code quality
- Fix .gitignore: remove unnecessary exclusions, fix truncated *.swp
- Add comprehensive type hints to all functions
- Replace manual progress reporting with click.progressbar
- Add performance notes to README documenting O(n²) complexity

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
gh-16411
2025-10-07 10:55:30 -05:00
Matt GodboltandClaude 710a9b6fbe Add gh_tool CLI for GitHub repository automation
This adds a new Python CLI tool for automating GitHub repository
management tasks. The initial implementation provides duplicate
issue detection using text similarity analysis.

Features:
- Click-based CLI with subcommands for future extensibility
- find-duplicates command for detecting duplicate issues
- Uses gh CLI for GitHub API access (no token management)
- Text similarity using difflib.SequenceMatcher
- Configurable similarity threshold (default: 0.6)
- Standard Python src-layout with uv for dependency management

Usage:
  cd etc/scripts/gh_tool
  uv sync
  uv run gh_tool find-duplicates /tmp/report.md

Documentation includes:
- TRIAGE-CRITERIA.md: Comprehensive triage guidelines
- PHASE1-FINDINGS.md: Historical analysis context

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
gh-16408
2025-10-07 10:08:20 -05:00
Ofek b479fa51d4 SiteSettings did not propagate to components created after initializeLayout - notably Sentry gh-16443 gh-16407 2025-10-07 15:51:08 +03:00
Partouf 6a72d4e2c6 fix ldpath for execution gh-16392 2025-10-06 21:12:01 +02:00
Ofek 00ee2fc8b0 Initial support for binary/binary-obj in msvc (#8165) gh-16391 2025-10-06 18:00:53 +03:00
Patrick Quist 72b717d09b Update WindowsNative.md gh-16383 2025-10-04 16:37:04 +02:00
Partouf d9d58ff67f update windows doc some more gh-16382 2025-10-04 16:33:18 +02:00
Partouf 85b0bfce94 update windows doc a little gh-16381 2025-10-04 16:15:36 +02:00
Partouf b8ef5e6d26 update docs gh-16380 2025-10-04 16:10:48 +02:00
Partouf e776af64a0 propwiz add objdump support gh-16379 2025-10-04 16:07:16 +02:00
Partouf 2b0813c182 propwizard add undname and sdk param gh-16378 2025-10-04 15:53:42 +02:00
dependabot[bot] d1589ac332 Bump black from 23.12.1 to 24.3.0 in /etc/scripts/ce-properties-wizard (#8162) gh-16377 2025-10-04 12:16:20 +02:00
Patrick Quist 16af4186ad CE Properties Wizard: Interactive tool for adding compilers (#7934) gh-16374 2025-10-04 12:11:58 +02:00
Vipul Cariappa e39d23b96b add clad v2.1 (#8161)
infra PR: https://github.com/compiler-explorer/infra/pull/1852

cc @vgvassilev
gh-16373
2025-10-03 07:46:22 -05:00
Matt Godbolt 1183dfec8a Add boost 1.88 and 1.89 for linux and windows (#8160)
Linux building:
https://github.com/compiler-explorer/infra/actions/runs/18198444653/job/51835248850

Windows:
https://github.com/compiler-explorer/infra/actions/runs/18206096921
(hopefully)
gh-16372
2025-10-03 07:36:20 -05:00
Matt Godbolt 4438387d62 Thank you new sponsors gh-16368 2025-10-02 14:06:06 -05:00
Matt Godbolt 8dc0cb6c94 Major update: (#8158)
- bump pQueue:
https://github.com/sindresorhus/p-queue/releases/tag/v9.0.0
  - throwOnTimeout is removed (and is always `true`)
- 0 is not a valid timeout, so, updated tests to pass a big number (no
normal code path assumes 0)
- happy dom: breaking changes: removed commonjs, new jest; nothing
affects us
gh-16367
2025-10-02 14:05:56 -05:00
Matt Godbolt 69cd083301 Minor package updates (#8157)
- fixes static asset handler cast
- adds now required lessThan to graph layout (cc @jeremy-rifkin I think)
gh-16364
2025-10-02 13:35:25 -05:00
Cliff Burdick 5969cc924e Added MatX 0.9.3 (#8145) gh-16361 2025-10-02 12:43:46 -05:00
Ofek a679924a97 Fix #5524: Improve VC assembly filtering (#8156) gh-16360 2025-10-02 19:21:44 +03:00
Ofek 1268377689 Fix #3491: improve MSVC asm filtering (#8154) gh-16356 2025-10-02 01:59:18 +03:00
Alex Trotta dc730bd2ac Change Mojo version to include leading 0. (#8153)
We changed version strategies ~2 months ago to include this leading zero
(in preparation for a future 1.0), reflecting that change here so it
doesn't confuse people.
gh-16352
2025-10-01 15:01:40 -05:00
github-actions[bot]andCompiler Explorer Bot 495d68af1b [bot] Update browsers list (#8151)
Automatic run of `npm run-update-browerslist` which needs to
 be done periodically to keep in-date.
See
[here](https://github.com/browserslist/browserslist#browsers-data-updating)
for more details.

Co-authored-by: Compiler Explorer Bot <mattgodbolt@users.noreply.github.com>
gh-16350
2025-10-01 12:44:34 -05:00
Patrick Quist 81d1433d9e Add C++ library fmt v12.0.0 (#8150) gh-16349 2025-10-01 15:21:30 +02:00
Ofek cd158f2caa Add link to a conf talk in README gh-16347 2025-09-30 14:49:09 +03:00
Partouf c83515d970 better fix gh-16346 2025-09-30 01:49:12 +02:00
Partouf 62f25e9163 fix the fix gh-16345 2025-09-30 01:25:28 +02:00
Partouf 70c88bc3a8 debuglogging gh-16344 2025-09-30 01:11:33 +02:00
Partouf 51a576464a temp fix for faulty cache entries gh-16343 2025-09-30 00:42:48 +02:00
Patrick Quist 3f317553c2 okToCache fix for nsjail errors and extra checks (#8148) gh-16339 2025-09-29 22:21:51 +02:00
Ofek 5eb5262c64 Various type improvements, mostly in tests (#8144) gh-16328 2025-09-27 10:17:55 +03:00
Matt GodboltandClaude 3160f628cc Fix AMD64 SHR missing and PTX documentation extraction (#8141)
Fixes test failures in assembly documentation generation.

## Import fixes

All docenizers: Change imports from `../base.js` to
`../../../types/assembly-docs.interfaces.js` with `import type`.

## AMD64: Fix missing SHR instruction

The docenizer only read the first `<table>` in HTML files. Files like
`SAL:SAR:SHL:SHR.html` have multiple tables - SHR was in table 2.

**Fix**: Read all tables and combine results.

## PTX: Fix broken documentation extraction

The PTX website structure changed. The old code looked for navigation
links like "Instructions: add, sub, mul" which no longer exist.

**Fix**: 
- Find instructions by scanning `<code>` blocks
- Map each to its documentation section
- Extract text from Description paragraphs
- Ensure common instructions (add, sub) map to their definition
sections, not changelogs

All asm-docs tests now pass.

---------

Co-authored-by: Claude <noreply@anthropic.com>
gh-16323
2025-09-26 15:07:59 -05:00
jmuddnv efaa4e3723 Changes for NVIDIA HPC SDK 25.9 (#8136)
Add nvc 25.9 to etc/config/c.amazon.properties
       Add nvc++ 25.9 to etc/config/c++.amazon.properties
       Add nvfortran 25.9 to etc/config/fortran.amazon.properties
gh-16316
2025-09-26 13:45:57 -05:00
Matt GodboltandCopilot 60497c6b9a Use uv to install python dependencies in docenizers (#8140)
Tested locally and it works BUT the created `.ts` files are still broken
similar to what was found in #8101

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
gh-16307
2025-09-25 15:35:07 -05:00
Cliff Burdick bf605940d7 Add CCCL 3.0.1 and 3.0.2 to CUDA C++ (#8130) gh-16300 2025-09-25 15:09:29 -05:00
Cliff Burdick b7173352ca Added nvcc 13.0.1 and nvrtc 13.0.1 to CUDA C++ (#8129) gh-16299 2025-09-25 15:09:07 -05:00
Florian Freitag 83e73c80d9 Add Kotlin 2.2.20 (#8127) gh-16298 2025-09-25 15:05:27 -05:00
Anton Baliasnikov 86363551d1 Update Solidity solc and solx compiler versions (#8124)
## What?

Update Solidity compilers:
* [x] Add `solx` 0.1.0, 0.1.1 and 0.1.2 versions support
* [x] Add `solc` 0.8.30 version support

Related PR in infra:
https://github.com/compiler-explorer/infra/pull/1837
gh-16297
2025-09-25 15:03:47 -05:00
Ofek 5a7b0c27a4 Add CFG for MSVC compilers (#8134) gh-16294 2025-09-25 00:23:36 +03:00