Giter Club home page Giter Club logo

delta-action's People

Contributors

danez avatar dustincrogers avatar eduardoboucas avatar ehmicky avatar erezrokah avatar hermanschaaf avatar jgantunes avatar netlify-bot avatar renovate-bot avatar renovate[bot] avatar token-generator-app[bot] avatar xhmikosr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

delta-action's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/fossa.yml
  • actions/checkout v3
.github/workflows/labeler.yml
  • netlify/pr-labeler-action v1.1.0
.github/workflows/prepare.yml
  • navikt/github-app-token-generator a3831f44404199df32d8f39f7c0ad9bb8fa18b1c
  • actions/checkout v3
  • actions/setup-node v3
  • stefanzweifel/git-auto-commit-action v4
.github/workflows/release-please.yml
  • navikt/github-app-token-generator a3831f44404199df32d8f39f7c0ad9bb8fa18b1c
  • GoogleCloudPlatform/release-please-action v3
.github/workflows/versioning.yml
.github/workflows/workflow.yml
  • actions/checkout v3
  • actions/setup-node v3
  • codecov/codecov-action v3
npm
package.json
  • @actions/core ^1.9.0
  • @actions/github ^5.0.3
  • pretty-bytes ^5.6.0
  • pretty-ms ^8.0.0
  • regex-escape ^3.4.10
  • @netlify/eslint-config-node ^6.0.0
  • ava ^4.0.0
  • c8 ^7.11.0
  • esbuild ^0.17.0
  • husky ^8.0.0
  • node >=16.0.0

  • Check this box to trigger a request for Renovate to run again on this repository

Increase precision of size-based values

Which problem is this feature request solving?

Byte values are being truncated at the unit (e.g. netlify/cli#2169 (comment)). This creates a situation where we detect a change but the value doesn't have enough precision to show it.

Describe the solution you'd like

We could use the minimumFractionDigits option of https://www.npmjs.com/package/pretty-bytes. Not sure whether to do that by default or to somehow make it configurable.

Can you submit a pull request?

Yes.

Variation is shown against first recorded commit

In pull request comments, the message about the variation (e.g. "x% increase vs. y") is comparing the latest result with the first (i.e. oldest) recorded commit, which by default is 30 commits behind. I would expect this comparison to be against the previous (i.e. most recent) recorded commit, and ideally against the mean value too.

Screenshot 2021-06-28 at 17 17 44

[security] Enforce Branch Protections

This is an issue generated by (for-internal-use-only)github-tools

Description

This repository has exceeded the development grace period, and the repo owner must decide if branch protections should be enforced.
If this repository houses code used in production in any capacity, branch protections must be enforced. Read (for-internal-use-only)here for more details

What do I need to do?

  • You can control whether or not branch protections are enforced by exclusively creating either of the labels:
    'enforce-branch-protections: true' or 'enforce-branch-protections: false'
  • If there is no branch protection control label, this issue will be recreated.
  • Once you have created either label, you can close this issue.
  • If you have issues or questions, please reach out to #internal-security-n-compliance on slack.

Make graph rendering optional

First off, thanks for this project, it's a great idea and so easy to use!

The graph rendering feature is very neat, but when you have a number of benchmarks it can take up several pages. I was hoping to have something more compact, so was surprised to see graphs the first time, because it doesn't match the screenshot in the README:

Could graph rendering be made into an optional feature, with the other option being the simpler increase/decrease text?

Getting "Resource not accessible by integration" when PR is opened from a fork

When using delta-action and a PR is opened from a fork, the workflow exits with the following error:

RequestError [HttpError]: Resource not accessible by integration
...
  status: 403,
  response: {
    url: 'https://api.github.com/repos/cloudquery/plugin-sdk/issues/430/comments',
    status: 403,

My simplified workflow file looks like this:

name: "Unit tests"
on:
  push:
    branches:
      - main
  pull_request:
    branches: [main]

jobs:
  unittests:
    steps:
      - name: Run benchmark
        run: make benchmark-ci
      - name: Delta
        uses: netlify/[email protected]
        with:
          title: "⏱️ Benchmark results"
          style: "text"
          token: ${{ secrets.GITHUB_TOKEN }}

I think the only way to handle this is to use the pull_request_target mode, but checking out the code to run benchmarks then becomes unsafe. How would a setup look that generates benchmark results using the (safe) pull_request trigger, but then uses pull_request_target to comment on the PR? Or is there another way to achieve this?

This issue is not really specific to delta-action, but I have run into this while using it, and was hoping someone here could offer some advice on how to set it up correctly, which might also help future users.

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined

HTTP Not Found error when running on PR

When running the action on a branch with a PR, I'm getting a HttpError: Not Found error in GitHub Actions logs:

(node:2502) UnhandledPromiseRejectionWarning: HttpError: Not Found
    at /home/runner/work/_actions/netlify/delta-action/v1/dist/index.js:2814:25
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async Object.next (/home/runner/work/_actions/netlify/delta-action/v1/dist/index.js:4385:28)
    at async processPullRequest (/home/runner/work/_actions/netlify/delta-action/v1/dist/index.js:4974:28)
    at async run (/home/runner/work/_actions/netlify/delta-action/v1/dist/index.js:5013:3)
(node:2502) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:2502) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

My configuration follows your examples:

      - name: Get size
        run: du -sk dist | cut -f1 > .delta.appSize && echo "kb (Total app size)" >> .delta.appSize

      - name: Run Delta
        uses: netlify/delta-action@v1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          base_branch: master

It looks like the error is coming from the octokit call to fetch comments.
The action worked on the default branch, went through and added a commit comment on the current head commit of the default branch.
Any ideas?


Love the idea for this action, thanks for sharing!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.