GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add "Run on InfiniEmu" link to pull requests, update actions/upload-artifact by pipe01 · Pull Request #2150 · InfiniTimeOrg/InfiniTime

Conversation

@pipe01

@pipe01 pipe01 commented Oct 28, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Using nightly.link and corsproxy.io we can generate a link that, when clicked, will direct users to a build of the latest commit of a pull request running on InfiniEmu.

It's also worth noting that GitHub actions artifacts expire after 90 days.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

liamcharger, FintasticMan, marigoldfish, and TailyFair reacted with heart emoji
All reactions
  • ❤️ 4 reactions
@pipe01
Add "Run on InfiniEmu" to pull requests, update actions/upload-artifact
be2fd07
@github-actions

github-actions Bot commented Oct 28, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Build size and comparison to main:

Section Size Difference
text 373008B 0B
data 948B 0B
bss 22536B 0B

Run in InfiniEmu

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@liamcharger

liamcharger commented Oct 28, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Would really like to see this merged, this makes testing PRs much easier!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

FintasticMan
FintasticMan approved these changes Oct 28, 2024
View reviewed changes

@FintasticMan FintasticMan left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Love it!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread .github/workflows/main.yml Resolved

Uh oh!

There was an error while loading. Please reload this page.

@pipe01
Say "in" instead of "on"
dff0fe5
@mark9064

mark9064 commented Oct 30, 2024

Copy link
Copy Markdown
Member

Is using an open CORS proxy wise? It feels dangerous to trust it with user traffic - if it started acting maliciously (got hacked, owner decided to cash in etc) it could return whatever it wanted to user's browsers

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pipe01

pipe01 commented Oct 30, 2024

Copy link
Copy Markdown
Contributor Author

Maybe not, but the worst that could happen is that they serve either an invalid ZIP file which would fail to load, or they could serve a different firmware file which would just be annoying.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mark9064

mark9064 commented Oct 30, 2024

Copy link
Copy Markdown
Member

I'm trying to think if there's another way to load it, could InfiniEmu itself fetch the firmware somehow?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pipe01

pipe01 commented Oct 30, 2024

Copy link
Copy Markdown
Contributor Author

If you mean fetching from GitHub directly it's not really possible because there's no official way to download artifacts without being logged in or using an API key, both of which aren't really feasible in this case. That's what nightly.link solves, however it unfortunately doesn't allow CORS.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mark9064

mark9064 commented Oct 30, 2024

Copy link
Copy Markdown
Member

Hmm, could the InfiniEmu server fetch it and serve the artefact to the user?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pipe01
Use artifact:// URIs
9b9aba3
@pipe01

pipe01 commented Oct 30, 2024

Copy link
Copy Markdown
Contributor Author

There's no server per se right now, it's hosted on GitHub pages.

I've made a slight improvement by not hardcoding the CORS proxy into the URL in the comment and instead letting InfiniEmu handle that so that it's easier to change in the future if needed.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mark9064

mark9064 commented Oct 30, 2024

Copy link
Copy Markdown
Member

👍 makes sense
Excuse my ignorance, but would requiring being logged in to github remove the need for the proxy? Since anyone who's going to comment on the PR has to be logged in anyway, I don't think it would be an issue

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pipe01

pipe01 commented Oct 30, 2024

Copy link
Copy Markdown
Contributor Author

(Un)fortunately you can't do that because that would mean that you could send any requests on behalf of the logged in user from a different webpage, which is obviously not great.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mark9064

mark9064 commented Oct 30, 2024

Copy link
Copy Markdown
Member

Ah, I thought the github cookies for that might be allowed to be samesite, but I guess it makes sense that they're not and there'd have to be a full Oauth flow (which isn't possible on GH pages I guess)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mark9064 mark9064 added the new feature This thread is about a new feature label Nov 18, 2024
pipe01 added 2 commits January 28, 2025 18:15
@pipe01
Merge branch 'main' into patch-3
7e42b08
@pipe01
Update main.yml
29275de
@pipe01

pipe01 commented Jan 28, 2025

Copy link
Copy Markdown
Contributor Author

@mark9064 I think this is ready to merge 🙏 Would be nice to have soon to test PRs as they come in

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

mark9064
mark9064 approved these changes Jan 28, 2025
View reviewed changes

@mark9064 mark9064 left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Still not a fan of using a CORS proxy but that's now up to Infiniemu itself which could be refactored, so I guess that problem is now pushed out of scope

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

pipe01 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@mark9064
mark9064 merged commit 7b39d81 into InfiniTimeOrg:main Jan 28, 2025
dariusarnold pushed a commit to dariusarnold/InfiniTime that referenced this pull request Mar 2, 2025
@pipe01 @dariusarnold
Add "Run on InfiniEmu" link to pull requests (InfiniTimeOrg#2150)
29a7802
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@mark9064 mark9064 mark9064 approved these changes
@FintasticMan FintasticMan FintasticMan approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

new feature This thread is about a new feature

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@pipe01 @liamcharger @mark9064 @FintasticMan
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.