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

KusionStack / karpor / 10823922787
64%

Build:
DEFAULT BRANCH: main
Ran 12 Sep 2024 04:05AM UTC
Jobs 1
Files 41
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

12 Sep 2024 04:02AM UTC coverage: 74.086% (-2.5%) from 76.621%
10823922787

push

github

web-flow
refactor(syncer): refine transform function (#606)

## What type of PR is this?

/kind refactor

## What this PR does / why we need it:

The current transform function has two capabilities: trimming to save
informer memory and influencing data stored in ES. This PR splits these
two capabilities into two stages, making the function definition clearer
and having the following advantages:

1. The first stage uses jsonPath instead of go template, which is easier
for users to use and less prone to errors, and ensures that the data in
the informer is a subset of the original object.

2. The second stage can use workqueue to retry retryable errors that
occur during the transformation process.

## Which issue(s) this PR fixes:

<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
_If PR is about `failing-tests or flakes`, please post the related
issues/tests in a comment and do not use `Fixes`_*
-->

Fixes #

390 of 670 new or added lines in 7 files covered. (58.21%)

3 existing lines in 2 files now uncovered.

3385 of 4569 relevant lines covered (74.09%)

0.81 hits per line

Jobs
ID Job ID Ran Files Coverage
1 10823922787.1 12 Sep 2024 04:05AM UTC 0
74.09
GitHub Action Run
Source Files on build 10823922787
Detailed source file information is not available for this build.
  • Back to Repo
  • f4c389a5 on github
  • Prev Build on main (#10808641004)
  • Next Build on main (#10988814224)
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