Skip to content

refactor: implement epoch clock logic - #1204

Merged
BioPhoton merged 21 commits into
mainfrom
feat/utils/clock
Jan 8, 2026
Merged

refactor: implement epoch clock logic#1204
BioPhoton merged 21 commits into
mainfrom
feat/utils/clock

Conversation

@BioPhoton

@BioPhotonBioPhoton commented Jan 6, 2026

Copy link
Copy Markdown
Collaborator

This PR includes:

  • a epoch clock to manage time (inc cross processes)

@nx-cloud

nx-cloudBot commented Jan 6, 2026

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit 04a8655

CommandStatusDurationResult
nx run ci:code-pushup -- merge-diffs --files=/h...✅ Succeeded5sView ↗
nx run-many --targets=code-pushup --parallel=fa...✅ Succeeded1m 27sView ↗
nx run-many --targets=code-pushup --parallel=fa...✅ Succeeded12m 41sView ↗
nx run-many -t unit-test,int-test✅ Succeeded1sView ↗

☁️ Nx Cloud last updated this comment at 2026-01-08 17:00:22 UTC

@pkg-pr-new

pkg-pr-newBot commented Jan 6, 2026

Copy link
Copy Markdown

Open in StackBlitz

@code-pushup/ci

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/ci@1204

@code-pushup/cli

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/cli@1204

@code-pushup/create-cli

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/create-cli@1204

@code-pushup/core

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/core@1204

@code-pushup/models

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/models@1204

@code-pushup/nx-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/nx-plugin@1204

@code-pushup/axe-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/axe-plugin@1204

@code-pushup/coverage-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/coverage-plugin@1204

@code-pushup/eslint-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/eslint-plugin@1204

@code-pushup/js-packages-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/js-packages-plugin@1204

@code-pushup/jsdocs-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/jsdocs-plugin@1204

@code-pushup/lighthouse-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/lighthouse-plugin@1204

@code-pushup/typescript-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/typescript-plugin@1204

@code-pushup/utils

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/utils@1204

commit: 04a8655

@github-actions

github-actionsBot commented Jan 6, 2026

Copy link
Copy Markdown
Contributor

Code PushUp

🤨 Code PushUp report has both improvements and regressions – compared current commit 95bf4f1 with previous commit d113fd1.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Categories

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Performance🔴 40🔴 38↓ −2.3
Updates🟡 79🟡 78↓ −0.2
Documentation🔴 36🔴 36↑ +0.1
Code coverage🟢 91🟢 91↑ +0.1
Bug prevention🟡 75🟡 75↓ −0.1
Axe Accessibility🟡 88🟡 88↓ −0.1
Code style🟢 99🟢 99
Security🟡 51🟡 51
Type Safety🟡 67🟡 67
Miscellaneous🟡 67🟡 67
Accessibility🟢 92🟢 92
Best Practices🟢 100🟢 100
SEO🟢 92🟢 92
👍 2 groups improved, 👎 2 groups regressed, 👍 8 audits improved, 👎 3 audits regressed, 18 audits changed without impacting score

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
LighthousePerformance🔴 40🔴 38↓ −2.3
JS packagesnpm outdated dependencies🟡 79🟡 78↓ −0.2
JSDocs coverageDocumentation coverage🔴 36🔴 36↑ +0.1
Code coverageCode coverage metrics🟢 91🟢 91↑ +0.1

30 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
LighthouseTotal Blocking Time🟥 1,230 ms🟥 1,660 ms↑ +35 %
LighthouseFirst Contentful Paint🟥 3.1 s🟥 3.0 s↓ −2.9 %
LighthouseTime to Interactive🟥 12.8 s🟥 12.3 s↓ −3.9 %
JS packagesOutdated npm dev dependencies.🟨 53 outdated package versions (28 major, 19 minor, 6 patch)🟨 55 outdated package versions (29 major, 19 minor, 7 patch)↑ +3.8 %
LighthouseSpeed Index🟥 6.1 s🟥 6.0 s↓ −1.2 %
JSDocs coverageTypes coverage🟥 246 undocumented types🟥 248 undocumented types↑ +0.8 %
JSDocs coverageFunctions coverage🟥 587 undocumented functions🟥 587 undocumented functions +0 %
Code coverageFunction coverage🟩 94 %🟩 94 %↑ +0.1 %
Code coverageLine coverage🟨 87 %🟨 87 %↑ +0.1 %
JSDocs coverageVariables coverage🟥 265 undocumented variables🟥 268 undocumented variables↑ +1.1 %
Code coverageBranch coverage🟨 87.3 %🟨 87.3 %↑ +0.1 %
LighthouseAvoids enormous network payloads🟩 Total size was 2,116 KiB🟩 Total size was 2,119 KiB↑ +0.2 %
LighthouseUses efficient cache policy on static assets🟨 31 resources found🟨 31 resources found↑ +0.5 %
LighthouseMetrics🟩 100%🟩 100%↓ −3.9 %
LighthouseReduce unused CSS🟥 Potential savings of 95 KiB🟥 Potential savings of 95 KiB↑ +313.3 %
LighthouseMinimizes main-thread work🟥 7.5 s🟥 7.1 s↓ −5.3 %
LighthouseJavaScript execution time🟥 3.7 s🟥 3.3 s↓ −10.1 %
LighthouseLargest Contentful Paint🟥 11.4 s🟥 11.1 s↓ −2.2 %
LighthouseServer Backend Latencies🟩 1,260 ms🟩 1,410 ms↑ +12.1 %
LighthouseInitial server response time was short🟩 Root document took 600 ms🟩 Root document took 520 ms↓ −13.5 %
LighthouseNetwork Round Trip Times🟩 70 ms🟩 10 ms↓ −92.3 %
LighthouseReduce unused JavaScript🟥 Potential savings of 219 KiB🟥 Potential savings of 221 KiB↑ +1.9 %
LighthouseRemove duplicate modules in JavaScript bundles🟥 Potential savings of 102 KiB🟥 Potential savings of 107 KiB↑ +2.2 %
LighthouseMax Potential First Input Delay🟥 690 ms🟥 680 ms↓ −0.3 %
LighthouseAvoids an excessive DOM size🟥 2,401 elements🟥 2,399 elements↓ −0.1 %
AxeElements must only use supported ARIA attributes🟩 99 elements🟩 98 elements↓ −1 %
AxeARIA attributes must be used as specified for the element's role🟩 99 elements🟩 98 elements↓ −1 %
AxeElements must only use permitted ARIA attributes🟩 99 elements🟩 98 elements↓ −1 %
AxeARIA attributes must conform to valid names🟩 99 elements🟩 98 elements↓ −1 %

650 other audits are unchanged.

@BioPhoton
BioPhoton marked this pull request as ready for review January 6, 2026 17:10
@github-actions

github-actionsBot commented Jan 6, 2026

Copy link
Copy Markdown
Contributor

Code PushUp

🤨 Code PushUp report has both improvements and regressions – compared current commit 95bf4f1 with previous commit d113fd1.

💼 Project plugin-axe

🥳 Code PushUp report has improved.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Documentation🟡 67🟡 68↑ +0.5
Code coverage🟢 93🟢 93↑ +0.1

4 other categories are unchanged.

👍 2 groups improved, 👍 3 audits improved

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
JSDocs coverageDocumentation coverage🟡 67🟡 68↑ +0.5
Code coverageCode coverage metrics🟢 93🟢 93↑ +0.1

13 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
JSDocs coverageFunctions coverage🟥 24 undocumented functions🟥 24 undocumented functions +0 %
Code coverageLine coverage🟨 69.5 %🟨 69.7 %↑ +0.3 %
Code coverageBranch coverage🟨 86.2 %🟨 86.3 %↑ +0.2 %

440 other audits are unchanged.

💼 Project utils

🤨 Code PushUp report has both improvements and regressions.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Documentation🔴 38🔴 38↑ +0.2
Code coverage🟢 95🟢 95↑ +0.1

4 other categories are unchanged.

👍 2 groups improved, 👍 5 audits improved, 👎 1 audit regressed

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
JSDocs coverageDocumentation coverage🔴 38🔴 38↑ +0.2
Code coverageCode coverage metrics🟢 95🟢 95↑ +0.1

13 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
JSDocs coverageTypes coverage🟥 45 undocumented types🟥 47 undocumented types↑ +4.4 %
JSDocs coverageFunctions coverage🟥 236 undocumented functions🟥 236 undocumented functions +0 %
JSDocs coverageVariables coverage🟥 37 undocumented variables🟥 40 undocumented variables↑ +8.1 %
Code coverageFunction coverage🟩 95.5 %🟩 95.6 %↑ +0.1 %
Code coverageBranch coverage🟩 91.9 %🟩 91.9 %↑ +0.1 %
Code coverageLine coverage🟩 96.9 %🟩 97 %↑ +0.1 %

438 other audits are unchanged.

💼 Project plugin-lighthouse

😟 Code PushUp report has regressed.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Code coverage🟢 99🟢 99↓ −0.1

5 other categories are unchanged.

👎 1 group regressed, 👎 1 audit regressed

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
Code coverageCode coverage metrics🟢 99🟢 99↓ −0.1

14 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
Code coverageBranch coverage🟩 96.2 %🟩 96.2 %↓ −0.1 %

443 other audits are unchanged.


11 other projects are unchanged.

Comment threadpackages/utils/src/lib/clock-epoch.ts Outdated
Comment threadtesting/test-setup/src/lib/process.setup-file.ts
Comment threadpackages/utils/src/lib/clock-epoch.ts Outdated
Comment threadpackages/utils/src/lib/clock-epoch.unit.test.ts Outdated
Comment threadtesting/test-setup/src/lib/process.setup-file.ts Outdated
Comment threadpackages/utils/src/lib/clock-epoch.int.test.ts Outdated
Comment threadpackages/utils/src/lib/clock-epoch.int.test.ts Outdated
Comment threadpackages/utils/src/lib/clock-epoch.int.test.ts Outdated
Comment threadpackages/utils/src/lib/clock-epoch.int.test.ts Outdated
Comment threadpackages/utils/src/lib/clock-epoch.unit.test.ts Outdated
Comment threadpackages/utils/src/lib/clock-epoch.ts Outdated
BioPhotonand others added 3 commits January 8, 2026 12:24
Co-authored-by: Hanna Skryl <80118140+hanna-skryl@users.noreply.github.com>
Co-authored-by: Hanna Skryl <80118140+hanna-skryl@users.noreply.github.com>
Co-authored-by: Hanna Skryl <80118140+hanna-skryl@users.noreply.github.com>

@hanna-skrylhanna-skryl left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Excited to see this utility in action 🙌

@BioPhoton
BioPhoton merged commit 4d69dc3 into mainJan 8, 2026
24 checks passed
@BioPhoton
BioPhoton deleted the feat/utils/clock branch January 8, 2026 19:04
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@BioPhoton@hanna-skryl