Skip to content

Conversation

Prashansa-K
Copy link
Contributor

@Prashansa-K Prashansa-K commented Jun 19, 2025

For #1668

@codecov-commenter
Copy link

codecov-commenter commented Jun 19, 2025

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.

Project coverage is 28.11%. Comparing base (17c5d02) to head (84303a2).
Report is 1 commits behind head on fix/validate-partials.

Files with missing lines Patch % Lines
cmd/gateway_validate.go 0.00% 6 Missing ⚠️
Additional details and impacted files
@@                    Coverage Diff                    @@
##           fix/validate-partials    #1669      +/-   ##
=========================================================
- Coverage                  28.13%   28.11%   -0.03%     
=========================================================
  Files                         67       67              
  Lines                       6963     6969       +6     
=========================================================
  Hits                        1959     1959              
- Misses                      4862     4868       +6     
  Partials                     142      142              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Prashansa-K Prashansa-K force-pushed the fix/offline-validation-lookup-tags branch from e4f7c8c to 448c403 Compare June 19, 2025 05:36
@Prashansa-K Prashansa-K force-pushed the fix/offline-validation-lookup-tags branch from 448c403 to 20c7a74 Compare June 19, 2025 05:38
err := validate(tc.mode, validateOpts...)
if tc.errorExpected {
require.Error(t, err)
if tc.errorString != "" {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this if condition required? 👀

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had added it to avoid panics for future, but since this is a test, we can let it go. Updated the code.

{
name: "validate partials",
stateFile: "testdata/validate/001-partials/partials.yaml",
additionalArgs: []string{"--online-entities-list=Partials"},
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the arg relevant for offline validation - since we are anyway printing an error message

Copy link
Contributor

Choose a reason for hiding this comment

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

Approving the PR, this can be fixed on main PR if needed.

@Prashansa-K Prashansa-K merged commit 4d35f05 into fix/validate-partials Jun 19, 2025
22 checks passed
@Prashansa-K Prashansa-K deleted the fix/offline-validation-lookup-tags branch June 19, 2025 07:30
Prashansa-K added a commit that referenced this pull request Jun 19, 2025
* fix: fixed validate command for partials and partial lookups

* tests: fix err string

* fix: file validation with lookup tags (#1669)

* fix: file validation with lookup tags

* chore: removed err string condition

* tests: removed unnecessary flag
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.

3 participants