Skip to content

Change the default FTL bucket to "fireescape-ftl-test-results". #1079

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 2 commits into from
Jan 6, 2020

Conversation

yifanyang
Copy link
Contributor

FTL tests started from local will upload artifacts/logs to the new
bucket. This avoids clutter in the bucket "android-ci".

FTL tests started from local will upload artifacts/logs to the new
bucket. This avoids clutter in the bucket "android-ci".
@yifanyang yifanyang requested a review from vkryachko December 23, 2019 22:12
@googlebot googlebot added the cla: yes Override cla label Dec 23, 2019
@codecov
Copy link

codecov bot commented Dec 23, 2019

Codecov Report

Merging #1079 into master will increase coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1079      +/-   ##
============================================
+ Coverage     57.59%   57.61%   +0.02%     
- Complexity     6245     6247       +2     
============================================
  Files           639      639              
  Lines         31366    31367       +1     
  Branches       4323     4323              
============================================
+ Hits          18064    18073       +9     
+ Misses        11863    11856       -7     
+ Partials       1439     1438       -1
Impacted Files Coverage Δ Complexity Δ
...om/google/firebase/database/snapshot/LongNode.java 87.5% <0%> (-6.25%) 9% <0%> (-1%)
...gle/firebase/firestore/local/MemoryQueryCache.java
...gle/firebase/firestore/local/SQLiteQueryCache.java
...com/google/firebase/firestore/local/QueryData.java
...le/firebase/firestore/local/SQLiteTargetCache.java 97.7% <0%> (ø) 36% <0%> (?)
...le/firebase/firestore/local/MemoryTargetCache.java 100% <0%> (ø) 27% <0%> (?)
...om/google/firebase/firestore/local/TargetData.java 62.5% <0%> (ø) 15% <0%> (?)
.../google/firebase/firestore/remote/RemoteStore.java 84.93% <0%> (+0.06%) 73% <0%> (ø) ⬇️
.../java/com/google/firebase/storage/StorageTask.java 80.66% <0%> (+0.6%) 92% <0%> (ø) ⬇️
...n/java/com/google/firebase/storage/UploadTask.java 74.35% <0%> (+1.09%) 48% <0%> (ø) ⬇️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7105d44...a2064a7. Read the comment docs.

@@ -68,7 +67,10 @@ class FirebaseTestServer extends TestServer {
Optional<String> resultsBucket = Optional.ofNullable(System.getenv('FTL_RESULTS_BUCKET')).map(Environment.&expand)
Optional<String> resultsDir = Optional.ofNullable(System.getenv('FTL_RESULTS_DIR')).map(Environment.&expand)

List<String> args = ['--results-bucket', resultsBucket.orElse(DEFAULT_BUCKET_NAME)]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Discussed offline. Changing to uploading to FTL public bucket if the environment variable for bucket is not supplied.

List<String> args = []
if (resultsBucket.isPresent()) {
args += ['--results-bucket', resultsBucket.get()]
}
if (resultsDir.isPresent()) {
args += ['--results-dir', Paths.get(resultsDir.get(), "${project.path}_${random.nextLong()}")]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

nextLong can give negative numbers. I don't know if you think that is a problem.

Copy link
Member

Choose a reason for hiding this comment

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

It has not been a problem so far, but I would not be opposed to Math.abs() on it, but totally optional.

@google-oss-bot
Copy link
Contributor

@yifanyang: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
check-changed a2064a7 link /test check-changed

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@yifanyang yifanyang merged commit f1bd039 into master Jan 6, 2020
@yifanyang yifanyang deleted the yifany/ftl-results branch January 6, 2020 20:10
@firebase firebase locked and limited conversation to collaborators Feb 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants