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

importer: rewrite make integration #1485

Merged
merged 8 commits into from
Mar 1, 2023
Merged

importer: rewrite make integration #1485

merged 8 commits into from
Mar 1, 2023

Conversation

shiqizng
Copy link
Contributor

@shiqizng shiqizng commented Feb 23, 2023

rewrite make integration tests as handler tests and remove importer code and reference.

@shiqizng shiqizng self-assigned this Feb 23, 2023
@shiqizng shiqizng added Team Lamprey Enhancement New feature or request labels Feb 23, 2023
@shiqizng shiqizng changed the title importer: rewrite make integration [WIP] importer: rewrite make integration Feb 24, 2023
@codecov
Copy link

codecov bot commented Feb 28, 2023

Codecov Report

Merging #1485 (6642a7a) into develop (b39ad77) will increase coverage by 1.59%.
The diff coverage is 57.57%.

@@             Coverage Diff             @@
##           develop    #1485      +/-   ##
===========================================
+ Coverage    65.45%   67.05%   +1.59%     
===========================================
  Files           82       80       -2     
  Lines        11470    11278     -192     
===========================================
+ Hits          7508     7562      +54     
+ Misses        3391     3145     -246     
  Partials       571      571              
Impacted Files Coverage Δ
util/util.go 80.00% <56.25%> (-4.16%) ⬇️
...lugins/exporters/postgresql/postgresql_exporter.go 78.75% <100.00%> (ø)
fetcher/fetcher.go 62.71% <0.00%> (-1.28%) ⬇️
api/handlers.go 76.50% <0.00%> (+0.89%) ⬆️
idb/postgres/postgres.go 66.72% <0.00%> (+1.22%) ⬆️
api/generated/v2/routes.go 30.38% <0.00%> (+2.64%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@shiqizng shiqizng changed the title [WIP] importer: rewrite make integration importer: rewrite make integration Feb 28, 2023
return resp, body
}

// recreate tests from common.sh/create_delete_tests()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

these tests are replicating those in common.sh/create_delete_tests(). Given how tedious it is to create the vb files, not all tests are replicated. Let me know if you see cases that should be covered.

@shiqizng shiqizng marked this pull request as ready for review February 28, 2023 22:21
Copy link
Contributor

@Eric-Warehime Eric-Warehime left a comment

Choose a reason for hiding this comment

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

The one test which might be useful for backwards compatibility reasons is https://github.com/algorand/indexer/blob/develop/test/common.sh#L409

Copy link
Contributor

@winder winder left a comment

Choose a reason for hiding this comment

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

LGTM

@shiqizng shiqizng merged commit f099cff into develop Mar 1, 2023
@shiqizng shiqizng deleted the shiqi/importer branch March 1, 2023 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Team Lamprey
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants