GithubHelp home page GithubHelp logo

Comments (12)

ShahradR avatar ShahradR commented on August 29, 2024 1

Hi @arniesaha!

I was thinking, maybe we need to update cfn-lint too?

I pushed a new commit that adds another input parameter called update-lint. I still need to add some tests, so I haven't merged it into the main branch yet, but give this a try and see if it does the trick?

  - name: Run taskcat test run
-   uses: ShahradR/[email protected]
+   uses: ShahradR/action-taskcat@9a5e4e1eeef3fb2b0b3c79a2f9eeccc8ded352dd
    with:
      commands: test run
      update_taskcat: true
+     update_lint: true

from action-taskcat.

arniesaha avatar arniesaha commented on August 29, 2024 1

Hi @ShahradR !

Yes, this did the trick :)

I will be testing further with my stack as well! But, it did pass through the lint and started creating the stack :)

Thanks for the great work +1

from action-taskcat.

ShahradR avatar ShahradR commented on August 29, 2024 1

That's awesome!!! 🥳

I'll keep this ticket open until the code changes are merged into the main branch. If there is anything else I can help with though, feel free to comment here or open a new ticket!

I might also change the input parameter's name from update_lint to update_cfn_lint, just to make it more descriptive. I'll let you know if I end up making that change!

from action-taskcat.

arniesaha avatar arniesaha commented on August 29, 2024 1

Thanks @ShahradR

I have updated the workflow to use 1.3.0, testing it atm. 👍

from action-taskcat.

ShahradR avatar ShahradR commented on August 29, 2024 1

Hi @arniesaha, thank you for flagging this!

It looks like the Node.js and npm packages in the Alpine repositories have been updated, and the versions referenced in the Dockerfile are no longer available.

I'm tracking this issue in #74 with the hopes of finding some long-term solution, but in the meantime, I just pushed a new release which bumps the Node.js and npm versions. Give it a try, and see if that gets your workflows running again?

from action-taskcat.

arniesaha avatar arniesaha commented on August 29, 2024 1

Thanks, @ShahradR for the prompt update.

Have been using the updated version 1.3.1 and is currently working as expected +1

from action-taskcat.

ShahradR avatar ShahradR commented on August 29, 2024

Hi @arniesaha, thanks for reaching out!

I think you're right—it doesn't look like the container is running the latest version of taskcat. I just pushed a release out for you which introduces a new input parameter called update_taskcat. If you set that to true in your workflow file, the action will run pip install --upgrade taskcat before executing your tests, which should upgrade you to v0.9.23!

Try updating your GitHub Action workflow file like so, and see if this helps with your issue?

  - name: Run taskcat test run
-   uses: ShahradR/action-taskcat@v1
+   uses: ShahradR/[email protected]
    with:
      commands: test run
+     update_taskcat: true

Let me know what you think, and thanks again for the feedback—it's really appreciated! 😄

from action-taskcat.

arniesaha avatar arniesaha commented on August 29, 2024

Hi @ShahradR

Thanks for the prompt update. Yes, this does update the taskcat version to 0.9.23. Although, the lint issue I was facing still persists. Not sure as the same templates work on 0.9.23 and python v3.7 & 3.8

But, as of now, I'm passing disable lint in the command to get the action to run successfully.

test run -t dev --lint-disable

Thanks though, will continue to use this action and figure out the lint issue.

from action-taskcat.

arniesaha avatar arniesaha commented on August 29, 2024

Thanks! Appreciate it :)

Let me know once you merge it and if the commands are updated: would need to update my workflow appropriately.

from action-taskcat.

ShahradR avatar ShahradR commented on August 29, 2024

Hi @arniesaha, sorry for the delay!

I just pushed release 1.3.0 of the action with the cfn_lint update flag! I did end up renaming the input parameter name to update_cfn_lint though.

Since your workflow is referencing the action using a commit SHA, your builds should continue working using update_lint until you start referencing the new release, so hopefully this shouldn't cause too much of a disruption with your pipelines!

Let me know if you run into any issues!

  - name: Run taskcat test run
-   uses: ShahradR/action-taskcat@9a5e4e1eeef3fb2b0b3c79a2f9eeccc8ded352dd
+   uses: ShahradR/[email protected]
    with:
      commands: test run
      update_taskcat: true
-     update_lint: true
+     update_cfn_lint: true

from action-taskcat.

arniesaha avatar arniesaha commented on August 29, 2024

Hi @ShahradR

Something has broken with the workflow yesterday.

ERROR: unsatisfiable constraints: nodejs-12.21.0-r0: breaks: world[nodejs=12.20.1-r0] satisfies: npm-12.21.0-r0[nodejs] npm-12.21.0-r0: breaks: world[npm=12.20.1-r0] The command '/bin/sh -c apk add --no-cache nodejs=12.20.1-r0 npm=12.20.1-r0 && rm -rf /var/cache/apk/*' returned a non-zero code: 2 Warning: Docker build failed with exit code 2, back off 9.528 seconds before retry.

image

Let me know if we can fix this? My workflows just stopped working :|

Thanks for the help again!

Regards,
Arnab

from action-taskcat.

ShahradR avatar ShahradR commented on August 29, 2024

That's awesome!!! 🥳

I'll go ahead and close this issue, but is anything comes up again, feel free to either re-open this issue or create a new one!

And thank you so much for this ticket—I'm really glad we were able to add these update flags to the action!

from action-taskcat.

Related Issues (20)

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.