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

🛠️ Gizmos: Gizmos that don't use S3 shouldn't fail w/o AWS #2160

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

zspencer
Copy link
Member

We initialize active-storage and aws-sdk-s3 when we load the application code, which loads up config/storage.yml and sets up an AWS S3 Client.

But the Journal doesn't use AWS S3 (yet?), so the continuous integration environment doesn't have AWS credentials. Which causes build failures.

I could add credentials to the Journal Gizmo's CI environment, but that would mean other Gizmos that don't use AWS S3 would need AWS credentials

So I'm going to add some fake test credentials to the .env.test.example file, which should let the AWS S3 client initialize and then explode horribly when we try and shovel some data into it.

- #709

We initialize `active-storage` and `aws-sdk-s3` when we load the
application code, which loads up `config/storage.yml` and sets up an AWS
S3 Client.

But the `Journal` doesn't use AWS S3 (yet?), so the continuous
integration environment doesn't have AWS credentials. Which causes
[build failures].

I *could* add credentials to the Journal Gizmo's CI environment, but
that would mean other Gizmos that don't use AWS S3 would need AWS
credentials

So I'm going to add some fake test credentials to the .env.test.example
file, which should let the AWS S3 client initialize and then explode
horribly when we try and shovel some data into it.

[build failures]: https://github.com/zinc-collective/convene-journal/actions/runs/7690936384/job/20955491503
@zspencer zspencer requested review from a team January 29, 2024 04:13
zspencer added a commit that referenced this pull request Jan 29, 2024
While working on
zinc-collective#11, I completely
forgot to run the tests locally. Embaressing, right? But I've grown
overly used to codebases where running tests takes minutes-not-seconds;
and there's not an easy way to "scope" the tests run to just the code
that matters.

Also I'm hacking while high, sue me!

Anyway, people forget things... For reasons. And this time I forgot
this, which exposed a hole in the safety-net in my weird multi-repo
experiment.

So I patched the hole in the bottom of the sea...
sea: zinc-collective#12

Which uncovered a log in the hole in the bottom of the sea:
#2160

So now I'm finishing the refactor and putting the frog on the log in the
hole of the bottom of the sea, so that I can feed a gnat to the frog on
the log in the hole of the bottom of the sea and implement the form
fields to capture the `Entry#summary`
zspencer added a commit to zinc-collective/journal that referenced this pull request Jan 29, 2024
While working on
#11, I completely
forgot to run the tests locally. Embaressing, right? But I've grown
overly used to codebases where running tests takes minutes-not-seconds;
and there's not an easy way to "scope" the tests run to just the code
that matters.

Also I'm hacking while high, sue me!

Anyway, people forget things... For reasons. And this time I forgot
this, which exposed a hole in the safety-net in my weird multi-repo
experiment.

So I patched the hole in the bottom of the sea...
sea: #12

Which uncovered a log in the hole in the bottom of the sea:
zinc-collective#2160

So now I'm finishing the refactor and putting the frog on the log in the
hole of the bottom of the sea, so that I can feed a gnat to the frog on
the log in the hole of the bottom of the sea and implement the form
fields to capture the `Entry#summary`
@zspencer zspencer added the 🛠️ infrastructure ci, build, deploy, networking, etc. label Jan 29, 2024
Copy link
Contributor

@rosschapman rosschapman left a comment

Choose a reason for hiding this comment

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

image

@zspencer zspencer merged commit 781fefa into main Jan 29, 2024
3 checks passed
@zspencer zspencer deleted the gizmos/dont-fail-ci-when-gizmo-doesnt-use-aws branch January 29, 2024 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🛠️ infrastructure ci, build, deploy, networking, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants