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

[Bug]: DSWx-HLS Integration test script reports passing when first test case fails #587

Open
RKuttruff opened this issue Feb 20, 2025 · 1 comment · May be fixed by #588
Open

[Bug]: DSWx-HLS Integration test script reports passing when first test case fails #587

RKuttruff opened this issue Feb 20, 2025 · 1 comment · May be fixed by #588
Assignees
Labels
bug Something isn't working pge.sprint.r06.06 Sprint 06 for PGE Release 06

Comments

@RKuttruff
Copy link
Contributor

Checked for duplicates

Yes - I've already checked

Describe the bug

When running the DSWx-HLS int test script, two executions are ran l30_greenland and s30_louisiana

In the event that l30_greenland fails but s30_louisiana passes, the overall test reports a pass

I suspect it's due to this block:

if [ $docker_exit_status -ne 0 ]; then
echo "docker exit indicates failure: ${docker_exit_status}"
overall_status=1
else
# Retrieve the return code written to disk by the comparison script
overall_status=$(cat "$output_dir/compare_dswx_hls_products.rc")
fi

overwriting the exit code from the previous test case iteration.

What did you expect?

I expected the overall test to report failure if either test case fails.

Reproducible steps

On opera-dev-pge, build a PROTEUS SAS image off of commit e22fc8a695c274d25f0281b019d3fa2b265a816fe22fc8a695c274d25f0281b019d3fa2b265a816f, build the DSWx-HLS PGE on top of that. Run the int test, then modify the int script to only run l30_greenland and run the int test again.

Environment

opera-dev-pge
@RKuttruff RKuttruff added bug Something isn't working needs triage Bug report that requires triage labels Feb 20, 2025
@collinss-jpl
Copy link
Collaborator

Good catch. If that section of code is indeed the culprit, then we likely have the same issue in the DISP-S1 int test script that will need to be fixed as well:

if [ $docker_exit_status -ne 0 ]; then
echo "docker exit indicates failure: ${docker_exit_status}"
overall_status=1
else
# Retrieve the return code written to disk by the comparison script
overall_status=$(cat "$output_dir/compare_disp_s1_products.rc")
fi

@RKuttruff RKuttruff linked a pull request Feb 24, 2025 that will close this issue
@RKuttruff RKuttruff self-assigned this Feb 24, 2025
@collinss-jpl collinss-jpl added pge.sprint.r06.06 Sprint 06 for PGE Release 06 and removed needs triage Bug report that requires triage labels Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pge.sprint.r06.06 Sprint 06 for PGE Release 06
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants