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

use Files.createTempFile #141

Merged
merged 10 commits into from
Jun 21, 2024
Merged

Conversation

isaacbrodsky
Copy link
Collaborator

@isaacbrodsky isaacbrodsky commented Jun 7, 2024

Fixes #140, using Files.createTempFile is preferable since it will have more restrictive permissions by default. I don't think we can rely on the file being only owner-writable since that is not in the Javadoc. From what I understand, Posix permissions will cause an exception if not supported by the OS, thus we have to check the OS.

@coveralls
Copy link

coveralls commented Jun 7, 2024

Pull Request Test Coverage Report for Build #383

Details

  • 12 of 17 (70.59%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-1.0%) to 98.805%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/main/java/com/uber/h3core/H3CoreLoader.java 12 17 70.59%
Totals Coverage Status
Change from base Build #382: -1.0%
Covered Lines: 496
Relevant Lines: 502

💛 - Coveralls

@coveralls
Copy link

coveralls commented Jun 7, 2024

Pull Request Test Coverage Report for Build #384

Details

  • 13 of 14 (92.86%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.2%) to 99.601%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/main/java/com/uber/h3core/H3CoreLoader.java 13 14 92.86%
Totals Coverage Status
Change from base Build #382: -0.2%
Covered Lines: 499
Relevant Lines: 501

💛 - Coveralls

@coveralls
Copy link

coveralls commented Jun 7, 2024

Pull Request Test Coverage Report for Build #385

Details

  • 12 of 17 (70.59%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-1.0%) to 98.805%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/main/java/com/uber/h3core/H3CoreLoader.java 12 17 70.59%
Totals Coverage Status
Change from base Build #382: -1.0%
Covered Lines: 496
Relevant Lines: 502

💛 - Coveralls

@isaacbrodsky
Copy link
Collaborator Author

isaacbrodsky commented Jun 7, 2024

The Windows build seems to be failing because:

DEBUG:   69+      >>>> cmake -A $Configuration.Item2 `
-- Building for: Visual Studio 17 2022
-- The C compiler identification is unknown
CMake Error at CMakeLists.txt:26 (project):
  No CMAKE_C_COMPILER could be found.



-- Configuring incomplete, errors occurred!

This seems to be a CI / Github Actions issue rather than related to any change in this PR.

edit: Not sure if this is at all related: actions/runner-images#10004 Reverting to windows-2019 fixes for me, which does not seem like the same as what's described there. Maybe the 2019 image has already been fixed.

@coveralls
Copy link

coveralls commented Jun 7, 2024

Pull Request Test Coverage Report for Build #386

Details

  • 12 of 17 (70.59%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-1.0%) to 98.805%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/main/java/com/uber/h3core/H3CoreLoader.java 12 17 70.59%
Totals Coverage Status
Change from base Build #382: -1.0%
Covered Lines: 496
Relevant Lines: 502

💛 - Coveralls

Comment on lines +8 to +10
schedule:
# Every Sunday, rerun
- cron: "0 12 * * 0"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why this re-run? What would the test suite catch when re-run?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I feel like it's often my experience that the CI process for this repo turns out to have some problem when I go to make a change here, and I'd rather be alerted to that proactively rather than when trying to fix something else. Perhaps the CI issues encountered here are indeed not something that would be usefully caught by this; if that's the case then maybe we don't need it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I see. There definitely seems to be some flakiness involving the docker images. I wonder if it would make more sense to pull the Dockerfile into the repo and have the test suite build its own docker image to then run? I guess that would depend on how long it takes to build the image.

@coveralls
Copy link

coveralls commented Jun 7, 2024

Pull Request Test Coverage Report for Build #387

Details

  • 12 of 17 (70.59%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-1.0%) to 98.805%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/main/java/com/uber/h3core/H3CoreLoader.java 12 17 70.59%
Totals Coverage Status
Change from base Build #382: -1.0%
Covered Lines: 496
Relevant Lines: 502

💛 - Coveralls

@coveralls
Copy link

coveralls commented Jun 7, 2024

Pull Request Test Coverage Report for Build #388

Details

  • 12 of 17 (70.59%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-1.0%) to 98.805%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/main/java/com/uber/h3core/H3CoreLoader.java 12 17 70.59%
Totals Coverage Status
Change from base Build #382: -1.0%
Covered Lines: 496
Relevant Lines: 502

💛 - Coveralls

@coveralls
Copy link

coveralls commented Jun 20, 2024

Pull Request Test Coverage Report for Build #389

Details

  • 12 of 17 (70.59%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-1.0%) to 98.805%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/main/java/com/uber/h3core/H3CoreLoader.java 12 17 70.59%
Totals Coverage Status
Change from base Build #382: -1.0%
Covered Lines: 496
Relevant Lines: 502

💛 - Coveralls

@coveralls
Copy link

coveralls commented Jun 20, 2024

Pull Request Test Coverage Report for Build #390

Details

  • 12 of 17 (70.59%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-1.0%) to 98.805%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/main/java/com/uber/h3core/H3CoreLoader.java 12 17 70.59%
Totals Coverage Status
Change from base Build #382: -1.0%
Covered Lines: 496
Relevant Lines: 502

💛 - Coveralls

@isaacbrodsky isaacbrodsky merged commit cfb9b61 into uber:master Jun 21, 2024
50 checks passed
@isaacbrodsky isaacbrodsky deleted the secure-create-temp branch June 21, 2024 00:17
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.

Use safer API for creating temporary files to publicly writable directories
3 participants