Skip to content

delete fbclock-bin - #584

Closed
leoleovich wants to merge 1 commit into
facebook:mainfrom
leoleovich:export-D122430076
Closed

leoleovich wants to merge 1 commit into
facebook:mainfrom
leoleovich:export-D122430076

Conversation

@leoleovich

Copy link
Copy Markdown
Contributor

Summary:
Land after an fb-ptpcheck build containing D122125915 is on every host (text default; 20260928-000432 and older are JSON-only without -j).

ptpcheck fbclock replaces fbclock-bin without a new RPM (the alternative to D121765502):

  • D121818222: -j/--json; D122121244 + D122333820: collector and sudoers on -j; D122125915: text by default.
  • Same C library: ptpcheck links //time/fbclock:fbclock_c and calls fbclock_init / fbclock_gettime[_utc] / fbclock_destroy, like fbclock-bin did.

This diff:

  • ptp/fbclock/BUCK: fb-fbclock no longer installs /usr/local/bin/fbclock-bin; it is the sidecar and its unit only.
  • deletes time/cmd/fbclock-bin (BUCK, Makefile, fbclock-bin.c).
  • OSS (ShipIt to github.com/facebook/time): .packit.yaml post-upstream-clone now strips the Fedora spec's fbclock-bin build block and %{_bindir}/fbclock-bin, so Packit builds with or without the dist-git spec change and the two need no ordering. READMEs point to ptpcheck fbclock.
  • fbclock.h is not touched: it feeds fbclock_c and the bindgen crate, so any edit to it runs CI for every fbclock consumer.

Follow-ups: Fedora dist-git drops fbclock-bin from the spec (committed locally, ab83798); once it lands, the two new sed expressions match nothing. configerator D122430206 drops //time/cmd/fbclock-bin/... from the fb-fbclock CI config plus detector runbook text. opsfiles fbclock.rb comment and :metalos_preserve_rpm belong to D121765502's chef diff.

Reviewed By: pmazzini

Differential Revision: D122430076

Summary:
**Land after an fb-ptpcheck build containing D122125915 is on every host** (text default; 20260928-000432 and older are JSON-only without -j).

`ptpcheck fbclock` replaces fbclock-bin without a new RPM (the alternative to D121765502):
- D121818222: `-j/--json`; D122121244 + D122333820: collector and sudoers on `-j`; D122125915: text by default.
- Same C library: ptpcheck links `//time/fbclock:fbclock_c` and calls fbclock_init / fbclock_gettime[_utc] / fbclock_destroy, like fbclock-bin did.

This diff:
- `ptp/fbclock/BUCK`: fb-fbclock no longer installs `/usr/local/bin/fbclock-bin`; it is the sidecar and its unit only.
- deletes `time/cmd/fbclock-bin` (BUCK, Makefile, fbclock-bin.c).
- OSS (ShipIt to github.com/facebook/time): `.packit.yaml` post-upstream-clone now strips the Fedora spec's fbclock-bin build block and `%{_bindir}/fbclock-bin`, so Packit builds with or without the dist-git spec change and the two need no ordering. READMEs point to `ptpcheck fbclock`.
- `fbclock.h` is not touched: it feeds `fbclock_c` and the bindgen crate, so any edit to it runs CI for every fbclock consumer.

Follow-ups: Fedora dist-git drops fbclock-bin from the spec (committed locally, ab83798); once it lands, the two new sed expressions match nothing. configerator D122430206 drops `//time/cmd/fbclock-bin/...` from the fb-fbclock CI config plus detector runbook text. opsfiles `fbclock.rb` comment and `:metalos_preserve_rpm` belong to D121765502's chef diff.

Reviewed By: pmazzini

Differential Revision: D122430076
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 30, 2026
@meta-codesync

meta-codesync Bot commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

@leoleovich has exported this pull request. If you are a Meta employee, you can view the originating Diff in D122430076.

@meta-codesync

meta-codesync Bot commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

This pull request has been merged in e432cb7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant