Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix parsing human time output like "50m37s" #10001

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

Bodobolero
Copy link
Contributor

@Bodobolero Bodobolero commented Dec 4, 2024

Problem

In ingest_benchmark.yml workflow we use pgcopydb tool to migrate project.
pgcopydb logs human time.

Our parsing of the human time doesn't work for times like "50m37s".

Example workflow

contains "57m45s"

but we reported
only the seconds part:
45.000 s

Summary of changes

add a regex pattern for Minute/Second combination

@Bodobolero Bodobolero requested a review from bayandin December 4, 2024 10:32
@Bodobolero Bodobolero enabled auto-merge December 4, 2024 10:55
@Bodobolero Bodobolero added this pull request to the merge queue Dec 4, 2024
Merged via the queue into main with commit 9d75218 Dec 4, 2024
80 checks passed
@Bodobolero Bodobolero deleted the bodobolero/fix_humantime_parser branch December 4, 2024 11:39
Copy link

github-actions bot commented Dec 4, 2024

7029 tests run: 6721 passed, 0 failed, 308 skipped (full report)


Flaky tests (6)

Postgres 17

Postgres 16

Postgres 15

Code coverage* (full report)

  • functions: 30.8% (8266 of 26844 functions)
  • lines: 47.8% (65176 of 136378 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
b0c6025 at 2024-12-04T11:45:46.082Z :recycle:

awarus pushed a commit that referenced this pull request Dec 5, 2024
## Problem

In ingest_benchmark.yml workflow we use pgcopydb tool to migrate
project.
pgcopydb logs human time.

Our parsing of the human time doesn't work for times like "50m37s".

[Example
workflow](https://github.com/neondatabase/neon/actions/runs/12145539948/job/33867418065#step:10:479)

contains "57m45s"

but we
[reported](https://github.com/neondatabase/neon/actions/runs/12145539948/job/33867418065#step:10:500)
only the seconds part: 
45.000 s


## Summary of changes

add a regex pattern for Minute/Second combination
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.

2 participants