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

Makefile: Fix sync-tree #941

Merged
merged 1 commit into from
Mar 26, 2024
Merged

Makefile: Fix sync-tree #941

merged 1 commit into from
Mar 26, 2024

Conversation

cthulhu-rider
Copy link
Contributor

i tried to fix for #940, and saw a request for a fix within #939 late. We can handle this before or just cherry-pick there, up to you @roman-khimov @smallhive

in the future, i'd try to switch to using some stable GitHub API (trees or contents)

Recently, `make [sync-tree]` target started to fail on JSON parsing:
```
parse error: Invalid numeric literal at line 7, column 10
```

This was caused by `syncTree.sh` script requesting source code dir from
NeoFS Node repository. For some time now the answer began to come in
HTML format instead of JSON, which is why `jq` failed.

From now script attaches `Accept: application/json` header to get JSON
response from the GitHub.

Signed-off-by: Leonard Lyubich <[email protected]>
@cthulhu-rider cthulhu-rider marked this pull request as ready for review March 26, 2024 11:53
Copy link

codecov bot commented Mar 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 26.92%. Comparing base (127dd3e) to head (8fafdeb).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #941   +/-   ##
=======================================
  Coverage   26.92%   26.92%           
=======================================
  Files          87       87           
  Lines       14129    14129           
=======================================
  Hits         3804     3804           
  Misses       9903     9903           
  Partials      422      422           

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

Copy link
Member

@roman-khimov roman-khimov left a comment

Choose a reason for hiding this comment

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

GH has nice RESTful APIs, but they all require access tokens (although maybe GITHUB_TOKEN or whatever it's called can work this way). I'd rather use git submodules here, frankly, but all of these constructions are obviously temporary, so if this fixes the build for now -- let's do it.

@roman-khimov roman-khimov merged commit 73f34fa into master Mar 26, 2024
12 of 14 checks passed
@roman-khimov roman-khimov deleted the bugfix/make-sync-tree branch March 26, 2024 11:57
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