Skip to content

Update contribution rules - #4823

Merged
Cyan4973 merged 2 commits into
devfrom
contrib-rules
Oct 6, 2026
Merged

Cyan4973 merged 2 commits into
devfrom
contrib-rules

Conversation

@Cyan4973

@Cyan4973 Cyan4973 commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

In the age of AI, the project need more guardrails, to mitigate the influx of AI-generated issues and PRs

Add a pull request template with a short checklist: existing PRs and
issues searched, a reproducer or test for bug fixes, benchmark numbers
for performance changes, and whether AI or other tools were used.

In CONTRIBUTING.md:
- list the same expectations, plus one fix per PR and no public PR for
  security bugs;
- state the review bar per directory: lib/ and programs/ get a full
  review, contrib/ has more freedom, legacy decoders only take
  memory-safety and regression fixes with a test;
- performance: x86-64 and AArch64 are benchmarked by maintainers; other
  architectures need small, #ifdef-isolated changes with the
  contributor's own numbers. Ask contributors to state precisely what
  they measured: a gain in one configuration is not a general gain.
Add an issue template config.yml with a contact link to SECURITY.md,
so security bugs are steered away from public issues before one is
opened.
@Cyan4973 Cyan4973 self-assigned this Oct 5, 2026
@meta-cla meta-cla Bot added the CLA Signed label Oct 5, 2026
Cyan4973 added a commit that referenced this pull request Oct 5, 2026
intel-cet-compatibility runs ./zstd under SDE without a chip option, so
SDE checks instructions against the host's cpuid. On runners whose CPU
lacks CET, it aborts at the first endbr64, in the dynamic loader, before
zstd runs:

  SDE-ERROR: Executed instruction not valid for host's cpuid: endbr64
  Notice: No chip or cpuid.def file were given, so host's cpuid was
  used for chip check.

The job thus passes or fails depending on the runner it lands on: it
failed on #4824 (Azure westus3) and passed 15 minutes earlier on #4823
(westus2), on the same workflow.

Pass -tgl, the first Intel chip with CET, so the check no longer depends
on the host. Verified locally with SDE 10.13.1 on an AMD EPYC host
(no CET): without -tgl, the CI failure reproduces; with -tgl, zstd -b3
passes, and a CET-marked test binary with an indirect call to a function
lacking endbr64 is still caught (ENDBRANCH error, exit 1).
@Cyan4973
Cyan4973 merged commit 8643ef3 into dev Oct 6, 2026
108 of 110 checks passed
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.

1 participant