• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Azure / karpenter-provider-azure / 23678969357
93%
main: 94%

Build:
Build:
LAST BUILD BRANCH: dependabot/docker/dot-devcontainer/devcontainer-deps-20c80b9745
DEFAULT BRANCH: main
Ran 28 Mar 2026 06:16AM UTC
Jobs 1
Files 162
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Mar 2026 06:02AM UTC coverage: 93.419%. First build
23678969357

Pull #1595

github

comtalyst
fix: pass CreationTimestamp explicitly instead of reading from request template

After #1468 moved CreationTimestamp from a client-side tag to server-side
Status.CreationTimestamp, BuildNodeClaimFromAKSMachineTemplate still read
it from the template object (the PUT request body). The template never has
Status — it's set server-side. This made CreationTimestamp always zero on
the NodeClaim returned by Create().

The bug was masked in tests because the fake's BeginCreateOrUpdate shares
the Properties pointer between the caller's template and the fake's
internal copy. When the fake sets Status.CreationTimestamp via
setDefaultMachineValues, it accidentally mutates the caller's template
through the shared pointer — making tests pass for the wrong reason.

Fix both issues:
- Add CreationTimestamp field to AKSMachinePromise and populate it from
  the GET response (gotAKSMachine) which has the server-side Status.
  Pass it as an explicit parameter to BuildNodeClaimFromAKSMachineTemplate
  instead of reading from the template.
- Deep-copy Properties in the fake's BeginCreateOrUpdate to match real
  SDK behavior (HTTP serialization breaks pointer sharing), preventing
  the side-effect from masking future bugs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Pull Request #1595: fix: pass CreationTimestamp explicitly instead of reading from request template

16 of 17 new or added lines in 4 files covered. (94.12%)

59199 of 63369 relevant lines covered (93.42%)

0.95 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
76.05
pkg/providers/instance/aksmachineinstance.go
Jobs
ID Job ID Ran Files Coverage
1 23678969357.1 28 Mar 2026 06:16AM UTC 162
93.42
GitHub Action Run
Source Files on build 23678969357
  • Tree
  • List 162
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1595
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc