-
Notifications
You must be signed in to change notification settings - Fork 251
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
Vdb 5758 #1002
Open
klymenko
wants to merge
3
commits into
engineering
Choose a base branch
from
VDB-5758
base: engineering
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Vdb 5758 #1002
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
file not found while opening file within network system module - cannot open remote file [https://www.ncbi.nlm.nih.gov/Traces/sdlr/sdlr.cgi?debug=not-found] | ||
file unexpected while opening file within network system module - cannot open remote file [https://trace.ncbi.nlm.nih.gov/Traces/sdlr/sdlr.cgi?jwt=e] | ||
file not found while opening file within network system module - cannot open remote file [https://www.ncbi.nlm.nih.gov/Traces/sdlr/sdlr.cgi?debug=not-found] | ||
file unexpected while opening file within network system module - cannot open remote file [https://trace.ncbi.nlm.nih.gov/Traces/sdlr/sdlr.cgi] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Downloading kart file 'data/bad-kart.krt' | ||
Checking the sizes of kart files... | ||
1) Resolving 'Study_Report.phs001237.TOPMed_WGS_WHI.v4.p2.MULTI.pdf'... | ||
Current preference is set to retrieve SRA Normalized Format files with full base quality scores | ||
1) Failed to resolve 'Study_Report.phs001237.TOPMed_WGS_WHI.v4.p2.MULTI.pdf'... | ||
2) Resolving 'Release_Notes.phs001237.TOPMed_WHI.v4.p2.MULTI.pdf'... | ||
2) Failed to resolve 'Release_Notes.phs001237.TOPMed_WHI.v4.p2.MULTI.pdf'... | ||
3) Resolving 'manifest_phs001237.TOPMed_WGS_WHI.v4.p2.c2.HMB-IRB-NPU.pdf'... | ||
3) Failed to resolve 'manifest_phs001237.TOPMed_WGS_WHI.v4.p2.c2.HMB-IRB-NPU.pdf'... | ||
4) Resolving 'phs001237.v4.pht005987.v3.TOPMed_WHI_Subject.data_dict.xml'... | ||
4) Failed to resolve 'phs001237.v4.pht005987.v3.TOPMed_WHI_Subject.data_dict.xml'... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ $# -lt 2 ]; then | ||
echo "Usage $0 <bin-dir> <tool-name>" | ||
exit 1 | ||
fi | ||
|
||
bin_dir=$1 | ||
prefetch=$2 | ||
tool=$1/$2 | ||
|
||
echo "testing processing of a bad kart file via $tool" | ||
|
||
if [ "" != "" ]; then | ||
perl -e 'print $ENV{"dbgap|110600"};print "=dbgap-110600\n"' | ||
perl -e 'print $ENV{"dbgap|110601"};print "=dbgap-110601\n"' | ||
perl -e 'print $ENV{"dbgap|110602"};print "=dbgap-110602\n"' | ||
perl -e 'print $ENV{"dbgap|110603"};print "=dbgap-110603\n"' | ||
fi | ||
|
||
i=0; while [ $i -le 3 ]; do | ||
# echo "dbgap|11060$i" | ||
E=$(perl -e "print \$ENV{'dbgap|11060$i'}") | ||
if [ "$E" == "" ]; then | ||
echo "dbgap|11060$i env.var. is not set" | ||
i=$((i+2)) | ||
exit $i | ||
fi | ||
i=$((i+1)) | ||
done | ||
|
||
mkdir -p actual || exit 4 | ||
|
||
$tool --ngc data/prj_phs710EA_test.ngc data/bad-kart.krt > actual/out \ | ||
2> actual/err | ||
res=$? | ||
if [ $res -eq 0 ] ; then | ||
echo "prefetch of a bad kart file succeed when failure was expected" | ||
exit 7 | ||
fi | ||
|
||
cat actual/out | perl -e'foreach(<>){s/.*: //;print}' > actual/outer | ||
cat actual/err | perl -e \ | ||
'foreach (<>) { next if /_ItemResolveResolved/; s/.*: //; print }' \ | ||
> actual/errer | ||
diff actual/outer expected/out || exit 8 | ||
diff actual/errer expected/err || exit 9 | ||
|
||
rm -r actual || exit 10 | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -347,6 +347,8 @@ static rc_t V_ResolverRemote(const VResolver *self, | |
id = item -> seq_id; | ||
} | ||
|
||
if (id == NULL) | ||
id = resolved->id; | ||
if ( id == NULL ) | ||
id = resolved -> name; | ||
|
||
|
@@ -2133,8 +2135,11 @@ static rc_t ItemInit(Item *self, const char *obj) { | |
return 0; | ||
} | ||
|
||
static char* ItemName(const Item *self) { | ||
static char* ItemName(const Item *self, const char **id) { | ||
char *c = NULL; | ||
const char *dummy = NULL; | ||
if (id == NULL) | ||
id = &dummy; | ||
assert(self); | ||
if (self->desc != NULL) | ||
return string_dup_measure(self->desc, NULL); | ||
|
@@ -2144,6 +2149,8 @@ static char* ItemName(const Item *self) { | |
rc_t rc = 0; | ||
const String *elem = NULL; | ||
assert(self->item); | ||
rc = KartItemItemId(self->item, &elem); | ||
*id = StringCheck(elem, rc); | ||
/* | ||
rc = KartItemItemDesc(self->item, &elem); | ||
c = StringCheck(elem, rc); | ||
|
@@ -2157,6 +2164,11 @@ static char* ItemName(const Item *self) { | |
return c; | ||
} | ||
|
||
rc = KartItemName(self->item, &elem); | ||
c = StringCheck(elem, rc); | ||
if (c != NULL) | ||
return c; | ||
|
||
rc = KartItemItemId(self->item, &elem); | ||
return StringCheck(elem, rc); | ||
} | ||
|
@@ -2500,6 +2512,19 @@ static rc_t _ItemResolveResolved(VResolver *resolver, | |
return rc; | ||
} | ||
} | ||
|
||
if (rc == 0 | ||
&& ( | ||
rc3 == RC(rcNS, rcFile, rcOpening, rcFile, rcNotFound) | ||
/* 404 */ | ||
|| | ||
rc3 == RC(rcNS, rcFile, rcOpening, rcFile, rcUnexpected) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
/* Unexpected HTTP status */ | ||
) | ||
) | ||
{ | ||
rc = rc3; | ||
} | ||
} | ||
} | ||
|
||
|
@@ -2546,7 +2571,7 @@ static rc_t ItemInitResolved(Item *self, VResolver *resolver, KDirectory *dir, | |
assert(self && self->mane); | ||
|
||
resolved = &self->resolved; | ||
resolved->name = ItemName(self); | ||
resolved->name = ItemName(self, &resolved->id); | ||
|
||
assert(resolved->type != eRunTypeUnknown); | ||
|
||
|
@@ -3069,7 +3094,7 @@ rc_t ItemResolveResolvedAndDownloadOrProcess(Item *self, int32_t row) | |
rc_t rc = 0; | ||
char * itemName = NULL; | ||
assert(self); | ||
itemName = ItemName(self); | ||
itemName = ItemName(self, NULL); | ||
|
||
if (dbgRc == 0xffffffff) { | ||
if (getenv("VDB5693") != NULL) | ||
|
@@ -3180,7 +3205,7 @@ static rc_t ItemDownloadDependencies(Item *item) { | |
} | ||
|
||
if (resolved->path.str != NULL) { | ||
char * itemName = ItemName(item); | ||
char * itemName = ItemName(item, NULL); | ||
STSMSG(STS_TOP, ("%d) Resolving '%s's dependencies...", | ||
item->number, itemName)); | ||
rc = PrfMainDependenciesList(item->mane, resolved, &deps); | ||
|
@@ -3753,12 +3778,11 @@ static rc_t PrfMainRun ( PrfMain * self, const char * arg, const char * realArg, | |
if (it.kart != NULL) { | ||
STSMSG(STS_TOP, ("Downloading kart file '%s'", realArg)); | ||
if (type == eRunTypeGetSize) | ||
STSMSG(STS_TOP, ("Checking sizes of kart files...")); | ||
STSMSG(STS_TOP,("Checking the sizes of kart files...")); | ||
} | ||
else if (self->jwtCart != NULL) | ||
STSMSG(STS_TOP, ( | ||
"Downloading jwt cart file '%s'", self->jwtCart)); | ||
// OUTMSG(("\n")); | ||
} | ||
|
||
#ifdef DBGNG | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SILENT_RC
?