Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

[S] Change in fuchsia/fuchsia[main]: [fortune] Source of random productivity tips

0 views
Skip to first unread message

'David Fang (Gerrit)' via owners-override

unread,
Mar 21, 2025, 3:01:59 PMMar 21
to Owners Override
Attention needed from Aaron Wood and Owners Override

David Fang has uploaded the change for review

David Fang would like Owners Override to review this change.

Commit message

[fortune] Source of random productivity tips

Can be run once per login, for example.
Bug: 405407347
Change-Id: I009b2d7bb2c2ea787fd5834dfa91f6c90a5eab82

Change diff

diff --git a/scripts/fortunes/OWNERS b/scripts/fortunes/OWNERS
new file mode 100644
index 0000000..72e8ffc
--- /dev/null
+++ b/scripts/fortunes/OWNERS
@@ -0,0 +1 @@
+*
diff --git a/scripts/fortunes/fuchsia_fortunes.py b/scripts/fortunes/fuchsia_fortunes.py
new file mode 100755
index 0000000..6f58c61
--- /dev/null
+++ b/scripts/fortunes/fuchsia_fortunes.py
@@ -0,0 +1,43 @@
+#!/usr/bin/env fuchsia-vendored-python
+# Copyright 2023 The Fuchsia Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+"""fuchsia_fortunes.py prints a random fortune each time.
+
+Example usage: run this script once per ssh login.
+"""
+import random
+import sys
+from typing import Sequence
+
+# Guidelines:
+# Keep entries short, typically one or two lines.
+# Use links.
+_FORTUNE_SET = [
+ # sections by topic:
+ # General
+ "Learn Fuchsia productivity tricks one tidbit at a time: go/fuchsia-fortunes.",
+ # Build
+ """Looking for 'fx build' support? go/fuchsia-build-chat""",
+ """Slow build? File a report at go/fx-build-slow.
+Include a link to data from 'fx report-last-build'.""",
+ """Accelerate builds with remote execution and caching:
+https://fuchsia.dev/internal/intree/concepts/remote-builds""",
+ # fx
+ """Help with fx commands: fx help COMMAND""",
+ # ffx
+ # editors
+ # Infra
+ # testing
+ # debugging
+ # add more helpful entries here...
+]
+
+
+def main(argv: Sequence[str]) -> int:
+ print(random.choice(_FORTUNE_SET))
+ return 0
+
+
+if __name__ == "__main__":
+ main(sys.argv[1:])

Change information

Files:
  • A scripts/fortunes/OWNERS
  • A scripts/fortunes/fuchsia_fortunes.py
Change size: S
Delta: 2 files changed, 44 insertions(+), 0 deletions(-)
Open in Gerrit

Related details

Attention is currently required from:
  • Aaron Wood
  • Owners Override
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: newchange
Gerrit-Project: fuchsia
Gerrit-Branch: main
Gerrit-Change-Id: I009b2d7bb2c2ea787fd5834dfa91f6c90a5eab82
Gerrit-Change-Number: 1234164
Gerrit-PatchSet: 2
Gerrit-Owner: David Fang <fan...@google.com>
Gerrit-Reviewer: Aaron Wood <aaro...@google.com>
Gerrit-Reviewer: David Fang <fan...@google.com>
Gerrit-Reviewer: Owners Override <owners-...@fuchsia.dev>
Gerrit-CC: Fuchsia Try Builder <fuchsia-t...@fuchsia-infra.iam.gserviceaccount.com>
Gerrit-Attention: Owners Override <owners-...@fuchsia.dev>
Gerrit-Attention: Aaron Wood <aaro...@google.com>

--
You received this message because you are subscribed to the Google Groups "owners-override" group.
To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
To view this discussion visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/05e44248b9daa2fb72e32e010cc3a928dab6ed73-HTML%40fuchsia-review.googlesource.com.
unsatisfied_requirement
open
diffy

'Adam Barth (Gerrit)' via owners-override

unread,
Mar 21, 2025, 5:04:26 PMMar 21
to David Fang, Owners Override, Aaron Wood, Fuchsia Try Builder, GI Try Builder, CQ Bot
Attention needed from Aaron Wood, David Fang and Owners Override

Adam Barth added 1 comment

File scripts/fortunes/OWNERS
Line 1, Patchset 3 (Latest):*
Adam Barth . unresolved

We don't use `*` in OWNERS. We need an actual list of people who are responsible for this code.

Open in Gerrit

Related details

Attention is currently required from:
  • Aaron Wood
  • David Fang
  • Owners Override
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: fuchsia
Gerrit-Branch: main
Gerrit-Change-Id: I009b2d7bb2c2ea787fd5834dfa91f6c90a5eab82
Gerrit-Change-Number: 1234164
Gerrit-PatchSet: 3
Gerrit-Owner: David Fang <fan...@google.com>
Gerrit-Reviewer: Aaron Wood <aaro...@google.com>
Gerrit-Reviewer: David Fang <fan...@google.com>
Gerrit-Reviewer: Owners Override <owners-...@fuchsia.dev>
Gerrit-CC: Adam Barth <aba...@google.com>
Gerrit-Attention: David Fang <fan...@google.com>
Gerrit-Attention: Owners Override <owners-...@fuchsia.dev>
Gerrit-Attention: Aaron Wood <aaro...@google.com>
Gerrit-Comment-Date: Fri, 21 Mar 2025 21:04:18 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No

--
You received this message because you are subscribed to the Google Groups "owners-override" group.
To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
To view this discussion visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/91c6cc4233b1cbb80f563b8fcc716b83639d7ec8-EmailReviewComments-HTML%40fuchsia-review.googlesource.com.
unsatisfied_requirement
open
diffy

'David Fang (Gerrit)' via owners-override

unread,
Mar 21, 2025, 5:18:01 PMMar 21
to Adam Barth, Owners Override, Aaron Wood, Fuchsia Try Builder, GI Try Builder, CQ Bot
Attention needed from Aaron Wood, Adam Barth and Owners Override

David Fang added 1 comment

File scripts/fortunes/OWNERS
Adam Barth . unresolved

We don't use `*` in OWNERS. We need an actual list of people who are responsible for this code.

David Fang

Ok, starting with Build team, but intend to broaden from there.

Open in Gerrit

Related details

Attention is currently required from:
  • Aaron Wood
  • Adam Barth
  • Owners Override
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: fuchsia
Gerrit-Branch: main
Gerrit-Change-Id: I009b2d7bb2c2ea787fd5834dfa91f6c90a5eab82
Gerrit-Change-Number: 1234164
Gerrit-PatchSet: 4
Gerrit-Owner: David Fang <fan...@google.com>
Gerrit-Reviewer: Aaron Wood <aaro...@google.com>
Gerrit-Reviewer: David Fang <fan...@google.com>
Gerrit-Reviewer: Owners Override <owners-...@fuchsia.dev>
Gerrit-CC: Adam Barth <aba...@google.com>
Gerrit-CC: Fuchsia Try Builder <fuchsia-t...@fuchsia-infra.iam.gserviceaccount.com>
Gerrit-Attention: Owners Override <owners-...@fuchsia.dev>
Gerrit-Attention: Adam Barth <aba...@google.com>
Gerrit-Attention: Aaron Wood <aaro...@google.com>
Gerrit-Comment-Date: Fri, 21 Mar 2025 21:17:53 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Adam Barth <aba...@google.com>

--
You received this message because you are subscribed to the Google Groups "owners-override" group.
To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
To view this discussion visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/f03ddb658e9fcf97333c46027748415b0951d338-EmailReviewComments-HTML%40fuchsia-review.googlesource.com.
unsatisfied_requirement
open
diffy

'Adam Barth (Gerrit)' via owners-override

unread,
Mar 21, 2025, 5:34:57 PMMar 21
to David Fang, Owners Override, Aaron Wood, Fuchsia Try Builder, GI Try Builder, CQ Bot
Attention needed from Aaron Wood, David Fang and Owners Override

Adam Barth voted and added 2 comments

Votes added by Adam Barth

Code-Review+2
Owners-Override+1

2 comments

File scripts/fortunes/OWNERS
Adam Barth . resolved

We don't use `*` in OWNERS. We need an actual list of people who are responsible for this code.

David Fang

Ok, starting with Build team, but intend to broaden from there.

Adam Barth

Thanks!

File scripts/fortunes/fuchsia_fortunes.py
Line 2, Patchset 5 (Latest):# Copyright 2023 The Fuchsia Authors. All rights reserved.
Adam Barth . unresolved

2025

Open in Gerrit

Related details

Attention is currently required from:
  • Aaron Wood
  • David Fang
  • Owners Override
Submit Requirements:
  • requirement satisfiedCode-Review
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: fuchsia
Gerrit-Branch: main
Gerrit-Change-Id: I009b2d7bb2c2ea787fd5834dfa91f6c90a5eab82
Gerrit-Change-Number: 1234164
Gerrit-PatchSet: 5
Gerrit-Owner: David Fang <fan...@google.com>
Gerrit-Reviewer: Aaron Wood <aaro...@google.com>
Gerrit-Reviewer: Adam Barth <aba...@google.com>
Gerrit-Reviewer: David Fang <fan...@google.com>
Gerrit-Reviewer: Owners Override <owners-...@fuchsia.dev>
Gerrit-Attention: David Fang <fan...@google.com>
Gerrit-Attention: Owners Override <owners-...@fuchsia.dev>
Gerrit-Attention: Aaron Wood <aaro...@google.com>
Gerrit-Comment-Date: Fri, 21 Mar 2025 21:34:44 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: David Fang <fan...@google.com>
Comment-In-Reply-To: Adam Barth <aba...@google.com>

--
You received this message because you are subscribed to the Google Groups "owners-override" group.
To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
To view this discussion visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/69620aeecccf5b42c7140ca645b94c66a01ae7f0-EmailReviewComments-HTML%40fuchsia-review.googlesource.com.
satisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages