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

Fix sync progress tracking overflow #10561

Merged
merged 6 commits into from
Aug 25, 2023

Conversation

bjester
Copy link
Member

@bjester bjester commented Apr 25, 2023

Summary

This made sense when I first made the changes. Then looking back through, it doesn't seem that it actually does anything differently than before. It does seem to work though:

Screenshot from 2023-04-25 13-02-39

@rtibbles has now updated this. This seems to make more sense, as it seemed to be an issue with start_progress being called outside the context of the signal handlers, so the progress total was being rapidly set to 2, then 100, then 2 - and then never being reset.

References

Fixes #10077

Reviewer guidance


Testing checklist

  • Contributor has fully tested the PR manually
  • If there are any front-end changes, before/after screenshots are included
  • Critical user journeys are covered by Gherkin stories
  • Critical and brittle code paths are covered by unit tests

PR process

  • PR has the correct target branch and milestone
  • PR has 'needs review' or 'work-in-progress' label
  • If PR is ready for review, a reviewer has been added. (Don't use 'Assignees')
  • If this is an important user-facing change, PR or related issue has a 'changelog' label
  • If this includes an internal dependency change, a link to the diff is provided

Reviewer checklist

  • Automated test coverage is satisfactory
  • PR is fully functional
  • PR has been tested for accessibility regressions
  • External dependency files were updated if necessary (yarn and pip)
  • Documentation is updated
  • Contributor is in AUTHORS.md

@github-actions github-actions bot added DEV: backend Python, databases, networking, filesystem... SIZE: small labels Apr 25, 2023
@rtibbles rtibbles changed the base branch from develop to release-v0.16.x August 2, 2023 19:13
@rtibbles rtibbles self-assigned this Aug 14, 2023
@rtibbles rtibbles marked this pull request as ready for review August 14, 2023 23:51
@radinamatic radinamatic requested review from pcenov and rtibbles August 15, 2023 00:01
Copy link
Member

@pcenov pcenov left a comment

Choose a reason for hiding this comment

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

I can confirm that now the progress bar never runs over 100%. At the same time in all my tests it goes from 0 to 50% and then it finishes without showing any other percentage values, such as 75% for example:

2023-08-15_15-57-29.mp4

@rtibbles
Copy link
Member

Hrm, not a roaring success then! I'll see if I can get 100% all the way!

@rtibbles
Copy link
Member

This should now be correctly reaching 100%:

Screencast.from.08-22-2023.01.00.30.PM.webm

@pcenov
Copy link
Member

pcenov commented Aug 23, 2023

@rtibbles I confirm, this is working correctly now, never going over 100% as well:

2023-08-23_14-23-57.mp4

@rtibbles rtibbles merged commit aa5af1b into learningequality:release-v0.16.x Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DEV: backend Python, databases, networking, filesystem... SIZE: medium SIZE: small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

peerfacilityimport task progress update bug
3 participants