Skip to content

Fix unixtime() E notation issue caused by protobuf float64 conversion#158

Merged
linyows merged 1 commit intomainfrom
fix-unixtime-e-notation
Jan 26, 2026
Merged

Fix unixtime() E notation issue caused by protobuf float64 conversion#158
linyows merged 1 commit intomainfrom
fix-unixtime-e-notation

Conversation

@linyows
Copy link
Owner

@linyows linyows commented Jan 26, 2026

This is for #157

Test plan

  • Add unit tests for convertFloatToInt function
  • Verify existing tests pass
  • Test with actual workflow using unixtime() in HTTP body

🤖 Generated with Claude Code

@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

protobuf.Struct converts all numbers to float64, which causes large
integers like Unix timestamps to display in E notation (1.767851301e+09).

Add convertFloatToInt function to restore integer types after AsMap()
conversion from protobuf.Struct.

Also update parseExitStatus and retry logic to handle int64 type,
which is now returned by convertFloatToInt instead of float64.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@linyows linyows force-pushed the fix-unixtime-e-notation branch from 7694cb5 to 0529ecc Compare January 26, 2026 12:23
@github-actions

This comment has been minimized.

@github-actions
Copy link

Code Metrics Report

main (b2c67ea) #158 (d1409e6) +/-
Coverage 55.1% 55.3% +0.1%
Code to Test Ratio 1:1.0 1:1.0 +0.0
Test Execution Time 24s 23s -1s
Details
  |                     | main (b2c67ea) | #158 (d1409e6) |  +/-  |
  |---------------------|----------------|----------------|-------|
+ | Coverage            |          55.1% |          55.3% | +0.1% |
  |   Files             |             65 |             65 |     0 |
  |   Lines             |           6536 |           6563 |   +27 |
+ |   Covered           |           3607 |           3633 |   +26 |
+ | Code to Test Ratio  |          1:1.0 |          1:1.0 |  +0.0 |
  |   Code              |          12846 |          12892 |   +46 |
+ |   Test              |          13180 |          13267 |   +87 |
+ | Test Execution Time |            24s |            23s |   -1s |

Code coverage of files in pull request scope (58.2% → 60.5%)

Files Coverage +/- Status
actions.go 41.3% +7.1% modified
step.go 68.8% +1.5% modified

Reported by octocov

@linyows linyows merged commit 3b12b21 into main Jan 26, 2026
7 checks passed
@linyows linyows deleted the fix-unixtime-e-notation branch January 26, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant