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

Update dependencies #1910

Merged
merged 7 commits into from
Feb 22, 2025
Merged

Update dependencies #1910

merged 7 commits into from
Feb 22, 2025

Conversation

jmthomas
Copy link
Member

No description provided.

@jmthomas jmthomas requested a review from ryanmelt February 21, 2025 16:03
Copy link

codecov bot commented Feb 21, 2025

Codecov Report

Attention: Patch coverage is 62.50000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 79.57%. Comparing base (482621e) to head (f193a8b).
Report is 10 commits behind head on main.

Files with missing lines Patch % Lines
...cmd-tlm-api/app/controllers/packages_controller.rb 0.00% 1 Missing ⚠️
...-cmd-tlm-api/app/controllers/plugins_controller.rb 0.00% 1 Missing ⚠️
openc3/lib/openc3/operators/operator.rb 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1910      +/-   ##
==========================================
- Coverage   79.61%   79.57%   -0.04%     
==========================================
  Files         525      525              
  Lines       41155    41155              
==========================================
- Hits        32767    32751      -16     
- Misses       8388     8404      +16     
Flag Coverage Δ
python 84.16% <ø> (-0.07%) ⬇️
ruby-api 48.51% <0.00%> (ø)
ruby-backend 82.67% <83.33%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

.inputValue()
await page
.locator('[data-test=file-open-save-filename] input')
.fill(`${prepend}/save_new.rb`)
Copy link
Member Author

Choose a reason for hiding this comment

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

This section of playwright was failing so I took a similar example from the file-menu.spec.ts

@@ -213,7 +213,7 @@ def shutdown
@cancel_thread = true
@microservice_status_sleeper.cancel if @microservice_status_sleeper
MicroserviceStatusModel.set(as_json(:allow_nan => true), scope: @scope)
FileUtils.remove_entry(@temp_dir) if File.exist?(@temp_dir)
FileUtils.remove_entry_secure(@temp_dir, true)
Copy link
Member Author

Choose a reason for hiding this comment

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

See https://docs.ruby-lang.org/en/3.2/FileUtils.html#method-c-remove_entry_secure. I think we were running into the TOCTTOU Vulnerability (https://docs.ruby-lang.org/en/3.2/FileUtils.html#module-FileUtils-label-Avoiding+the+TOCTTOU+Vulnerability) because we're explicitly using the /tmp directory everywhere.

return !!value || 'Required'
}
},
],
Copy link
Member Author

Choose a reason for hiding this comment

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

Actual bug when handling multiple files in the FileDialog

puts "ERROR: While updating #{package} to #{latest} got the following:\n#{data}\n\nCheck the package and version."
FileUtils.rm outfile
exit 1
end
Copy link
Member Author

Choose a reason for hiding this comment

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

I added this so this script doesn't just plow ahead when it gets a 404 error from curl and returns an error string instead of the file.

@jmthomas jmthomas merged commit b0aaee5 into main Feb 22, 2025
30 checks passed
@jmthomas jmthomas deleted the dependencies branch February 22, 2025 19:43
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