Skip to content

Fix local server timestamp handling on 32-bit architectures #939

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

Merged
merged 5 commits into from
May 9, 2022

Conversation

jonsimantov
Copy link
Contributor

Description

Provide details of the change, and generalize the change in the PR title above.

On 32-bit Linux, time() returns a 32-bit integer. Cast it to 64-bit before doing math on it. This fixes a bug in the RTDB integration tests on x86 devices.


Testing

Describe how you've tested these changes. Link any manually triggered Integration tests or CPP binary SDK Packaging Github Action workflows, if applicable.

Tested in #931.


Type of Change

Place an x the applicable box:

  • Bug fix. Add the issue # below if applicable.
  • New feature. A non-breaking change which adds functionality.
  • Other, such as a build process or documentation change.

Notes

  • Bug fixes and feature changes require an update to the Release Notes section of release_build_files/readme.md.
  • Read the contribution guidelines CONTRIBUTING.md.
  • Changes to the public API require an internal API review. If you'd like to help us make Firebase APIs better, please propose your change in a feature request so that we can discuss it together.

@jonsimantov jonsimantov enabled auto-merge (squash) May 9, 2022 17:19
@jonsimantov jonsimantov merged commit 817de86 into main May 9, 2022
@github-actions github-actions bot added the tests: in-progress This PR's integration tests are in progress. label May 9, 2022
@github-actions
Copy link

github-actions bot commented May 9, 2022

⏳  Integration test in progress...

Requested by @jonsimantov on commit 817de86
Last updated: Mon May 9 10:53 PDT 2022
View integration test log & download artifacts

@jonsimantov jonsimantov removed the tests: in-progress This PR's integration tests are in progress. label May 9, 2022
jonsimantov added a commit that referenced this pull request May 10, 2022
…4/x86 tests. (#931)

Add *arch* to the build_desktop matrix, and add architecture tags to all of the artifact names etc.

This allows us to:
- Actually use the architecture_\* fields in print_matrix_configuration.py
- Enable arm64 Mac tests on our M1 Mac GitHub custom runner (when testing on the expanded matrix).
- Enable x86 Linux/Windows tests (when testing on the expanded matrix).
  - For Linux, this required moving the x86 runner setup to a shared module and add customization options to the install prereqs script.

This PR includes all of the above. And look, it reveals some bugs! e.g. an x86 issue in RTDB (fixed in #939)
@firebase firebase locked and limited conversation to collaborators Jun 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants